From 9e05a644e9b4b5b041c1d63d9d081231920a3311 Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Tue, 30 May 2017 20:01:55 -0700 Subject: [PATCH] ospf6_topo1: Remove ff00:/8 routes from Linux Table compare Some Ubuntu VM setups show ff00:/8 kernel routes, not a FRR issue Signed-off-by: Martin Winter --- tests/topotests/ospf6-topo1/test_ospf6_topo1.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/topotests/ospf6-topo1/test_ospf6_topo1.py b/tests/topotests/ospf6-topo1/test_ospf6_topo1.py index 8c2b80382d..f72a8082e3 100755 --- a/tests/topotests/ospf6-topo1/test_ospf6_topo1.py +++ b/tests/topotests/ospf6-topo1/test_ospf6_topo1.py @@ -333,6 +333,12 @@ def test_linux_ipv6_kernel_routingTable(): actual = actual.replace(ll[1], "fe80::__(%s)__" % ll[0]) # Mask out protocol name or number actual = re.sub(r" proto [0-9a-z]+ ", " proto XXXX ", actual) + # Remove ff00::/8 routes (seen on some kernels - not from FRR) + actual = re.sub(r'ff00::/8.*', '', actual) + + # Strip empty lines + actual = actual.lstrip() + actual = actual.rstrip() # Fix newlines (make them all the same) actual = ('\n'.join(actual.splitlines())).splitlines(1) -- 2.39.5