Skip to content

Commit

Permalink
[Arista] Add dynamic port breakout hwsku to platforms (#7975)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhi Yuan (Carl) Zhao <zyzhao@arista.com>
Why I did it
To support dynamic port breakout Broadcom configurations on Arista platforms.

How I did it
Updated platform.json for platforms and added new hwsku, Broadcom config, and hwsku.json for dynamic port breakout usage.

The name of the new hwsku name used is very similar to the platform name (platform x86_64-arista_7050_qx32s hwsku Arista-7050QX-32S) as the flex hwsku is meant to be the default in the future.

How to verify it
Boot up device with the new hwsku, interfaces are up.
Change hwsku.json with new default breakout mode and reload device, breakout will have successfully been applied.
  • Loading branch information
zzhiyuan authored Aug 16, 2021
1 parent 8a2ba14 commit 144851f
Show file tree
Hide file tree
Showing 26 changed files with 8,176 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo 1 > /sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/mux
100 changes: 100 additions & 0 deletions device/arista/x86_64-arista_7050_qx32s/Arista-7050QX-32S/hwsku.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"interfaces": {
"Ethernet0": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet4": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet8": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet12": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet16": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet20": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet24": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet28": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet32": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet36": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet40": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet44": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet48": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet52": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet56": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet60": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet64": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet68": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet72": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet76": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet80": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet84": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet88": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet92": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet96": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet100": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet104": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet108": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet112": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet116": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet120": {
"default_brkout_mode": "1x40G[10G]"
},
"Ethernet124": {
"default_brkout_mode": "1x40G[10G]"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# name lanes alias index speed
Ethernet0 9,10,11,12 Ethernet5/1 5 40000
Ethernet4 13,14,15,16 Ethernet6/1 6 40000
Ethernet8 17,18,19,20 Ethernet7/1 7 40000
Ethernet12 21,22,23,24 Ethernet8/1 8 40000
Ethernet16 29,30,31,32 Ethernet9/1 9 40000
Ethernet20 25,26,27,28 Ethernet10/1 10 40000
Ethernet24 33,34,35,36 Ethernet11/1 11 40000
Ethernet28 37,38,39,40 Ethernet12/1 12 40000
Ethernet32 45,46,47,48 Ethernet13/1 13 40000
Ethernet36 41,42,43,44 Ethernet14/1 14 40000
Ethernet40 49,50,51,52 Ethernet15/1 15 40000
Ethernet44 53,54,55,56 Ethernet16/1 16 40000
Ethernet48 69,70,71,72 Ethernet17/1 17 40000
Ethernet52 65,66,67,68 Ethernet18/1 18 40000
Ethernet56 73,74,75,76 Ethernet19/1 19 40000
Ethernet60 77,78,79,80 Ethernet20/1 20 40000
Ethernet64 93,94,95,96 Ethernet21/1 21 40000
Ethernet68 89,90,91,92 Ethernet22/1 22 40000
Ethernet72 97,98,99,100 Ethernet23/1 23 40000
Ethernet76 101,102,103,104 Ethernet24/1 24 40000
Ethernet80 109,110,111,112 Ethernet25/1 25 40000
Ethernet84 105,106,107,108 Ethernet26/1 26 40000
Ethernet88 121,122,123,124 Ethernet27/1 27 40000
Ethernet92 125,126,127,128 Ethernet28/1 28 40000
Ethernet96 61,62,63,64 Ethernet29 29 40000
Ethernet100 57,58,59,60 Ethernet30 30 40000
Ethernet104 81,82,83,84 Ethernet31 31 40000
Ethernet108 85,86,87,88 Ethernet32 32 40000
Ethernet112 117,118,119,120 Ethernet33 33 40000
Ethernet116 113,114,115,116 Ethernet34 34 40000
Ethernet120 1,2,3,4 Ethernet35 35 40000
Ethernet124 5,6,7,8 Ethernet36 36 40000
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/platform/td2-a7050qx-32s-flex.config.bcm
SAI_NUM_ECMP_MEMBERS=64
Loading

0 comments on commit 144851f

Please sign in to comment.