forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from Azure/201811
201811
- Loading branch information
Showing
103 changed files
with
3,392 additions
and
268 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
14 changes: 7 additions & 7 deletions
14
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-D108C8/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 |
---|---|---|
@@ -1,8 +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 56160 -3 2496 | ||
100000 40m 1248 1248 96928 -3 2496 | ||
50000 300m 1248 1248 56160 -3 2496 | ||
100000 300m 1248 1248 96928 -3 2496 | ||
# 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 |
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
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
20 changes: 10 additions & 10 deletions
20
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-Q64/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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
40000 5m 1248 1248 56160 -3 2496 | ||
50000 5m 1248 1248 56160 -3 2496 | ||
100000 5m 1248 1248 96928 -3 2496 | ||
40000 40m 1248 1248 56160 -3 2496 | ||
50000 40m 1248 1248 56160 -3 2496 | ||
100000 40m 1248 1248 96928 -3 2496 | ||
40000 300m 1248 1248 56160 -3 2496 | ||
50000 300m 1248 1248 56160 -3 2496 | ||
100000 300m 1248 1248 96928 -3 2496 | ||
# speed cable size xon xoff threshold xon_offset | ||
40000 5m 1248 1248 56160 -3 2496 | ||
50000 5m 1248 1248 56160 -3 2496 | ||
100000 5m 1248 1248 96928 -3 2496 | ||
40000 40m 1248 1248 71552 -3 2496 | ||
50000 40m 1248 1248 96096 -3 2496 | ||
100000 40m 1248 1248 177632 -3 2496 | ||
40000 300m 1248 1248 108160 -3 2496 | ||
50000 300m 1248 1248 141856 -3 2496 | ||
100000 300m 1248 1248 268736 -3 2496 |
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
2 changes: 2 additions & 0 deletions
2
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/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,2 @@ | ||
{%- set default_topo = 't1' %} | ||
{%- include 'buffers_config.j2' %} |
54 changes: 54 additions & 0 deletions
54
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/buffers_defaults_t0.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,54 @@ | ||
|
||
{%- set default_cable = '5m' %} | ||
|
||
{%- set ports2cable = { | ||
'torrouter_server' : '300m', | ||
'leafrouter_torrouter' : '300m', | ||
'spinerouter_leafrouter' : '300m' | ||
} | ||
-%} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,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": "10875072", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "4194112" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "9243812", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "15982720", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"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":"1518", | ||
"static_th":"15982720" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1518", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} |
54 changes: 54 additions & 0 deletions
54
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/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,54 @@ | ||
|
||
{%- set default_cable = '40m' %} | ||
|
||
{%- set ports2cable = { | ||
'torrouter_server' : '300m', | ||
'leafrouter_torrouter' : '300m', | ||
'spinerouter_leafrouter' : '300m' | ||
} | ||
-%} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,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": "10875072", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "4194112" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "9243812", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "15982720", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"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":"1518", | ||
"static_th":"15982720" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1518", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} |
17 changes: 17 additions & 0 deletions
17
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/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,17 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
10000 5m 1248 2288 35776 -3 2288 | ||
25000 5m 1248 2288 53248 -3 2288 | ||
40000 5m 1248 2288 66560 -3 2288 | ||
50000 5m 1248 2288 90272 -3 2288 | ||
100000 5m 1248 2288 165568 -3 2288 | ||
10000 40m 1248 2288 37024 -3 2288 | ||
25000 40m 1248 2288 53248 -3 2288 | ||
40000 40m 1248 2288 71552 -3 2288 | ||
50000 40m 1248 2288 96096 -3 2288 | ||
100000 40m 1248 2288 177632 -3 2288 | ||
10000 300m 1248 2288 46176 -3 2288 | ||
25000 300m 1248 2288 79040 -3 2288 | ||
40000 300m 1248 2288 108160 -3 2288 | ||
50000 300m 1248 2288 141856 -3 2288 | ||
100000 300m 1248 2288 268736 -3 2288 |
33 changes: 33 additions & 0 deletions
33
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/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,33 @@ | ||
# name lanes alias speed index | ||
Ethernet0 65,66,67,68 etp1 100000 1 | ||
Ethernet4 69,70,71,72 etp2 100000 2 | ||
Ethernet8 73,74,75,76 etp3 100000 3 | ||
Ethernet12 77,78,79,80 etp4 100000 4 | ||
Ethernet16 33,34,35,36 etp5 100000 5 | ||
Ethernet20 37,38,39,40 etp6 100000 6 | ||
Ethernet24 41,42,43,44 etp7 100000 7 | ||
Ethernet28 45,46,47,48 etp8 100000 8 | ||
Ethernet32 49,50,51,52 etp9 100000 9 | ||
Ethernet36 53,54,55,56 etp10 100000 10 | ||
Ethernet40 57,58,59,60 etp11 100000 11 | ||
Ethernet44 61,62,63,64 etp12 100000 12 | ||
Ethernet48 81,82,83,84 etp13 100000 13 | ||
Ethernet52 85,86,87,88 etp14 100000 14 | ||
Ethernet56 89,90,91,92 etp15 100000 15 | ||
Ethernet60 93,94,95,96 etp16 100000 16 | ||
Ethernet64 97,98,99,100 etp17 100000 17 | ||
Ethernet68 101,102,103,104 etp18 100000 18 | ||
Ethernet72 105,106,107,108 etp19 100000 19 | ||
Ethernet76 109,110,111,112 etp20 100000 20 | ||
Ethernet80 1,2,3,4 etp21 100000 21 | ||
Ethernet84 5,6,7,8 etp22 100000 22 | ||
Ethernet88 9,10,11,12 etp23 100000 23 | ||
Ethernet92 13,14,15,16 etp24 100000 24 | ||
Ethernet96 17,18,19,20 etp25 100000 25 | ||
Ethernet100 21,22,23,24 etp26 100000 26 | ||
Ethernet104 25,26,27,28 etp27 100000 27 | ||
Ethernet108 29,30,31,32 etp28 100000 28 | ||
Ethernet112 113,114,115,116 etp29 100000 29 | ||
Ethernet116 117,118,119,120 etp30 100000 30 | ||
Ethernet120 121,122,123,124 etp31 100000 31 | ||
Ethernet124 125,126,127,128 etp32 100000 32 |
1 change: 1 addition & 0 deletions
1
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/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 @@ | ||
{%- include 'qos_config.j2' %} |
13 changes: 13 additions & 0 deletions
13
device/celestica/x86_64-cel_seastone-r0/Celestica-DX010-C32/sai.profile.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,13 @@ | ||
{# Get sai.profile based on switch_role #} | ||
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined -%} | ||
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} | ||
{%- if switch_role.lower() == 'torrouter' %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t0.config.bcm' -%} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{# Write the contents of sai_ profile_filename to sai.profile file #} | ||
{{ sai_profile_contents }} |
Oops, something went wrong.