Skip to content

Commit b3e7c40

Browse files
authored
Exclude PIE ports from buffer and qos config (#21747)
[202411]Exclude PIE ports from buffer and qos configuration
1 parent bb0ddf3 commit b3e7c40

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

files/build_templates/buffers_config.j2

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def
115115
{%- set PORT_BP = [] %}
116116
{%- set PORT_DPC = [] %}
117117
{%- set SYSTEM_PORT_ALL = [] %}
118+
{%- set PORT_QOS_BYPASS = [] %}
118119

119120
{%- if voq_chassis %}
120121
{%- for system_port in SYSTEM_PORT %}
@@ -144,6 +145,9 @@ def
144145
{%- if defs.generate_bp_port_list is defined %}
145146
{%- if defs.generate_bp_port_list(PORT,PORT_BP) %} {% endif %}
146147
{%- endif %}
148+
{%- if defs.generate_qos_bypass_port_list is defined %}
149+
{%- if defs.generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} {% endif %}
150+
{%- endif %}
147151
{%- endif %}
148152

149153
{%- set PORT_ACTIVE = [] %}
@@ -166,6 +170,7 @@ def
166170
{%- endif %}
167171
{%- endfor %}
168172
{%- endif %}
173+
{%- set PORT_ACTIVE = PORT_ACTIVE | reject('in', PORT_QOS_BYPASS) | list %}
169174

170175
{%- set port_names_list_active = [] %}
171176
{%- for port in PORT_ACTIVE %}

files/build_templates/qos_config.j2

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{%- set PORT_BP = [] %}
33
{%- set PORT_DPC = [] %}
44
{%- set SYSTEM_PORT_ALL = [] %}
5+
{%- set PORT_QOS_BYPASS = [] %}
56

67
{%- set voq_chassis = false %}
78
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost']['switch_type'] is defined and DEVICE_METADATA['localhost']['switch_type'] == 'voq' %}
@@ -31,6 +32,9 @@
3132
{%- if generate_bp_port_list is defined %}
3233
{%- if generate_bp_port_list(PORT,PORT_BP) %} {% endif %}
3334
{%- endif %}
35+
{%- if generate_qos_bypass_port_list is defined %}
36+
{%- if generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} {% endif %}
37+
{%- endif %}
3438

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

@@ -55,6 +59,7 @@
5559
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
5660
{%- endfor %}
5761
{%- endif %}
62+
{%- set PORT_ACTIVE = PORT_ACTIVE | reject('in', PORT_QOS_BYPASS) | list %}
5863
{%- if PORT_ACTIVE | sort_by_port_index %}{% endif %}
5964

6065
{%- set port_names_list_active = [] %}

0 commit comments

Comments
 (0)