diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-05-10 08:42:07 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-10 08:42:07 -0300 |
| commit | e777abf3a1ed41f18e479969288a06cef73df425 (patch) | |
| tree | 2602fb3d7fe09c488cd7002fc0d9e0d7fe88f8e0 /tests/topotests/all-protocol-startup/test_all_protocol_startup.py | |
| parent | 773fc72b1fb0f4cfb1c2ba6bd5d582aaf62bb4ff (diff) | |
| parent | c9d72a0b7f2f28ac33368675f70d55428099e831 (diff) | |
Merge pull request #4295 from donaldsharp/topotest_if
topotests: ifindex values are not guaranteed to be the same
Diffstat (limited to 'tests/topotests/all-protocol-startup/test_all_protocol_startup.py')
| -rwxr-xr-x | tests/topotests/all-protocol-startup/test_all_protocol_startup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/topotests/all-protocol-startup/test_all_protocol_startup.py b/tests/topotests/all-protocol-startup/test_all_protocol_startup.py index 239de55bd6..9658c080c0 100755 --- a/tests/topotests/all-protocol-startup/test_all_protocol_startup.py +++ b/tests/topotests/all-protocol-startup/test_all_protocol_startup.py @@ -480,6 +480,8 @@ def test_ospfv2_interfaces(): actual = net['r%s' % i].cmd('vtysh -c "show ip ospf interface" 2> /dev/null').rstrip() # Mask out Bandwidth portion. They may change.. actual = re.sub(r"BW [0-9]+ Mbit", "BW XX Mbit", actual) + actual = re.sub(r"ifindex [0-9]", "ifindex X", actual) + # Drop time in next due actual = re.sub(r"Hello due in [0-9\.]+s", "Hello due in XX.XXXs", actual) # Fix 'MTU mismatch detection: enabled' vs 'MTU mismatch detection:enabled' - accept both |
