Skip to content

Commit 744d33d

Browse files
authored
[devices]: Centec x86 goldengate platforms and devices update (sonic-net#4248)
* Centec x86 goldengate update (#8)
1 parent 6df0e4b commit 744d33d

53 files changed

Lines changed: 3289 additions & 1953 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# name lanes alias speed
2-
Ethernet1 75 eth-0-1 1000
3-
Ethernet2 73 eth-0-2 1000
4-
Ethernet3 72 eth-0-3 1000
5-
Ethernet4 70 eth-0-4 1000
6-
Ethernet5 69 eth-0-5 1000
7-
Ethernet6 67 eth-0-6 1000
8-
Ethernet7 66 eth-0-7 1000
9-
Ethernet8 64 eth-0-8 1000
10-
Ethernet9 63 eth-0-9 1000
11-
Ethernet10 61 eth-0-10 1000
12-
Ethernet11 60 eth-0-11 1000
13-
Ethernet12 58 eth-0-12 1000
14-
Ethernet13 57 eth-0-13 10000
15-
Ethernet14 56 eth-0-14 10000
16-
Ethernet15 55 eth-0-15 10000
17-
Ethernet16 53 eth-0-16 10000
18-
Ethernet17 52 eth-0-17 10000
19-
Ethernet18 50 eth-0-18 10000
20-
Ethernet19 49 eth-0-19 10000
21-
Ethernet20 48 eth-0-20 10000
2+
Ethernet1 91 eth-0-1 10000
3+
Ethernet2 89 eth-0-2 10000
4+
Ethernet3 88 eth-0-3 10000
5+
Ethernet4 86 eth-0-4 10000
6+
Ethernet5 85 eth-0-5 10000
7+
Ethernet6 83 eth-0-6 10000
8+
Ethernet7 82 eth-0-7 10000
9+
Ethernet8 80 eth-0-8 10000
10+
Ethernet9 79 eth-0-9 10000
11+
Ethernet10 77 eth-0-10 10000
12+
Ethernet11 76 eth-0-11 10000
13+
Ethernet12 74 eth-0-12 10000
14+
Ethernet13 73 eth-0-13 10000
15+
Ethernet14 72 eth-0-14 10000
16+
Ethernet15 71 eth-0-15 10000
17+
Ethernet16 69 eth-0-16 10000
18+
Ethernet17 68 eth-0-17 10000
19+
Ethernet18 66 eth-0-18 10000
20+
Ethernet19 65 eth-0-19 10000
21+
Ethernet20 64 eth-0-20 10000
2222
Ethernet21 0 eth-0-21 10000
2323
Ethernet22 1 eth-0-22 10000
2424
Ethernet23 3 eth-0-23 10000
@@ -46,10 +46,10 @@ Ethernet44 30 eth-0-44 10000
4646
Ethernet45 31 eth-0-45 10000
4747
Ethernet46 33 eth-0-46 10000
4848
Ethernet47 34 eth-0-47 10000
49-
Ethernet48 36 eth-0-48 10000
50-
Ethernet49 42,41,43,40 eth-0-49 40000
51-
Ethernet50 45,46,44,47 eth-0-50 40000
52-
Ethernet51 94,93,95,92 eth-0-51 100000
53-
Ethernet52 89,90,88,91 eth-0-52 100000
54-
Ethernet53 85,86,84,87 eth-0-53 100000
55-
Ethernet54 81,82,80,83 eth-0-54 100000
49+
Ethernet48 48 eth-0-48 10000
50+
Ethernet49 38,37,39,36 eth-0-49 100000
51+
Ethernet50 53,54,52,55 eth-0-50 100000
52+
Ethernet51 118,117,119,116 eth-0-51 100000
53+
Ethernet52 101,102,100,103 eth-0-52 100000
54+
Ethernet53 113,114,112,115 eth-0-53 40000
55+
Ethernet54 97,98,96,99 eth-0-54 40000
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
E582-48x2q4z t1
1+
E582-48x2q4z l2
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# name lanes alias speed
2-
Ethernet1 4 eth-0-1 1000
3-
Ethernet2 5 eth-0-2 1000
4-
Ethernet3 6 eth-0-3 1000
5-
Ethernet4 8 eth-0-4 1000
6-
Ethernet5 9 eth-0-5 1000
7-
Ethernet6 10 eth-0-6 1000
8-
Ethernet7 12 eth-0-7 1000
9-
Ethernet8 13 eth-0-8 1000
10-
Ethernet9 14 eth-0-9 1000
11-
Ethernet10 16 eth-0-10 1000
12-
Ethernet11 17 eth-0-11 1000
13-
Ethernet12 18 eth-0-12 1000
2+
Ethernet1 4 eth-0-1 10000
3+
Ethernet2 5 eth-0-2 10000
4+
Ethernet3 6 eth-0-3 10000
5+
Ethernet4 8 eth-0-4 10000
6+
Ethernet5 9 eth-0-5 10000
7+
Ethernet6 10 eth-0-6 10000
8+
Ethernet7 12 eth-0-7 10000
9+
Ethernet8 13 eth-0-8 10000
10+
Ethernet9 14 eth-0-9 10000
11+
Ethernet10 16 eth-0-10 10000
12+
Ethernet11 17 eth-0-11 10000
13+
Ethernet12 18 eth-0-12 10000
1414
Ethernet13 20 eth-0-13 10000
1515
Ethernet14 21 eth-0-14 10000
1616
Ethernet15 22 eth-0-15 10000
@@ -23,33 +23,33 @@ Ethernet21 31 eth-0-21 10000
2323
Ethernet22 32 eth-0-22 10000
2424
Ethernet23 34 eth-0-23 10000
2525
Ethernet24 35 eth-0-24 10000
26-
Ethernet25 36 eth-0-25 10000
27-
Ethernet26 37 eth-0-26 10000
28-
Ethernet27 39 eth-0-27 10000
29-
Ethernet28 40 eth-0-28 10000
30-
Ethernet29 41 eth-0-29 10000
31-
Ethernet30 43 eth-0-30 10000
32-
Ethernet31 47 eth-0-31 10000
33-
Ethernet32 46 eth-0-32 10000
34-
Ethernet33 45 eth-0-33 10000
35-
Ethernet34 44 eth-0-34 10000
36-
Ethernet35 92 eth-0-35 10000
37-
Ethernet36 93 eth-0-36 10000
38-
Ethernet37 94 eth-0-37 10000
39-
Ethernet38 95 eth-0-38 10000
40-
Ethernet39 90 eth-0-39 10000
41-
Ethernet40 89 eth-0-40 10000
42-
Ethernet41 88 eth-0-41 10000
43-
Ethernet42 87 eth-0-42 10000
44-
Ethernet43 86 eth-0-43 10000
45-
Ethernet44 85 eth-0-44 10000
46-
Ethernet45 84 eth-0-45 10000
47-
Ethernet46 82 eth-0-46 10000
48-
Ethernet47 81 eth-0-47 10000
49-
Ethernet48 80 eth-0-48 10000
50-
Ethernet49 77,78,76,79 eth-0-49 40000
51-
Ethernet50 73,74,72,75 eth-0-50 40000
52-
Ethernet51 70,71,69,68 eth-0-51 40000
53-
Ethernet52 61,63,60,62 eth-0-52 40000
54-
Ethernet53 59,57,58,56 eth-0-53 40000
55-
Ethernet54 53,55,54,52 eth-0-54 40000
26+
Ethernet25 48 eth-0-25 10000
27+
Ethernet26 49 eth-0-26 10000
28+
Ethernet27 51 eth-0-27 10000
29+
Ethernet28 36 eth-0-28 10000
30+
Ethernet29 37 eth-0-29 10000
31+
Ethernet30 39 eth-0-30 10000
32+
Ethernet31 55 eth-0-31 10000
33+
Ethernet32 54 eth-0-32 10000
34+
Ethernet33 53 eth-0-33 10000
35+
Ethernet34 52 eth-0-34 10000
36+
Ethernet35 116 eth-0-35 10000
37+
Ethernet36 117 eth-0-36 10000
38+
Ethernet37 118 eth-0-37 10000
39+
Ethernet38 119 eth-0-38 10000
40+
Ethernet39 102 eth-0-39 10000
41+
Ethernet40 101 eth-0-40 10000
42+
Ethernet41 100 eth-0-41 10000
43+
Ethernet42 115 eth-0-42 10000
44+
Ethernet43 114 eth-0-43 10000
45+
Ethernet44 113 eth-0-44 10000
46+
Ethernet45 112 eth-0-45 10000
47+
Ethernet46 98 eth-0-46 10000
48+
Ethernet47 97 eth-0-47 10000
49+
Ethernet48 96 eth-0-48 10000
50+
Ethernet49 93,94,92,95 eth-0-49 40000
51+
Ethernet50 89,90,88,91 eth-0-50 40000
52+
Ethernet51 86,87,85,84 eth-0-51 40000
53+
Ethernet52 77,79,76,78 eth-0-52 40000
54+
Ethernet53 75,73,74,72 eth-0-53 40000
55+
Ethernet54 69,71,70,68 eth-0-54 40000
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
E582-48x6q t1
1+
E582-48x6q l2
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{# Default values which will be used if no actual configura available #}
2+
{% set default_cable = '40m' %}
3+
{% set default_ports_num = 54 -%}
4+
5+
{# Port configuration to cable length look-up table #}
6+
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
7+
{# Roles described in the minigraph #}
8+
{% set ports2cable = {
9+
'torrouter_server' : '5m',
10+
'leafrouter_torrouter' : '40m',
11+
'spinerouter_leafrouter' : '300m'
12+
}
13+
%}
14+
15+
{%- macro cable_length(port_name) -%}
16+
{%- set cable_len = [] -%}
17+
{%- for local_port in DEVICE_NEIGHBOR -%}
18+
{%- if local_port == port_name -%}
19+
{%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
20+
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%}
21+
{%- set neighbor_role = neighbor.type -%}
22+
{%- set roles1 = switch_role + '_' + neighbor_role %}
23+
{%- set roles2 = neighbor_role + '_' + switch_role -%}
24+
{%- set roles1 = roles1 | lower -%}
25+
{%- set roles2 = roles2 | lower -%}
26+
{%- if roles1 in ports2cable -%}
27+
{%- if cable_len.append(ports2cable[roles1]) -%}{%- endif -%}
28+
{%- elif roles2 in ports2cable -%}
29+
{%- if cable_len.append(ports2cable[roles2]) -%}{%- endif -%}
30+
{%- endif -%}
31+
{%- endif -%}
32+
{%- endif -%}
33+
{%- endfor -%}
34+
{%- if cable_len -%}
35+
{{ cable_len.0 }}
36+
{%- else -%}
37+
{{ default_cable }}
38+
{%- endif -%}
39+
{% endmacro %}
40+
41+
{%- if DEVICE_METADATA is defined %}
42+
{%- set switch_role = DEVICE_METADATA['localhost']['type'] %}
43+
{%- endif -%}
44+
45+
{# Generate list of ports if not defined #}
46+
{% if PORT is not defined %}
47+
{% set PORT = [] %}
48+
{% for port_idx in range(1,default_ports_num+1) %}
49+
{% if PORT.append("Ethernet%d" % (port_idx)) %}{% endif %}
50+
{% endfor %}
51+
{% endif -%}
52+
53+
{% set port_names_list = [] %}
54+
{% for port in PORT %}
55+
{%- if port_names_list.append(port) %}{% endif %}
56+
{% endfor %}
57+
{% set port_names = port_names_list | join(',') -%}
58+
59+
{
60+
"CABLE_LENGTH": {
61+
"AZURE": {
62+
{% for port in PORT %}
63+
{% set cable = cable_length(port) -%}
64+
"{{ port }}": "{{ cable }}"{%- if not loop.last -%},{% endif %}
65+
66+
{% endfor %}
67+
}
68+
}
69+
}
70+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold
3+
1000 5m 34816 18432 16384 0
4+
10000 5m 34816 18432 16384 0
5+
25000 5m 34816 18432 16384 0
6+
40000 5m 34816 18432 16384 0
7+
50000 5m 34816 18432 16384 0
8+
100000 5m 36864 18432 18432 0
9+
1000 40m 36864 18432 18432 0
10+
10000 40m 36864 18432 18432 0
11+
25000 40m 39936 18432 21504 0
12+
40000 40m 41984 18432 23552 0
13+
50000 40m 41984 18432 23552 0
14+
100000 40m 54272 18432 35840 0
15+
1000 300m 49152 18432 30720 0
16+
10000 300m 49152 18432 30720 0
17+
25000 300m 71680 18432 53248 0
18+
40000 300m 94208 18432 75776 0
19+
50000 300m 94208 18432 75776 0
20+
100000 300m 184320 18432 165888 0
21+
Lines changed: 55 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,55 @@
1-
# name lanes
2-
Ethernet0 1
3-
Ethernet4 2
4-
Ethernet8 3
5-
Ethernet12 4
6-
Ethernet16 5
7-
Ethernet20 6
8-
Ethernet24 7
9-
Ethernet28 8
10-
Ethernet32 9
11-
Ethernet36 10
12-
Ethernet40 11
13-
Ethernet44 12
14-
Ethernet48 13
15-
Ethernet52 14
16-
Ethernet56 15
17-
Ethernet60 16
18-
Ethernet64 17
19-
Ethernet68 18
20-
Ethernet72 19
21-
Ethernet76 20
22-
Ethernet80 21
23-
Ethernet84 22
24-
Ethernet88 23
25-
Ethernet92 24
26-
Ethernet96 25
27-
Ethernet100 26
28-
Ethernet104 27
29-
Ethernet108 28
30-
Ethernet112 29
31-
Ethernet116 30
32-
Ethernet120 31
33-
Ethernet124 32
1+
# name lanes alias speed
2+
Ethernet1 91 eth-0-1 10000
3+
Ethernet2 89 eth-0-2 10000
4+
Ethernet3 88 eth-0-3 10000
5+
Ethernet4 86 eth-0-4 10000
6+
Ethernet5 85 eth-0-5 10000
7+
Ethernet6 83 eth-0-6 10000
8+
Ethernet7 82 eth-0-7 10000
9+
Ethernet8 80 eth-0-8 10000
10+
Ethernet9 79 eth-0-9 10000
11+
Ethernet10 77 eth-0-10 10000
12+
Ethernet11 76 eth-0-11 10000
13+
Ethernet12 74 eth-0-12 10000
14+
Ethernet13 73 eth-0-13 10000
15+
Ethernet14 72 eth-0-14 10000
16+
Ethernet15 71 eth-0-15 10000
17+
Ethernet16 69 eth-0-16 10000
18+
Ethernet17 68 eth-0-17 10000
19+
Ethernet18 66 eth-0-18 10000
20+
Ethernet19 65 eth-0-19 10000
21+
Ethernet20 64 eth-0-20 10000
22+
Ethernet21 0 eth-0-21 10000
23+
Ethernet22 1 eth-0-22 10000
24+
Ethernet23 3 eth-0-23 10000
25+
Ethernet24 2 eth-0-24 10000
26+
Ethernet25 4 eth-0-25 10000
27+
Ethernet26 5 eth-0-26 10000
28+
Ethernet27 6 eth-0-27 10000
29+
Ethernet28 7 eth-0-28 10000
30+
Ethernet29 8 eth-0-29 10000
31+
Ethernet30 9 eth-0-30 10000
32+
Ethernet31 10 eth-0-31 10000
33+
Ethernet32 12 eth-0-32 10000
34+
Ethernet33 13 eth-0-33 10000
35+
Ethernet34 15 eth-0-34 10000
36+
Ethernet35 16 eth-0-35 10000
37+
Ethernet36 18 eth-0-36 10000
38+
Ethernet37 19 eth-0-37 10000
39+
Ethernet38 21 eth-0-38 10000
40+
Ethernet39 22 eth-0-39 10000
41+
Ethernet40 24 eth-0-40 10000
42+
Ethernet41 25 eth-0-41 10000
43+
Ethernet42 27 eth-0-42 10000
44+
Ethernet43 28 eth-0-43 10000
45+
Ethernet44 30 eth-0-44 10000
46+
Ethernet45 31 eth-0-45 10000
47+
Ethernet46 33 eth-0-46 10000
48+
Ethernet47 34 eth-0-47 10000
49+
Ethernet48 48 eth-0-48 10000
50+
Ethernet49 38,37,39,36 eth-0-49 100000
51+
Ethernet50 53,54,52,55 eth-0-50 100000
52+
Ethernet51 118,117,119,116 eth-0-51 100000
53+
Ethernet52 101,102,100,103 eth-0-52 100000
54+
Ethernet53 113,114,112,115 eth-0-53 40000
55+
Ethernet54 97,98,96,99 eth-0-54 40000

0 commit comments

Comments
 (0)