Skip to content

Commit d1fe216

Browse files
bbinxieyxieca
authored andcommitted
Add new device data for dx010 (Celestica-DX010-C32,Celestica-DX010-D48C8) (#3492)
* add config.bcm for hlx * modify config.bcm path for hlx * Delete hx4-cel-hbtn-48x1G+4x10G.config.bcm * add config.bcm and path * update led for cxp * Add new device data for dx010
1 parent 9d2d617 commit d1fe216

16 files changed

+2041
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{%- set default_topo = 't1' %}
2+
{%- include 'buffers_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
{%- set default_cable = '5m' %}
3+
4+
{%- set ports2cable = {
5+
'torrouter_server' : '300m',
6+
'leafrouter_torrouter' : '300m',
7+
'spinerouter_leafrouter' : '300m'
8+
}
9+
-%}
10+
11+
{%- macro generate_port_lists(PORT_ALL) %}
12+
{# Generate list of ports #}
13+
{%- for port_idx in range(0,32) %}
14+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
15+
{%- endfor %}
16+
{%- endmacro %}
17+
18+
{%- macro generate_buffer_pool_and_profiles() %}
19+
"BUFFER_POOL": {
20+
"ingress_lossless_pool": {
21+
"size": "10875072",
22+
"type": "ingress",
23+
"mode": "dynamic",
24+
"xoff": "4194112"
25+
},
26+
"egress_lossy_pool": {
27+
"size": "9243812",
28+
"type": "egress",
29+
"mode": "dynamic"
30+
},
31+
"egress_lossless_pool": {
32+
"size": "15982720",
33+
"type": "egress",
34+
"mode": "static"
35+
}
36+
},
37+
"BUFFER_PROFILE": {
38+
"ingress_lossy_profile": {
39+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
40+
"size":"0",
41+
"dynamic_th":"3"
42+
},
43+
"egress_lossless_profile": {
44+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
45+
"size":"1518",
46+
"static_th":"3995680"
47+
},
48+
"egress_lossy_profile": {
49+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
50+
"size":"1518",
51+
"dynamic_th":"3"
52+
}
53+
},
54+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
{%- set default_cable = '40m' %}
3+
4+
{%- set ports2cable = {
5+
'torrouter_server' : '300m',
6+
'leafrouter_torrouter' : '300m',
7+
'spinerouter_leafrouter' : '300m'
8+
}
9+
-%}
10+
11+
{%- macro generate_port_lists(PORT_ALL) %}
12+
{# Generate list of ports #}
13+
{%- for port_idx in range(0,32) %}
14+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
15+
{%- endfor %}
16+
{%- endmacro %}
17+
18+
{%- macro generate_buffer_pool_and_profiles() %}
19+
"BUFFER_POOL": {
20+
"ingress_lossless_pool": {
21+
"size": "10875072",
22+
"type": "ingress",
23+
"mode": "dynamic",
24+
"xoff": "4194112"
25+
},
26+
"egress_lossy_pool": {
27+
"size": "9243812",
28+
"type": "egress",
29+
"mode": "dynamic"
30+
},
31+
"egress_lossless_pool": {
32+
"size": "15982720",
33+
"type": "egress",
34+
"mode": "static"
35+
}
36+
},
37+
"BUFFER_PROFILE": {
38+
"ingress_lossy_profile": {
39+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
40+
"size":"0",
41+
"dynamic_th":"3"
42+
},
43+
"egress_lossless_profile": {
44+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
45+
"size":"1518",
46+
"static_th":"3995680"
47+
},
48+
"egress_lossy_profile": {
49+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
50+
"size":"1518",
51+
"dynamic_th":"3"
52+
}
53+
},
54+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
10000 5m 1248 2288 35776 -3 2288
4+
25000 5m 1248 2288 53248 -3 2288
5+
40000 5m 1248 2288 66560 -3 2288
6+
50000 5m 1248 2288 90272 -3 2288
7+
100000 5m 1248 2288 165568 -3 2288
8+
10000 40m 1248 2288 37024 -3 2288
9+
25000 40m 1248 2288 53248 -3 2288
10+
40000 40m 1248 2288 71552 -3 2288
11+
50000 40m 1248 2288 96096 -3 2288
12+
100000 40m 1248 2288 177632 -3 2288
13+
10000 300m 1248 2288 46176 -3 2288
14+
25000 300m 1248 2288 79040 -3 2288
15+
40000 300m 1248 2288 108160 -3 2288
16+
50000 300m 1248 2288 141856 -3 2288
17+
100000 300m 1248 2288 268736 -3 2288
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# name lanes alias speed index
2+
Ethernet0 65,66,67,68 etp1 100000 1
3+
Ethernet4 69,70,71,72 etp2 100000 2
4+
Ethernet8 73,74,75,76 etp3 100000 3
5+
Ethernet12 77,78,79,80 etp4 100000 4
6+
Ethernet16 33,34,35,36 etp5 100000 5
7+
Ethernet20 37,38,39,40 etp6 100000 6
8+
Ethernet24 41,42,43,44 etp7 100000 7
9+
Ethernet28 45,46,47,48 etp8 100000 8
10+
Ethernet32 49,50,51,52 etp9 100000 9
11+
Ethernet36 53,54,55,56 etp10 100000 10
12+
Ethernet40 57,58,59,60 etp11 100000 11
13+
Ethernet44 61,62,63,64 etp12 100000 12
14+
Ethernet48 81,82,83,84 etp13 100000 13
15+
Ethernet52 85,86,87,88 etp14 100000 14
16+
Ethernet56 89,90,91,92 etp15 100000 15
17+
Ethernet60 93,94,95,96 etp16 100000 16
18+
Ethernet64 97,98,99,100 etp17 100000 17
19+
Ethernet68 101,102,103,104 etp18 100000 18
20+
Ethernet72 105,106,107,108 etp19 100000 19
21+
Ethernet76 109,110,111,112 etp20 100000 20
22+
Ethernet80 1,2,3,4 etp21 100000 21
23+
Ethernet84 5,6,7,8 etp22 100000 22
24+
Ethernet88 9,10,11,12 etp23 100000 23
25+
Ethernet92 13,14,15,16 etp24 100000 24
26+
Ethernet96 17,18,19,20 etp25 100000 25
27+
Ethernet100 21,22,23,24 etp26 100000 26
28+
Ethernet104 25,26,27,28 etp27 100000 27
29+
Ethernet108 29,30,31,32 etp28 100000 28
30+
Ethernet112 113,114,115,116 etp29 100000 29
31+
Ethernet116 117,118,119,120 etp30 100000 30
32+
Ethernet120 121,122,123,124 etp31 100000 31
33+
Ethernet124 125,126,127,128 etp32 100000 32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{%- include 'qos_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{# Get sai.profile based on switch_role #}
2+
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined -%}
3+
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
4+
{%- if switch_role.lower() == 'torrouter' %}
5+
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t0.config.bcm' -%}
6+
{%- else %}
7+
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t1.config.bcm' -%}
8+
{%- endif %}
9+
{%- else %}
10+
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t1.config.bcm' -%}
11+
{%- endif %}
12+
{# Write the contents of sai_ profile_filename to sai.profile file #}
13+
{{ sai_profile_contents }}

0 commit comments

Comments
 (0)