]> git.proxmox.com Git - mirror_frr.git/commit
topotest: add text normalization function
authorRafael Zalamena <rzalamena@gmail.com>
Fri, 30 Jun 2017 19:09:07 +0000 (16:09 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
commitf7840f6bdfba174107344b4c723af126b9397dcf
tree197ffd0833c2bffc808881c2adfdfcc6241bea5e
parentd176de4d0a08028e7991188a04c28a55aea76e3c
topotest: add text normalization function

Standardized function that removes format spaces (or tab) and carriage
returns characters. This function is useful to allow output text
processing without breaking diff capabilities.

Output example:
*N IA 2001:db8:2::/64                ::                        r2-eth0    00:03:39

Becomes:
*N IA 2001:db8:2::/64 :: r2-eth0 00:03:39

If you remove 'IA' you won't have space formatting problem anymore.
tests/topotests/lib/topotest.py