Skip to content

Commit

Permalink
[vnet_route_check] Fix logic for getting VNET routes from ASIC DB (so…
Browse files Browse the repository at this point in the history
…nic-net#1653)

Fixed issue when VNET route check detects some routes as missed they are really configured.
Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
  • Loading branch information
volodymyrsamotiy authored Jun 21, 2021
1 parent 54fee0f commit 6f74ba5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/vnet_route_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ def get_vnet_routes_from_asic_db():
ip_addr = route_attrs[3]

if vrf_oid in vnet_vrfs_oids:
vnet_name = vrf_oid_to_vnet_map[vrf_oid]
if vrf_oid_to_vnet_map[vrf_oid] not in vnet_routes:
vnet_name = vrf_oid_to_vnet_map[vrf_oid]

vnet_routes[vnet_name] = {}
vnet_routes[vnet_name]['routes'] = []
vnet_routes[vnet_name]['vrf_oid'] = vrf_oid
Expand Down

0 comments on commit 6f74ba5

Please sign in to comment.