From 0e8ccff3113163864b3480d9a3bc559fc35935d7 Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Fri, 21 Jul 2017 18:32:48 -0700 Subject: [PATCH] ospf-topo: Mask IPv6 local-addressess instead of removing them Just mask out the random part makes the diff output better readable --- tests/topotests/ospf-topo1/test_ospf_topo1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5