mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 16:39:33 +00:00
isis-topo1: simplify dictionary key removal code
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
88f83773d9
commit
d43cd0fd62
@ -165,15 +165,8 @@ def test_isis_route_installation():
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
for nexthop in route['nexthops']:
|
for nexthop in route['nexthops']:
|
||||||
try:
|
nexthop.pop('interfaceIndex', None)
|
||||||
nexthop.pop('interfaceIndex')
|
nexthop.pop('interfaceName', None)
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
|
||||||
nexthop.pop('interfaceName')
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
assertmsg = "Router '{}' routes mismatch".format(rname)
|
assertmsg = "Router '{}' routes mismatch".format(rname)
|
||||||
assert topotest.json_cmp(actual, expected) is None, assertmsg
|
assert topotest.json_cmp(actual, expected) is None, assertmsg
|
||||||
|
Loading…
Reference in New Issue
Block a user