Skip to content

Commit

Permalink
show interface status <interface-name> throws error (fixes sonic-net#427
Browse files Browse the repository at this point in the history
) (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
  • Loading branch information
kirankella authored and lguohan committed Mar 7, 2019
1 parent f452ec4 commit 72b7069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/intfutil
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def appl_db_keys_get(appl_db, intf_name):
if intf_name is None:
appl_db_keys = appl_db.keys(appl_db.APPL_DB, "PORT_TABLE:*")
elif intf_name.startswith('Ethernet'):
appl_db_keys = db.keys(appl_db.APPL_DB, "PORT_TABLE:%s" % intf_name)
appl_db_keys = appl_db.keys(appl_db.APPL_DB, "PORT_TABLE:%s" % intf_name)
else:
return None

Expand Down

0 comments on commit 72b7069

Please sign in to comment.