Skip to content

Commit

Permalink
drop PORT_ADV_SPEEDS from state_db_port_status_get()
Browse files Browse the repository at this point in the history
Signed-off-by: Dante Su <dante.su@broadcom.com>
  • Loading branch information
ds952811 committed May 10, 2022
1 parent 1f6d48a commit 5c32a21
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 @@ -180,7 +180,7 @@ def state_db_port_status_get(db, intf_name, field):
status = '{}G'.format(int(speed / 1000))
else:
status = '{}M'.format(speed)
elif field in [PORT_ADV_SPEEDS, PORT_RMT_ADV_SPEEDS] and status not in ["N/A", "all"]:
elif field in [PORT_RMT_ADV_SPEEDS] and status not in ["N/A", "all"]:
speed_list = status.split(',')
new_speed_list = []
for s in natsorted(speed_list):
Expand Down

0 comments on commit 5c32a21

Please sign in to comment.