Skip to content

Commit

Permalink
fix the testing change;correct param
Browse files Browse the repository at this point in the history
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
  • Loading branch information
vdahiya12 committed Sep 14, 2021
1 parent 6127d34 commit 7ef0c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/intfutil
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ class IntfAutoNegStatus(object):
continue
autoneg_mode = appl_db_port_status_get(self.db, key, PORT_AUTONEG)
if autoneg_mode != 'N/A':
autoneg_mode = 'enabled' if autoneg_mode == 'on' else 'disabled'
autoneg_mode = 'enabled' if autoneg_mode == '1' else 'disabled'
table.append((key,
autoneg_mode,
appl_db_port_status_get(self.db, key, PORT_SPEED),
Expand Down
2 changes: 1 addition & 1 deletion scripts/portconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class portconfig(object):
def set_autoneg(self, port, mode):
if self.verbose:
print("Setting autoneg %s on port %s" % (mode, port))
mode = 'on' if mode == 'enabled' else 'off'
mode = 1 if mode == 'enabled' else 0
self.db.mod_entry(PORT_TABLE_NAME, port, {PORT_AUTONEG_CONFIG_FIELD_NAME: mode})


Expand Down

0 comments on commit 7ef0c31

Please sign in to comment.