diff options
author | Martin Winter <mwinter@opensourcerouting.org> | 2017-02-01 17:01:32 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-28 02:22:11 +0100 |
commit | d98b7d6359392c79a135bbe00f1eb981403adeb6 (patch) | |
tree | 2f358aa47a492202c84cad0de110b535cca11c66 /tests/topotests/bgp_multiview_topo1 | |
parent | Added optional output for memleaks at the end of test. Enable them by setting... (diff) | |
download | frr-d98b7d6359392c79a135bbe00f1eb981403adeb6.tar.xz frr-d98b7d6359392c79a135bbe00f1eb981403adeb6.zip |
bgp_multiview_topo1: Mask out BGP Table version in comparison
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/bgp_multiview_topo1')
4 files changed, 5 insertions, 3 deletions
diff --git a/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_1.ref b/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_1.ref index 0e8bf842f..6f1b1a103 100644 --- a/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_1.ref +++ b/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_1.ref @@ -1,4 +1,4 @@ -BGP table version is 0, local router ID is 172.30.1.1 +BGP table version is XXX, local router ID is 172.30.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete diff --git a/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_2.ref b/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_2.ref index cfdbaeb99..0230d25f5 100644 --- a/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_2.ref +++ b/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_2.ref @@ -1,4 +1,4 @@ -BGP table version is 0, local router ID is 172.30.1.1 +BGP table version is XXX, local router ID is 172.30.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete diff --git a/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_3.ref b/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_3.ref index f0f471db8..b7e8c79d3 100644 --- a/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_3.ref +++ b/tests/topotests/bgp_multiview_topo1/r1/show_ip_bgp_view_3.ref @@ -1,4 +1,4 @@ -BGP table version is 0, local router ID is 172.30.1.1 +BGP table version is XXX, local router ID is 172.30.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete diff --git a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py index 9ada8422c..3e548d6ff 100755 --- a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py +++ b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py @@ -286,6 +286,8 @@ def test_bgp_routingTable(): actual = re.sub(r'Total number.*', '', actual) actual = re.sub(r'Displayed.*', '', actual) actual = actual.rstrip() + # Fix table version (ignore it) + actual = re.sub(r'(BGP table version is )[0-9]+', r'\1XXX', actual) # Fix newlines (make them all the same) actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1) |