Skip to content

Commit f21dadc

Browse files
authored
update arista-720dt port alias mapping (#6392)
What is the motivation for this PR? According to SONiC port naming convention change (https://github.com/sonic-net/SONiC/blob/master/doc/sonic-port-name.md), update the port alias to etp1~etp52 for Arista-720DT. How did you do it? Update the port alias mapping in port_utils.py. How did you verify/test it? Verified on physical testbeds.
1 parent 67f0395 commit f21dadc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/module_utils/port_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ def get_port_alias_to_name_map(hwsku, asic_name=None):
229229
for i in range(0, 256, 8):
230230
port_alias_to_name_map["Ethernet%d" % i] = "Ethernet%d" % i
231231
elif hwsku == "Arista-720DT-48S":
232-
for i in range (1,53):
233-
port_alias_to_name_map["Ethernet%d" % i] = "Ethernet%d" % (i - 1)
232+
for i in range(1, 53):
233+
port_alias_to_name_map["etp%d" % i] = "Ethernet%d" % (i - 1)
234234
else:
235235
for i in range(0, 128, 4):
236236
port_alias_to_name_map["Ethernet%d" % i] = "Ethernet%d" % i

0 commit comments

Comments
 (0)