summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNaveen Guggarigoudar <nguggarigoud@vmware.com>2020-07-07 09:47:51 -0700
committerVijay Kumar Gupta <vijayg@vmware.com>2020-12-10 16:44:48 -0800
commitf8f6dbe9f7311136b717c3669dacdc328f858fdd (patch)
tree268c77b7aae01b481f6ce7a06ed52c1768d42d23 /tests
parenteee0457da70671c2d5fd02e57e9b8829dba6956d (diff)
tests: Enhanced the lib bgp.py for nexthop check
1. Enhanced the lib bgp.py for nexthop check Signed-off-by: naveen <nguggarigoud@vmware.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/lib/bgp.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/topotests/lib/bgp.py b/tests/topotests/lib/bgp.py
index 7449b59324..ce777f5460 100644
--- a/tests/topotests/lib/bgp.py
+++ b/tests/topotests/lib/bgp.py
@@ -2639,19 +2639,19 @@ def verify_bgp_rib(tgen, addr_type, dut, input_dict, next_hop=None, aspath=None)
missing_list_of_nexthops = set(list2).difference(
list1
)
- additional_nexthops_in_required_nhs = set(
- list1
- ).difference(list2)
+ additional_nexthops_in_required_nhs = set(
+ list1
+ ).difference(list2)
- if list2:
- if additional_nexthops_in_required_nhs:
- logger.info(
- "Missing nexthop %s for route"
- " %s in RIB of router %s\n",
- additional_nexthops_in_required_nhs,
- st_rt,
- dut,
- )
+ if list2:
+ if additional_nexthops_in_required_nhs:
+ logger.info(
+ "Missing nexthop %s for route"
+ " %s in RIB of router %s\n",
+ additional_nexthops_in_required_nhs,
+ st_rt,
+ dut,
+ )
return errormsg
else:
nh_found = True