Skip to content

Commit 72b7069

Browse files
kirankellalguohan
authored andcommitted
show interface status <interface-name> throws error (fixes sonic-net#427) (sonic-net#440)
* sonic-utilities: Bug fix while showing interface status for a specific interface. * While getting the keys from port table for a specific interface, wrong db is passed, fixed the bug Signed-off-by: kiran.kella@broadcom.com
1 parent f452ec4 commit 72b7069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/intfutil

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def appl_db_keys_get(appl_db, intf_name):
3939
if intf_name is None:
4040
appl_db_keys = appl_db.keys(appl_db.APPL_DB, "PORT_TABLE:*")
4141
elif intf_name.startswith('Ethernet'):
42-
appl_db_keys = db.keys(appl_db.APPL_DB, "PORT_TABLE:%s" % intf_name)
42+
appl_db_keys = appl_db.keys(appl_db.APPL_DB, "PORT_TABLE:%s" % intf_name)
4343
else:
4444
return None
4545

0 commit comments

Comments
 (0)