Skip to content

Commit

Permalink
Fix set_lpmode() in sfp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Jun 21, 2021
1 parent 44e58c3 commit 314f093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_model(self):
"""
return self._eeprom.get_pn()

def get_serial_number(self):
def get_serial(self):
"""
Retrieves the hardware serial number for the chassis
Returns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ def set_lpmode(self, lpmode):
if self.port_num <= 48 or self.port_num >=57:
return False # SFP doesn't support this feature

if lpmode is True:
if lpmode:
return self.set_power_override(True, True)
else:
return self.set_power_override(True, False)
Expand Down

0 comments on commit 314f093

Please sign in to comment.