-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[devices]: Add new hwsku Arista-7050-Q31S4 (#2075)
- Loading branch information
Showing
9 changed files
with
929 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/buffers.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{%- set default_topo = 't1' %} | ||
{%- include 'buffers_config.j2' %} | ||
|
49 changes: 49 additions & 0 deletions
49
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/buffers_defaults_t1.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{%- set default_cable = '300m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{% if PORT_ALL.append("Ethernet0") %}{% endif %} | ||
{% if PORT_ALL.append("Ethernet1") %}{% endif %} | ||
{% if PORT_ALL.append("Ethernet2") %}{% endif %} | ||
{% if PORT_ALL.append("Ethernet3") %}{% endif %} | ||
{% for port_idx in range(1,32) %} | ||
{% if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{% endif %} | ||
{% endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "12766208", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "12766208", | ||
"type": "egress", | ||
"mode": "static" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "8072396", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"dynamic_th":"3" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"12766208" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1518", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} |
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/hwsku-init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo 1 > /sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/mux |
14 changes: 14 additions & 0 deletions
14
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/pg_profile_lookup.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
10000 5m 41808 18432 40560 -4 2496 | ||
40000 5m 41808 18432 40560 -4 2496 | ||
50000 5m 41808 18432 40560 -4 2496 | ||
100000 5m 41808 18432 40560 -4 2496 | ||
10000 40m 41808 18432 40560 -4 2496 | ||
40000 40m 41808 18432 40560 -4 2496 | ||
50000 40m 41808 18432 40560 -4 2496 | ||
100000 40m 41808 18432 40560 -4 2496 | ||
10000 300m 41808 18432 40560 -4 2496 | ||
40000 300m 41808 18432 40560 -4 2496 | ||
50000 300m 41808 18432 40560 -4 2496 | ||
100000 300m 41808 18432 40560 -4 2496 |
36 changes: 36 additions & 0 deletions
36
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/port_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# name lanes alias index | ||
Ethernet0 9 Ethernet1 1 | ||
Ethernet1 10 Ethernet2 2 | ||
Ethernet2 11 Ethernet3 3 | ||
Ethernet3 12 Ethernet4 4 | ||
Ethernet4 13,14,15,16 Ethernet6/1 6 | ||
Ethernet8 17,18,19,20 Ethernet7/1 7 | ||
Ethernet12 21,22,23,24 Ethernet8/1 8 | ||
Ethernet16 29,30,31,32 Ethernet9/1 9 | ||
Ethernet20 25,26,27,28 Ethernet10/1 10 | ||
Ethernet24 33,34,35,36 Ethernet11/1 11 | ||
Ethernet28 37,38,39,40 Ethernet12/1 12 | ||
Ethernet32 45,46,47,48 Ethernet13/1 13 | ||
Ethernet36 41,42,43,44 Ethernet14/1 14 | ||
Ethernet40 49,50,51,52 Ethernet15/1 15 | ||
Ethernet44 53,54,55,56 Ethernet16/1 16 | ||
Ethernet48 69,70,71,72 Ethernet17/1 17 | ||
Ethernet52 65,66,67,68 Ethernet18/1 18 | ||
Ethernet56 73,74,75,76 Ethernet19/1 19 | ||
Ethernet60 77,78,79,80 Ethernet20/1 20 | ||
Ethernet64 93,94,95,96 Ethernet21/1 21 | ||
Ethernet68 89,90,91,92 Ethernet22/1 22 | ||
Ethernet72 97,98,99,100 Ethernet23/1 23 | ||
Ethernet76 101,102,103,104 Ethernet24/1 24 | ||
Ethernet80 109,110,111,112 Ethernet25/1 25 | ||
Ethernet84 105,106,107,108 Ethernet26/1 26 | ||
Ethernet88 121,122,123,124 Ethernet27/1 27 | ||
Ethernet92 125,126,127,128 Ethernet28/1 28 | ||
Ethernet96 61,62,63,64 Ethernet29 29 | ||
Ethernet100 57,58,59,60 Ethernet30 30 | ||
Ethernet104 81,82,83,84 Ethernet31 31 | ||
Ethernet108 85,86,87,88 Ethernet32 32 | ||
Ethernet112 117,118,119,120 Ethernet33 33 | ||
Ethernet116 113,114,115,116 Ethernet34 34 | ||
Ethernet120 1,2,3,4 Ethernet35 35 | ||
Ethernet124 5,6,7,8 Ethernet36 36 |
148 changes: 148 additions & 0 deletions
148
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/qos.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"TC_TO_PRIORITY_GROUP_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"MAP_PFC_PRIORITY_TO_QUEUE": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"TC_TO_QUEUE_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"DSCP_TO_TC_MAP": { | ||
"AZURE": { | ||
"0":"0", | ||
"1":"0", | ||
"2":"0", | ||
"3":"3", | ||
"4":"4", | ||
"5":"0", | ||
"6":"0", | ||
"7":"0", | ||
"8":"1", | ||
"9":"0", | ||
"10":"0", | ||
"11":"0", | ||
"12":"0", | ||
"13":"0", | ||
"14":"0", | ||
"15":"0", | ||
"16":"0", | ||
"17":"0", | ||
"18":"0", | ||
"19":"0", | ||
"20":"0", | ||
"21":"0", | ||
"22":"0", | ||
"23":"0", | ||
"24":"0", | ||
"25":"0", | ||
"26":"0", | ||
"27":"0", | ||
"28":"0", | ||
"29":"0", | ||
"30":"0", | ||
"31":"0", | ||
"32":"0", | ||
"33":"0", | ||
"34":"0", | ||
"35":"0", | ||
"36":"0", | ||
"37":"0", | ||
"38":"0", | ||
"39":"0", | ||
"40":"0", | ||
"41":"0", | ||
"42":"0", | ||
"43":"0", | ||
"44":"0", | ||
"45":"0", | ||
"46":"0", | ||
"47":"0", | ||
"48":"0", | ||
"49":"0", | ||
"50":"0", | ||
"51":"0", | ||
"52":"0", | ||
"53":"0", | ||
"54":"0", | ||
"55":"0", | ||
"56":"0", | ||
"57":"0", | ||
"58":"0", | ||
"59":"0", | ||
"60":"0", | ||
"61":"0", | ||
"62":"0", | ||
"63":"0" | ||
} | ||
}, | ||
"SCHEDULER": { | ||
"scheduler.0" : { | ||
"type":"DWRR", | ||
"weight": "25" | ||
}, | ||
"scheduler.1" : { | ||
"type":"DWRR", | ||
"weight": "30" | ||
}, | ||
"scheduler.2" : { | ||
"type":"DWRR", | ||
"weight": "20" | ||
} | ||
}, | ||
"PORT_QOS_MAP": { | ||
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": { | ||
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]", | ||
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]", | ||
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"pfc_enable": "3,4" | ||
} | ||
}, | ||
"WRED_PROFILE": { | ||
"AZURE_LOSSLESS" : { | ||
"wred_green_enable":"true", | ||
"wred_yellow_enable":"true", | ||
"wred_red_enable":"true", | ||
"ecn":"ecn_all", | ||
"red_max_threshold":"312000", | ||
"red_min_threshold":"104000", | ||
"yellow_max_threshold":"312000", | ||
"yellow_min_threshold":"104000", | ||
"green_max_threshold":"312000", | ||
"green_min_threshold":"104000" | ||
} | ||
}, | ||
"QUEUE": { | ||
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3-4" : { | ||
"scheduler" : "[SCHEDULER|scheduler.0]" | ||
}, | ||
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3" : { | ||
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]" | ||
}, | ||
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|4" : { | ||
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]" | ||
}, | ||
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0" : { | ||
"scheduler" : "[SCHEDULER|scheduler.1]" | ||
}, | ||
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|1" : { | ||
"scheduler" : "[SCHEDULER|scheduler.2]" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7050_qx32s/Arista-7050-Q31S4/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td2-a7050-q31s4-31x40G-4x10G.config.bcm |
Oops, something went wrong.