Skip to content

Commit

Permalink
Adding sfp ports support
Browse files Browse the repository at this point in the history
  • Loading branch information
lkunjumon committed May 31, 2021
1 parent a79d181 commit 2a8b61a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,12 @@ def __init__(self):

for index in range(self.SFP_PORT_START, self.SFP_PORT_END+1):
i2cdev = 0
port=index-1
port_eeprom_path = eeprom_path
profile = sfputil_profiles[self._port_profile]
if not os.path.exists(port_eeprom_path):
logger.log_info(" DEBUG - path %s -- did not exist " % port_eeprom_path )
if index in profile:
if port in profile:
sfp_node = Sfp(index, 'QSFP', port_eeprom_path, i2cdev )
self._sfp_list.append(sfp_node)
self.sfp_event_initialized = False
Expand Down

0 comments on commit 2a8b61a

Please sign in to comment.