Skip to content

Commit

Permalink
LT Admin/Oper: Use 'N/A' when the data is unavailable
Browse files Browse the repository at this point in the history
Signed-off-by: Dante Su <[email protected]>
  • Loading branch information
ds952811 committed Aug 12, 2022
1 parent a6b1aa3 commit 9fcf20c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/intfutil
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,10 @@ class IntfLinkTrainingStatus(object):
continue
lt_admin = appl_db_port_status_get(self.db, key, PORT_LINK_TRAINING)
if lt_admin not in ['on', 'off']:
lt_admin = '-'
lt_admin = 'N/A'
lt_status = state_db_port_status_get(self.db, key, PORT_LINK_TRAINING_STATUS)
if lt_status in ['N/A', '', None]:
lt_status = 'off'
if lt_status in ['', None]:
lt_status = 'N/A'
table.append((key,
lt_status.replace('_', ' '),
lt_admin,
Expand Down

0 comments on commit 9fcf20c

Please sign in to comment.