summaryrefslogtreecommitdiffstats
path: root/tests/topotests/lib/ospf.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-07-21 15:33:50 +0200
committerChristian Hopps <chopps@labn.net>2021-09-04 15:04:46 +0200
commitc8e5983d8efa12eea0e91512802a84d46dd899e9 (patch)
treecef541c41d4cac9e0de71f946cebb3837844896f /tests/topotests/lib/ospf.py
parentdocker: update with micronet changes (diff)
downloadfrr-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.py6
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