summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/ospf.py
diff options
context:
space:
mode:
authorY Bharath <y.bharath@samsung.com>2024-06-15 22:36:32 +0530
committerY Bharath <y.bharath@samsung.com>2024-06-17 15:42:59 +0530
commit8381dbd9e258825daff4802c4c44b3d435a7b7e3 (patch)
tree9e2884a629e76f7b68ea9e40a98c6db7b5411814 /tests/topotests/lib/ospf.py
parent045029e2442dbca3b6e7685438d171fa05c0f968 (diff)
tests: Avoid importing unused modules
Signed-off-by: y-bharath14 <y.bharath@samsung.com>
Diffstat (limited to 'tests/topotests/lib/ospf.py')
-rw-r--r--tests/topotests/lib/ospf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/ospf.py b/tests/topotests/lib/ospf.py
index 5b18f8b679..2c876e1989 100644
--- a/tests/topotests/lib/ospf.py
+++ b/tests/topotests/lib/ospf.py
@@ -1545,7 +1545,7 @@ def verify_ospf_database(
)
return errormsg
if ospf_external_lsa:
- for ospf_ext_lsa, ext_lsa_data in ospf_external_lsa.items():
+ for ospf_ext_lsa, _ in ospf_external_lsa.items():
if ospf_ext_lsa in show_ospf_json["AS External Link States"]:
logger.info(
"[DUT: %s] OSPF LSDB:External LSA %s", router, ospf_ext_lsa
@@ -2509,7 +2509,7 @@ def verify_ospf_gr_helper(tgen, topo, dut, input_dict=None):
raise ValueError(errormsg)
return errormsg
- for ospf_gr, gr_data in input_dict.items():
+ for ospf_gr, _ in input_dict.items():
try:
if input_dict[ospf_gr] == show_ospf_json[ospf_gr]:
logger.info(