Skip to content

Commit

Permalink
Update PG headroom settings ports based on port speed/cable length (#…
Browse files Browse the repository at this point in the history
…15287)

Why I did it
Update cable length for uplink/downlink ports for chassis and and update PG/pool headroom size accordingly.

Work item tracking
17880812

How I did it
Updated cable length as well as buffer config in HWSKU files.
  • Loading branch information
vmittal-msft authored Jun 2, 2023
1 parent feb8671 commit 723c508
Show file tree
Hide file tree
Showing 41 changed files with 43,037 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,192,4) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11678515"
"xoff": "20761804"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,192,4) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11678515"
"xoff": "1056256819"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,144,8) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "396096307"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(144,288,8) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "396096307"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,144,4) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "396096307"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,144,4) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "396096307"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,144,8) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "1582033305"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(144,288,8) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "1582033305"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,36) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "24979046"
"xoff": "7785676"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,36) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "24979046"
"xoff": "7785676"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,36) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "1582033305"
}
},
"BUFFER_PROFILE": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{%- set default_cable = '300m' %}

{%- set ports2cable = {
'torrouter_server' : '300m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '2000m',
'regionalhub_spinerouter': '120000m',
'aznghub_spinerouter' : '120000m'
}
-%}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,36) %}
Expand All @@ -13,7 +22,7 @@
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
"xoff": "1582033305"
}
},
"BUFFER_PROFILE": {
Expand Down
4 changes: 3 additions & 1 deletion files/build_templates/buffers_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def
'internal' : '5m',
'torrouter_server' : '5m',
'leafrouter_torrouter' : '40m',
'spinerouter_leafrouter' : '300m'
'spinerouter_leafrouter' : '300m',
'regionalhub_spinerouter': '80000m',
'aznghub_spinerouter' : '80000m'
}
-%}
{%- endif %}
Expand Down
Loading

0 comments on commit 723c508

Please sign in to comment.