-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[platform] Complete support for Arista-7050QX-32S (#661)
* Bump sonic-platform-modules-arista submodule * Use sonic_sfputil plugin from the arista library * Fix undefined variable varlog_size * Prevent minigraph.xml to be removed from the flash * Update DCS-7050QX-32 sensors config
- Loading branch information
Showing
7 changed files
with
41 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
from sonic_sfp.sfputilbase import sfputilbase | ||
import arista.utils.sonic_sfputil as arista_sfputil | ||
except ImportError, e: | ||
raise ImportError (str(e) + "- required module not found") | ||
|
||
|
||
class sfputil(sfputilbase): | ||
"""Platform specific sfputil class""" | ||
|
||
port_start = 0 | ||
port_end = 31 | ||
ports_in_block = 32 | ||
|
||
eeprom_offset = 10 | ||
|
||
port_to_eeprom_mapping = {} | ||
|
||
_qsfp_ports = range(0, ports_in_block + 1) | ||
|
||
def __init__(self, port_num): | ||
# Override port_to_eeprom_mapping for class initialization | ||
eeprom_path = '/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom' | ||
for x in range(0, self.port_end + 1): | ||
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + self.eeprom_offset) | ||
sfputilbase.__init__(self, port_num) | ||
sfputil = arista_sfputil.getSfpUtil() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
from sonic_sfp.sfputilbase import sfputilbase | ||
import arista.utils.sonic_sfputil as arista_sfputil | ||
except ImportError, e: | ||
raise ImportError (str(e) + "- required module not found") | ||
|
||
|
||
class sfputil(sfputilbase): | ||
"""Platform specific sfputil class""" | ||
|
||
port_start = 0 | ||
port_end = 31 | ||
ports_in_block = 32 | ||
|
||
eeprom_offset = 10 | ||
|
||
port_to_eeprom_mapping = {} | ||
|
||
_qsfp_ports = range(0, ports_in_block + 1) | ||
|
||
# also has sfp[1-4] ports handled by a mux to choose against qsfp5 | ||
# i2c-40 to i2c-43 | ||
|
||
def __init__(self, port_num): | ||
# Override port_to_eeprom_mapping for class initialization | ||
eeprom_path = '/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom' | ||
for x in range(0, self.port_end + 1): | ||
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + self.eeprom_offset) | ||
sfputilbase.__init__(self, port_num) | ||
sfputil = arista_sfputil.getSfpUtil() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
from sonic_sfp.sfputilbase import sfputilbase | ||
import arista.utils.sonic_sfputil as arista_sfputil | ||
except ImportError, e: | ||
raise ImportError (str(e) + "- required module not found") | ||
|
||
|
||
class sfputil(sfputilbase): | ||
"""Platform specific sfputil class""" | ||
|
||
port_start = 0 | ||
port_end = 33 | ||
ports_in_block = 34 | ||
|
||
eeprom_offset = 18 | ||
|
||
port_to_eeprom_mapping = {} | ||
|
||
_qsfp_ports = range(0, 32 + 1) | ||
_sfp_ports = range(33, 34 + 1) | ||
|
||
def __init__(self, port_num): | ||
# Override port_to_eeprom_mapping for class initialization | ||
eeprom_path = '/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom' | ||
for x in range(0, self.port_end + 1): | ||
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + self.eeprom_offset) | ||
sfputilbase.__init__(self, port_num) | ||
sfputil = arista_sfputil.getSfpUtil() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule sonic-platform-modules-arista
updated
7 files
+59 −57 | arista/components/ds125br.py | |
+3 −3 | arista/components/scd.py | |
+25 −2 | arista/core/platform.py | |
+5 −2 | arista/platforms/a7050qx32.py | |
+6 −2 | arista/platforms/a7050qx32s.py | |
+5 −1 | arista/platforms/a7060cx32s.py | |
+26 −0 | arista/utils/sonic_sfputil.py |