diff options
author | Christian Hopps <chopps@labn.net> | 2021-07-21 15:33:50 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2021-09-04 15:04:46 +0200 |
commit | c8e5983d8efa12eea0e91512802a84d46dd899e9 (patch) | |
tree | cef541c41d4cac9e0de71f946cebb3837844896f /tests/topotests/lib/ospf.py | |
parent | docker: update with micronet changes (diff) | |
download | frr-c8e5983d8efa12eea0e91512802a84d46dd899e9.tar.xz frr-c8e5983d8efa12eea0e91512802a84d46dd899e9.zip |
tests: fix pylint infra errors
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/lib/ospf.py')
-rw-r--r-- | tests/topotests/lib/ospf.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/topotests/lib/ospf.py b/tests/topotests/lib/ospf.py index ba926bf30..d6f1b0e00 100644 --- a/tests/topotests/lib/ospf.py +++ b/tests/topotests/lib/ospf.py @@ -25,8 +25,6 @@ from copy import deepcopy from ipaddress import IPv6Address from time import sleep -import ipaddr - # Import common_config to use commomnly used APIs from lib.common_config import ( create_common_configurations, @@ -1147,7 +1145,7 @@ def verify_ospf_rib( nh_found = False for st_rt in ip_list: - st_rt = str(ipaddr.IPNetwork(frr_unicode(st_rt))) + st_rt = str(ipaddress.ip_network(frr_unicode(st_rt))) _addr_type = validate_ip_address(st_rt) if _addr_type != "ipv4": @@ -1720,7 +1718,7 @@ def verify_ospf6_rib(tgen, dut, input_dict, next_hop=None, additional_nexthops_in_required_nhs = [] found_hops = [] for routerInput in input_dict.keys(): - for router, rnode in router_list.iteritems(): + for router, rnode in router_list.items(): if router != dut: continue |