Skip to content

Commit

Permalink
Add Arista-7060X6-64DE-O128S2 and Arista-7060X6-64PE-C224O8 HWSKUs (#…
Browse files Browse the repository at this point in the history
…15781)

What is the motivation for this PR?
To support sonic-mgmt testing for the Arista-7060X6-64DE-O128S2 and Arista-7060X6-64PE-C224O8 hwskus.

How did you do it?
Added the necessary ansible variable/port util definitions for these hwskus.

How did you verify/test it?
Verified the testbed can be successfully configured and the sonic-mgmt suite of tests can be run against these hwskus.

Any platform specific information?
This targets the Arista-7060X6-64DE-O128S2 and Arista-7060X6-64PE-C224O8 hwskus.
  • Loading branch information
ccroy-arista authored Dec 6, 2024
1 parent b628dc3 commit 39a5dbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/group_vars/sonic/variables
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ broadcom_th_hwskus: ['Force10-S6100', 'Arista-7060CX-32S-C32', 'Arista-7060CX-32
broadcom_th2_hwskus: ['Arista-7260CX3-D108C8', 'Arista-7260CX3-C64', 'Arista-7260CX3-Q64']
broadcom_th3_hwskus: ['DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32']
broadcom_th4_hwskus: ['Arista-7060DX5-32', 'Arista-7060DX5-64S']
broadcom_th5_hwskus: ['Arista-7060X6-64DE', 'Arista-7060X6-64DE-64x400G', 'Arista-7060X6-64DE-256x200G', 'Arista-7060X6-64PE', 'Arista-7060X6-64PE-64x400G', 'Arista-7060X6-64PE-O128S2', 'Arista-7060X6-64PE-256x200G', 'Arista-7060X6-64PE-C256S2']
broadcom_th5_hwskus: ['Arista-7060X6-64DE', 'Arista-7060X6-64DE-64x400G', 'Arista-7060X6-64DE-O128S2', 'Arista-7060X6-64DE-256x200G', 'Arista-7060X6-64PE', 'Arista-7060X6-64PE-64x400G', 'Arista-7060X6-64PE-O128S2', 'Arista-7060X6-64PE-256x200G', 'Arista-7060X6-64PE-C256S2', 'Arista-7060X6-64PE-C224O8']
broadcom_j2c+_hwskus: ['Nokia-IXR7250E-36x100G', 'Nokia-IXR7250E-36x400G', 'Arista-7800R3A-36DM2-C36', 'Arista-7800R3A-36DM2-D36', 'Arista-7800R3AK-36DM2-C36', 'Arista-7800R3AK-36DM2-D36']
broadcom_jr2_hwskus: ['Arista-7800R3-48CQ2-C48', 'Arista-7800R3-48CQM2-C48']

Expand Down
12 changes: 11 additions & 1 deletion ansible/module_utils/port_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_port_alias_to_name_map(hwsku, asic_name=None):
port_alias_to_name_map["Ethernet%d/1" % i] = "Ethernet%d" % ((i - 1) * 8)
port_alias_to_name_map["Ethernet65"] = "Ethernet512"
port_alias_to_name_map["Ethernet66"] = "Ethernet513"
elif hwsku == "Arista-7060X6-64PE-O128S2":
elif hwsku in ["Arista-7060X6-64DE-O128S2", "Arista-7060X6-64PE-O128S2"]:
for i in range(1, 65):
for j in [1, 5]:
port_alias_to_name_map["Ethernet%d/%d" % (i, j)] = "Ethernet%d" % ((i - 1) * 8 + j - 1)
Expand All @@ -130,6 +130,16 @@ def get_port_alias_to_name_map(hwsku, asic_name=None):
port_alias_to_name_map["Ethernet%d/%d" % (i, j)] = "Ethernet%d" % ((i - 1) * 8 + j - 1)
port_alias_to_name_map["Ethernet65"] = "Ethernet512"
port_alias_to_name_map["Ethernet66"] = "Ethernet513"
elif hwsku == "Arista-7060X6-64PE-C224O8": # This hwsku uses every second OSFP port.
for i in range(1, 65, 2):
if i in [13, 17, 45, 49]:
for j in [1, 5]:
port_alias_to_name_map["Ethernet%d/%d" % (i, j)] = "Ethernet%d" % ((i - 1) * 8 + j - 1)
else:
for j in range(1, 9):
port_alias_to_name_map["Ethernet%d/%d" % (i, j)] = "Ethernet%d" % ((i - 1) * 8 + j - 1)
port_alias_to_name_map["Ethernet65"] = "Ethernet512"
port_alias_to_name_map["Ethernet66"] = "Ethernet513"
elif hwsku == "Arista-7050QX32S-Q32":
for i in range(5, 29):
port_alias_to_name_map["Ethernet%d/1" % i] = "Ethernet%d" % ((i - 5) * 4)
Expand Down

0 comments on commit 39a5dbb

Please sign in to comment.