From: Martin Winter Date: Sat, 22 Jul 2017 01:32:48 +0000 (-0700) Subject: ospf-topo: Mask IPv6 local-addressess instead of removing them X-Git-Tag: frr-7.1-dev~151^2~254 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0e8ccff3113163864b3480d9a3bc559fc35935d7;p=mirror%2Ffrr.git ospf-topo: Mask IPv6 local-addressess instead of removing them Just mask out the random part makes the diff output better readable --- diff --git a/tests/topotests/ospf-topo1/test_ospf_topo1.py b/tests/topotests/ospf-topo1/test_ospf_topo1.py index c5f4dc153a..dfd28e32db 100755 --- a/tests/topotests/ospf-topo1/test_ospf_topo1.py +++ b/tests/topotests/ospf-topo1/test_ospf_topo1.py @@ -136,8 +136,8 @@ def compare_show_ipv6_ospf6(rname, expected): expected = topotest.normalize_text(expected) # Remove the link addresses - current = re.sub(r'fe80:[^ ]+', '', current) - expected = re.sub(r'fe80:[^ ]+', '', expected) + current = re.sub(r'fe80::[^ ]+', 'fe80::xxxx:xxxx:xxxx:xxxx', current) + expected = re.sub(r'fe80::[^ ]+', 'fe80::xxxx:xxxx:xxxx:xxxx', expected) # Remove the time current = re.sub(r'\d+:\d{2}:\d{2}', '', current)