Skip to content

Commit 6f74ba5

Browse files
[vnet_route_check] Fix logic for getting VNET routes from ASIC DB (#1653)
Fixed issue when VNET route check detects some routes as missed they are really configured. Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
1 parent 54fee0f commit 6f74ba5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/vnet_route_check.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,8 @@ def get_vnet_routes_from_asic_db():
266266
ip_addr = route_attrs[3]
267267

268268
if vrf_oid in vnet_vrfs_oids:
269+
vnet_name = vrf_oid_to_vnet_map[vrf_oid]
269270
if vrf_oid_to_vnet_map[vrf_oid] not in vnet_routes:
270-
vnet_name = vrf_oid_to_vnet_map[vrf_oid]
271-
272271
vnet_routes[vnet_name] = {}
273272
vnet_routes[vnet_name]['routes'] = []
274273
vnet_routes[vnet_name]['vrf_oid'] = vrf_oid

0 commit comments

Comments
 (0)