Skip to content

Commit

Permalink
[Arista] [201811] Add Arista-7260CX3-D96C16 HWSKU (sonic-net#10034)
Browse files Browse the repository at this point in the history
Why I did it
This was an ask by Microsoft to provide:
7260 config.bcm file for hardware sku Arista-7260CX3-D92C16 (Named Arista-7260CX3-D96C16).

There are 16 100G uplinks:
Ethernet13-20/1
Ethernet45-52/1

All other ports are breakout to 2 50G ports.

How I did it
Copied existing Arista-7260CX3-D108C8 HWSKU and altered the bcm.config and port_config.ini files.

How to verify it
The new 100G ports do come up with a 201811 image using this HWSKU.

Co-authored-by: Zhi Yuan (Carl) Zhao <zyzhao@arista.com>
  • Loading branch information
2 people authored and yxieca committed May 5, 2022
1 parent abd0b08 commit adafd90
Show file tree
Hide file tree
Showing 7 changed files with 1,109 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{%- set default_topo = 't0' %}
{%- include 'buffers_config.j2' %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{%- set default_cable = '5m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,12) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(12,20) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(20,44) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(44,52) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(52,64) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "33329088",
"type": "ingress",
"mode": "dynamic",
"xoff": "7827456"
},
"egress_lossy_pool": {
"size": "26663272",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "42349632",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"static_th":"44302336"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"42349632"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1664",
"dynamic_th":"-1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
50000 5m 1248 1248 56160 -3 2496
100000 5m 1248 1248 96928 -3 2496
50000 40m 1248 1248 96096 -3 2496
100000 40m 1248 1248 177632 -3 2496
50000 300m 1248 1248 141856 -3 2496
100000 300m 1248 1248 268736 -3 2496
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# name lanes alias index speed
Ethernet0 77,78 Ethernet1/1 1 50000
Ethernet2 79,80 Ethernet1/3 1 50000
Ethernet4 65,66 Ethernet2/1 2 50000
Ethernet6 67,68 Ethernet2/3 2 50000
Ethernet8 85,86 Ethernet3/1 3 50000
Ethernet10 87,88 Ethernet3/3 3 50000
Ethernet12 89,90 Ethernet4/1 4 50000
Ethernet14 91,92 Ethernet4/3 4 50000
Ethernet16 109,110 Ethernet5/1 5 50000
Ethernet18 111,112 Ethernet5/3 5 50000
Ethernet20 97,98 Ethernet6/1 6 50000
Ethernet22 99,100 Ethernet6/3 6 50000
Ethernet24 5,6 Ethernet7/1 7 50000
Ethernet26 7,8 Ethernet7/3 7 50000
Ethernet28 13,14 Ethernet8/1 8 50000
Ethernet30 15,16 Ethernet8/3 8 50000
Ethernet32 25,26 Ethernet9/1 9 50000
Ethernet34 27,28 Ethernet9/3 9 50000
Ethernet36 21,22 Ethernet10/1 10 50000
Ethernet38 23,24 Ethernet10/3 10 50000
Ethernet40 37,38 Ethernet11/1 11 50000
Ethernet42 39,40 Ethernet11/3 11 50000
Ethernet44 45,46 Ethernet12/1 12 50000
Ethernet46 47,48 Ethernet12/3 12 50000
Ethernet48 57,58,59,60 Ethernet13/1 13 100000
Ethernet52 53,54,55,56 Ethernet14/1 14 100000
Ethernet56 117,118,119,120 Ethernet15/1 15 100000
Ethernet60 121,122,123,124 Ethernet16/1 16 100000
Ethernet64 141,142,143,144 Ethernet17/1 17 100000
Ethernet68 133,134,135,136 Ethernet18/1 18 100000
Ethernet72 197,198,199,200 Ethernet19/1 19 100000
Ethernet76 205,206,207,208 Ethernet20/1 20 100000
Ethernet80 217,218 Ethernet21/1 21 50000
Ethernet82 219,220 Ethernet21/3 21 50000
Ethernet84 213,214 Ethernet22/1 22 50000
Ethernet86 215,216 Ethernet22/3 22 50000
Ethernet88 229,230 Ethernet23/1 23 50000
Ethernet90 231,232 Ethernet23/3 23 50000
Ethernet92 237,238 Ethernet24/1 24 50000
Ethernet94 239,240 Ethernet24/3 24 50000
Ethernet96 249,250 Ethernet25/1 25 50000
Ethernet98 251,252 Ethernet25/3 25 50000
Ethernet100 245,246 Ethernet26/1 26 50000
Ethernet102 247,248 Ethernet26/3 26 50000
Ethernet104 149,150 Ethernet27/1 27 50000
Ethernet106 151,152 Ethernet27/3 27 50000
Ethernet108 153,154 Ethernet28/1 28 50000
Ethernet110 155,156 Ethernet28/3 28 50000
Ethernet112 173,174 Ethernet29/1 29 50000
Ethernet114 175,176 Ethernet29/3 29 50000
Ethernet116 161,162 Ethernet30/1 30 50000
Ethernet118 163,164 Ethernet30/3 30 50000
Ethernet120 181,182 Ethernet31/1 31 50000
Ethernet122 183,184 Ethernet31/3 31 50000
Ethernet124 185,186 Ethernet32/1 32 50000
Ethernet126 187,188 Ethernet32/3 32 50000
Ethernet128 69,70 Ethernet33/1 33 50000
Ethernet130 71,72 Ethernet33/3 33 50000
Ethernet132 73,74 Ethernet34/1 34 50000
Ethernet134 75,76 Ethernet34/3 34 50000
Ethernet136 93,94 Ethernet35/1 35 50000
Ethernet138 95,96 Ethernet35/3 35 50000
Ethernet140 81,82 Ethernet36/1 36 50000
Ethernet142 83,84 Ethernet36/3 36 50000
Ethernet144 101,102 Ethernet37/1 37 50000
Ethernet146 103,104 Ethernet37/3 37 50000
Ethernet148 105,106 Ethernet38/1 38 50000
Ethernet150 107,108 Ethernet38/3 38 50000
Ethernet152 9,10 Ethernet39/1 39 50000
Ethernet154 11,12 Ethernet39/3 39 50000
Ethernet156 1,2 Ethernet40/1 40 50000
Ethernet158 3,4 Ethernet40/3 40 50000
Ethernet160 17,18 Ethernet41/1 41 50000
Ethernet162 19,20 Ethernet41/3 41 50000
Ethernet164 29,30 Ethernet42/1 42 50000
Ethernet166 31,32 Ethernet42/3 42 50000
Ethernet168 41,42 Ethernet43/1 43 50000
Ethernet170 43,44 Ethernet43/3 43 50000
Ethernet172 33,34 Ethernet44/1 44 50000
Ethernet174 35,36 Ethernet44/3 44 50000
Ethernet176 49,50,51,52 Ethernet45/1 45 100000
Ethernet180 61,62,63,64 Ethernet46/1 46 100000
Ethernet184 125,126,127,128 Ethernet47/1 47 100000
Ethernet188 113,114,115,116 Ethernet48/1 48 100000
Ethernet192 129,130,131,132 Ethernet49/1 49 100000
Ethernet196 137,138,139,140 Ethernet50/1 50 100000
Ethernet200 201,202,203,204 Ethernet51/1 51 100000
Ethernet204 193,194,195,196 Ethernet52/1 52 100000
Ethernet208 209,210 Ethernet53/1 53 50000
Ethernet210 211,212 Ethernet53/3 53 50000
Ethernet212 221,222 Ethernet54/1 54 50000
Ethernet214 223,224 Ethernet54/3 54 50000
Ethernet216 233,234 Ethernet55/1 55 50000
Ethernet218 235,236 Ethernet55/3 55 50000
Ethernet220 225,226 Ethernet56/1 56 50000
Ethernet222 227,228 Ethernet56/3 56 50000
Ethernet224 241,242 Ethernet57/1 57 50000
Ethernet226 243,244 Ethernet57/3 57 50000
Ethernet228 253,254 Ethernet58/1 58 50000
Ethernet230 255,256 Ethernet58/3 58 50000
Ethernet232 157,158 Ethernet59/1 59 50000
Ethernet234 159,160 Ethernet59/3 59 50000
Ethernet236 145,146 Ethernet60/1 60 50000
Ethernet238 147,148 Ethernet60/3 60 50000
Ethernet240 165,166 Ethernet61/1 61 50000
Ethernet242 167,168 Ethernet61/3 61 50000
Ethernet244 169,170 Ethernet62/1 62 50000
Ethernet246 171,172 Ethernet62/3 62 50000
Ethernet248 189,190 Ethernet63/1 63 50000
Ethernet250 191,192 Ethernet63/3 63 50000
Ethernet252 177,178 Ethernet64/1 64 50000
Ethernet254 179,180 Ethernet64/3 64 50000
Ethernet256 257 Ethernet65 65 10000
Ethernet260 259 Ethernet66 66 10000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-96x50G+16x100G.config.bcm
Loading

0 comments on commit adafd90

Please sign in to comment.