Skip to content

Commit

Permalink
Exclude PIE ports from buffer and qos config (#21036)
Browse files Browse the repository at this point in the history
Exclude pie ports from buffer and qos config

Signed-off-by: Zhixin Zhu <[email protected]>
  • Loading branch information
zhixzhu authored Jan 8, 2025
1 parent 2630e7d commit 806e181
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/build_templates/buffers_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def
{%- set PORT_BP = [] %}
{%- set PORT_DPC = [] %}
{%- set SYSTEM_PORT_ALL = [] %}
{%- set PORT_QOS_BYPASS = [] %}

{%- if voq_chassis %}
{%- for system_port in SYSTEM_PORT %}
Expand Down Expand Up @@ -144,6 +145,9 @@ def
{%- if defs.generate_bp_port_list is defined %}
{%- if defs.generate_bp_port_list(PORT,PORT_BP) %} {% endif %}
{%- endif %}
{%- if defs.generate_qos_bypass_port_list is defined %}
{%- if defs.generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} {% endif %}
{%- endif %}
{%- endif %}

{%- set PORT_ACTIVE = [] %}
Expand All @@ -166,6 +170,7 @@ def
{%- endif %}
{%- endfor %}
{%- endif %}
{%- set PORT_ACTIVE = PORT_ACTIVE | reject('in', PORT_QOS_BYPASS) | list %}

{%- set port_names_list_active = [] %}
{%- for port in PORT_ACTIVE %}
Expand Down
5 changes: 5 additions & 0 deletions files/build_templates/qos_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{%- set PORT_BP = [] %}
{%- set PORT_DPC = [] %}
{%- set SYSTEM_PORT_ALL = [] %}
{%- set PORT_QOS_BYPASS = [] %}

{%- set voq_chassis = false %}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost']['switch_type'] is defined and DEVICE_METADATA['localhost']['switch_type'] == 'voq' %}
Expand Down Expand Up @@ -31,6 +32,9 @@
{%- if generate_bp_port_list is defined %}
{%- if generate_bp_port_list(PORT,PORT_BP) %} {% endif %}
{%- endif %}
{%- if generate_qos_bypass_port_list is defined %}
{%- if generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} {% endif %}
{%- endif %}

{%- if PORT_ALL | sort_by_port_index %}{% endif %}

Expand All @@ -55,6 +59,7 @@
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
{%- endfor %}
{%- endif %}
{%- set PORT_ACTIVE = PORT_ACTIVE | reject('in', PORT_QOS_BYPASS) | list %}
{%- if PORT_ACTIVE | sort_by_port_index %}{% endif %}

{%- set port_names_list_active = [] %}
Expand Down

0 comments on commit 806e181

Please sign in to comment.