Skip to content

Commit

Permalink
DellEMC: Z9332f SFP enhancements (sonic-net#7457)
Browse files Browse the repository at this point in the history
#### Why I did it
400G media EEPROM and DOM information are not populated properly in DellEMC Z9332f platform.

#### How I did it
Handled QSFP_DD, QSFP28/QSFP+, SFP+ accordingly based on media type detected.
  • Loading branch information
aravindmani-1 authored May 5, 2021
1 parent a2d33a2 commit 659d078
Show file tree
Hide file tree
Showing 2 changed files with 452 additions and 141 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self):
eeprom_base = "/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom"
for index in range(self.PORT_START, self.PORTS_IN_BLOCK):
eeprom_path = eeprom_base.format(self._port_to_i2c_mapping[index])
port_type = 'SFP' if index in _sfp_port else 'QSFP'
port_type = 'SFP' if index in _sfp_port else 'QSFP_DD'
sfp_node = Sfp(index, port_type, eeprom_path)
self._sfp_list.append(sfp_node)

Expand Down
Loading

0 comments on commit 659d078

Please sign in to comment.