Skip to content

Commit 249e858

Browse files
stephenxsliat-grozovik
authored andcommitted
[Mellanox] Support SN3800 in platform api (#3593)
* [sonic_platform]Support 3800 1. add port position tuple for 3800 * [sonic_platform/chassis] address comments
1 parent 91e7852 commit 249e858

File tree

1 file changed

+2
-2
lines changed
  • platform/mellanox/mlnx-platform-api/sonic_platform

1 file changed

+2
-2
lines changed

platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343

4444
# magic code defnition for port number, qsfp port position of each hwsku
4545
# port_position_tuple = (PORT_START, QSFP_PORT_START, PORT_END, PORT_IN_BLOCK, EEPROM_OFFSET)
46-
hwsku_dict_port = {'ACS-MSN2700': 0, "LS-SN2700":0, 'ACS-MSN2740': 0, 'ACS-MSN2100': 1, 'ACS-MSN2410': 2, 'ACS-MSN2010': 3, 'ACS-MSN3700': 0, 'ACS-MSN3700C': 0, 'Mellanox-SN2700': 0, 'Mellanox-SN2700-D48C8': 0}
47-
port_position_tuple_list = [(0, 0, 31, 32, 1), (0, 0, 15, 16, 1), (0, 48, 55, 56, 1),(0, 18, 21, 22, 1)]
46+
hwsku_dict_port = {'ACS-MSN2010': 3, 'ACS-MSN2100': 1, 'ACS-MSN2410': 2, 'ACS-MSN2700': 0, 'Mellanox-SN2700': 0, 'Mellanox-SN2700-D48C8': 0, 'LS-SN2700':0, 'ACS-MSN2740': 0, 'ACS-MSN3700': 0, 'ACS-MSN3700C': 0, 'ACS-MSN3800': 4}
47+
port_position_tuple_list = [(0, 0, 31, 32, 1), (0, 0, 15, 16, 1), (0, 48, 55, 56, 1), (0, 18, 21, 22, 1), (0, 0, 63, 64, 1)]
4848

4949
class Chassis(ChassisBase):
5050
"""Platform-specific Chassis class"""

0 commit comments

Comments
 (0)