Skip to content

Commit 310e62a

Browse files
committed
Removed usage of getTableNameSeparator since the mock Table class does not support it.
Signed-off-by: Mahdi Ramezani <[email protected]>
1 parent 2c35e60 commit 310e62a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/vnet_route_check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,12 @@ def filter_active_vnet_routes(vnet_routes: dict):
365365
"""
366366
state_db = swsscommon.DBConnector("STATE_DB", 0, True)
367367
vnet_route_tunnel_table = swsscommon.Table(state_db, "VNET_ROUTE_TUNNEL_TABLE")
368-
state_db_separator = vnet_route_tunnel_table.getTableNameSeparator()
369368

370369
vnet_active_routes = {}
371370
for vnet_name, vnet_info in vnet_routes.items():
372371
active_routes = []
373372
for prefix in vnet_info["routes"]:
374-
key = f"{vnet_name}{state_db_separator}{prefix}"
373+
key = f"{vnet_name}|{prefix}"
375374
status, fvs = vnet_route_tunnel_table.get(key)
376375
if not status:
377376
print_message(syslog.LOG_ERR, f"VNET_ROUTE_TUNNEL_TABLE|{key} does not exist in STATE DB.")

0 commit comments

Comments
 (0)