From: Martin Winter Date: Wed, 31 May 2017 03:01:55 +0000 (-0700) Subject: ospf6_topo1: Remove ff00:/8 routes from Linux Table compare X-Git-Tag: frr-7.1-dev~151^2~316 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9e05a644e9b4b5b041c1d63d9d081231920a3311;p=matthieu%2Ffrr.git 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 --- 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)