Skip to content

Commit

Permalink
[Chassis][QoS template] Skip configuring buffer and QoS config on rec…
Browse files Browse the repository at this point in the history
…irc ports (#7869)

* Added test case to verify the template changes.
  • Loading branch information
ysmanman authored Mar 10, 2022
1 parent 3fa18d1 commit 0179844
Show file tree
Hide file tree
Showing 8 changed files with 6,971 additions and 2 deletions.
4 changes: 3 additions & 1 deletion files/build_templates/buffers_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def
{%- endif %}
{%- else %}
{%- for port in PORT %}
{%- if PORT_ALL.append(port) %}{%- endif %}
{%- if not port.startswith('Ethernet-Rec') and not port.startswith('Ethernet-IB') %}
{%- if PORT_ALL.append(port) %}{%- endif %}
{%- endif %}
{%- endfor %}
{%- endif %}

Expand Down
4 changes: 3 additions & 1 deletion files/build_templates/qos_config.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{%- set PORT_ALL = [] %}
{%- for port in PORT %}
{%- if PORT_ALL.append(port) %}{% endif %}
{%- if not port.startswith('Ethernet-Rec') and not port.startswith('Ethernet-IB') %}
{%- if PORT_ALL.append(port) %}{% endif %}
{%- endif %}
{%- endfor %}
{%- if PORT_ALL | sort_by_port_index %}{% endif %}

Expand Down
Loading

0 comments on commit 0179844

Please sign in to comment.