mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 18:10:23 +00:00
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>
This commit is contained in:
parent
eee0457da7
commit
f8f6dbe9f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user