-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
3,426 additions
and
1,953 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
E582-48x2q4z t1 | ||
E582-48x2q4z l2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
E582-48x6q t1 | ||
E582-48x6q l2 |
70 changes: 70 additions & 0 deletions
70
device/centec/x86_64-ew_es6220_x48q2h4-r0/ES6428A-X48Q2H4/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,70 @@ | ||
{# Default values which will be used if no actual configura available #} | ||
{% set default_cable = '40m' %} | ||
{% set default_ports_num = 54 -%} | ||
|
||
{# Port configuration to cable length look-up table #} | ||
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #} | ||
{# Roles described in the minigraph #} | ||
{% set ports2cable = { | ||
'torrouter_server' : '5m', | ||
'leafrouter_torrouter' : '40m', | ||
'spinerouter_leafrouter' : '300m' | ||
} | ||
%} | ||
|
||
{%- macro cable_length(port_name) -%} | ||
{%- set cable_len = [] -%} | ||
{%- for local_port in DEVICE_NEIGHBOR -%} | ||
{%- if local_port == port_name -%} | ||
{%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%} | ||
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] -%} | ||
{%- set neighbor_role = neighbor.type -%} | ||
{%- set roles1 = switch_role + '_' + neighbor_role %} | ||
{%- set roles2 = neighbor_role + '_' + switch_role -%} | ||
{%- set roles1 = roles1 | lower -%} | ||
{%- set roles2 = roles2 | lower -%} | ||
{%- if roles1 in ports2cable -%} | ||
{%- if cable_len.append(ports2cable[roles1]) -%}{%- endif -%} | ||
{%- elif roles2 in ports2cable -%} | ||
{%- if cable_len.append(ports2cable[roles2]) -%}{%- endif -%} | ||
{%- endif -%} | ||
{%- endif -%} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
{%- if cable_len -%} | ||
{{ cable_len.0 }} | ||
{%- else -%} | ||
{{ default_cable }} | ||
{%- endif -%} | ||
{% endmacro %} | ||
|
||
{%- if DEVICE_METADATA is defined %} | ||
{%- set switch_role = DEVICE_METADATA['localhost']['type'] %} | ||
{%- endif -%} | ||
|
||
{# Generate list of ports if not defined #} | ||
{% if PORT is not defined %} | ||
{% set PORT = [] %} | ||
{% for port_idx in range(1,default_ports_num+1) %} | ||
{% if PORT.append("Ethernet%d" % (port_idx)) %}{% endif %} | ||
{% endfor %} | ||
{% endif -%} | ||
|
||
{% set port_names_list = [] %} | ||
{% for port in PORT %} | ||
{%- if port_names_list.append(port) %}{% endif %} | ||
{% endfor %} | ||
{% set port_names = port_names_list | join(',') -%} | ||
|
||
{ | ||
"CABLE_LENGTH": { | ||
"AZURE": { | ||
{% for port in PORT %} | ||
{% set cable = cable_length(port) -%} | ||
"{{ port }}": "{{ cable }}"{%- if not loop.last -%},{% endif %} | ||
|
||
{% endfor %} | ||
} | ||
} | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
device/centec/x86_64-ew_es6220_x48q2h4-r0/ES6428A-X48Q2H4/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,21 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold | ||
1000 5m 34816 18432 16384 0 | ||
10000 5m 34816 18432 16384 0 | ||
25000 5m 34816 18432 16384 0 | ||
40000 5m 34816 18432 16384 0 | ||
50000 5m 34816 18432 16384 0 | ||
100000 5m 36864 18432 18432 0 | ||
1000 40m 36864 18432 18432 0 | ||
10000 40m 36864 18432 18432 0 | ||
25000 40m 39936 18432 21504 0 | ||
40000 40m 41984 18432 23552 0 | ||
50000 40m 41984 18432 23552 0 | ||
100000 40m 54272 18432 35840 0 | ||
1000 300m 49152 18432 30720 0 | ||
10000 300m 49152 18432 30720 0 | ||
25000 300m 71680 18432 53248 0 | ||
40000 300m 94208 18432 75776 0 | ||
50000 300m 94208 18432 75776 0 | ||
100000 300m 184320 18432 165888 0 | ||
|
88 changes: 55 additions & 33 deletions
88
device/centec/x86_64-ew_es6220_x48q2h4-r0/ES6428A-X48Q2H4/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 |
---|---|---|
@@ -1,33 +1,55 @@ | ||
# name lanes | ||
Ethernet0 1 | ||
Ethernet4 2 | ||
Ethernet8 3 | ||
Ethernet12 4 | ||
Ethernet16 5 | ||
Ethernet20 6 | ||
Ethernet24 7 | ||
Ethernet28 8 | ||
Ethernet32 9 | ||
Ethernet36 10 | ||
Ethernet40 11 | ||
Ethernet44 12 | ||
Ethernet48 13 | ||
Ethernet52 14 | ||
Ethernet56 15 | ||
Ethernet60 16 | ||
Ethernet64 17 | ||
Ethernet68 18 | ||
Ethernet72 19 | ||
Ethernet76 20 | ||
Ethernet80 21 | ||
Ethernet84 22 | ||
Ethernet88 23 | ||
Ethernet92 24 | ||
Ethernet96 25 | ||
Ethernet100 26 | ||
Ethernet104 27 | ||
Ethernet108 28 | ||
Ethernet112 29 | ||
Ethernet116 30 | ||
Ethernet120 31 | ||
Ethernet124 32 | ||
# name lanes alias speed | ||
Ethernet1 91 eth-0-1 10000 | ||
Ethernet2 89 eth-0-2 10000 | ||
Ethernet3 88 eth-0-3 10000 | ||
Ethernet4 86 eth-0-4 10000 | ||
Ethernet5 85 eth-0-5 10000 | ||
Ethernet6 83 eth-0-6 10000 | ||
Ethernet7 82 eth-0-7 10000 | ||
Ethernet8 80 eth-0-8 10000 | ||
Ethernet9 79 eth-0-9 10000 | ||
Ethernet10 77 eth-0-10 10000 | ||
Ethernet11 76 eth-0-11 10000 | ||
Ethernet12 74 eth-0-12 10000 | ||
Ethernet13 73 eth-0-13 10000 | ||
Ethernet14 72 eth-0-14 10000 | ||
Ethernet15 71 eth-0-15 10000 | ||
Ethernet16 69 eth-0-16 10000 | ||
Ethernet17 68 eth-0-17 10000 | ||
Ethernet18 66 eth-0-18 10000 | ||
Ethernet19 65 eth-0-19 10000 | ||
Ethernet20 64 eth-0-20 10000 | ||
Ethernet21 0 eth-0-21 10000 | ||
Ethernet22 1 eth-0-22 10000 | ||
Ethernet23 3 eth-0-23 10000 | ||
Ethernet24 2 eth-0-24 10000 | ||
Ethernet25 4 eth-0-25 10000 | ||
Ethernet26 5 eth-0-26 10000 | ||
Ethernet27 6 eth-0-27 10000 | ||
Ethernet28 7 eth-0-28 10000 | ||
Ethernet29 8 eth-0-29 10000 | ||
Ethernet30 9 eth-0-30 10000 | ||
Ethernet31 10 eth-0-31 10000 | ||
Ethernet32 12 eth-0-32 10000 | ||
Ethernet33 13 eth-0-33 10000 | ||
Ethernet34 15 eth-0-34 10000 | ||
Ethernet35 16 eth-0-35 10000 | ||
Ethernet36 18 eth-0-36 10000 | ||
Ethernet37 19 eth-0-37 10000 | ||
Ethernet38 21 eth-0-38 10000 | ||
Ethernet39 22 eth-0-39 10000 | ||
Ethernet40 24 eth-0-40 10000 | ||
Ethernet41 25 eth-0-41 10000 | ||
Ethernet42 27 eth-0-42 10000 | ||
Ethernet43 28 eth-0-43 10000 | ||
Ethernet44 30 eth-0-44 10000 | ||
Ethernet45 31 eth-0-45 10000 | ||
Ethernet46 33 eth-0-46 10000 | ||
Ethernet47 34 eth-0-47 10000 | ||
Ethernet48 48 eth-0-48 10000 | ||
Ethernet49 38,37,39,36 eth-0-49 100000 | ||
Ethernet50 53,54,52,55 eth-0-50 100000 | ||
Ethernet51 118,117,119,116 eth-0-51 100000 | ||
Ethernet52 101,102,100,103 eth-0-52 100000 | ||
Ethernet53 113,114,112,115 eth-0-53 40000 | ||
Ethernet54 97,98,96,99 eth-0-54 40000 |
Oops, something went wrong.