Skip to content

Commit 2cf3d58

Browse files
authoredMar 7, 2025··
exclude pie ports from qos config (sonic-net#21544)
Why I did it Some code were deleted by mistake in sonic-net#21427 Add it back. There are some ports (PIE ports in cisco platform) don't support buffer/qos config, this is to exclude those ports from PORT_ACTIVE to bypass buffer/qos config.
1 parent ab88fe0 commit 2cf3d58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎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)
Please sign in to comment.