|
21 | 21 | {%- set switch_role = '' %}
|
22 | 22 | {%- endif -%}
|
23 | 23 |
|
| 24 | +{% set voq_chassis = false %} |
| 25 | +{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost']['switch_type'] is defined and DEVICE_METADATA['localhost']['switch_type'] == 'voq' %} |
| 26 | +{%- set voq_chassis = true %} |
| 27 | +{%- endif -%} |
| 28 | + |
24 | 29 | {# Import default values from device HWSKU folder #}
|
25 | 30 | {%- import 'buffers_defaults_%s.j2' % filename_postfix as defs with context %}
|
26 | 31 |
|
|
94 | 99 | {%- endmacro %}
|
95 | 100 |
|
96 | 101 | {%- set PORT_ALL = [] %}
|
| 102 | +{%- set SYSTEM_PORT_ALL = [] %} |
97 | 103 |
|
| 104 | +{%- if voq_chassis %} |
| 105 | + {%- for system_port in SYSTEM_PORT %} |
| 106 | + {% if '|' not in system_port %} |
| 107 | + {%- set system_port_name = system_port|join("|") %} |
| 108 | + {% else %} |
| 109 | + {%- set system_port_name = system_port %} |
| 110 | + {% endif %} |
| 111 | + {%- if 'cpu' not in system_port_name.lower() and 'IB' not in system_port_name and 'Rec' not in system_port_name %} |
| 112 | + {%- if SYSTEM_PORT_ALL.append(system_port_name) %}{%- endif %} |
| 113 | + {%- endif %} |
| 114 | + {%- endfor %} |
| 115 | +{%- endif %} |
98 | 116 | {%- if PORT is not defined %}
|
99 | 117 | {%- if defs.generate_port_lists is defined %}
|
100 | 118 | {%- if defs.generate_port_lists(PORT_ALL) %} {% endif %}
|
|
190 | 208 | },
|
191 | 209 | {% endif %}
|
192 | 210 |
|
| 211 | +{% if voq_chassis %} |
| 212 | + "BUFFER_QUEUE": { |
| 213 | +{% for system_port in SYSTEM_PORT_ALL %} |
| 214 | + "{{ system_port }}|3-4": { |
| 215 | + "profile" : "egress_lossless_profile" |
| 216 | + }, |
| 217 | +{% endfor %} |
| 218 | +{% for system_port in SYSTEM_PORT_ALL %} |
| 219 | + "{{ system_port }}|0-2": { |
| 220 | + "profile" : "egress_lossy_profile" |
| 221 | + }, |
| 222 | +{% endfor %} |
| 223 | +{% for system_port in SYSTEM_PORT_ALL %} |
| 224 | + "{{ system_port }}|5-6": { |
| 225 | + "profile" : "egress_lossy_profile" |
| 226 | + }{% if not loop.last %},{% endif %} |
| 227 | + |
| 228 | +{% endfor %} |
| 229 | + } |
| 230 | +{% else %} |
193 | 231 | {% if (defs.generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports is defined) and (port_names_extra_queues != '') %}
|
194 | 232 | {{ defs.generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) }}
|
195 | 233 | {% elif (defs.generate_queue_buffers_with_extra_lossless_queues is defined) and (port_names_extra_queues != '') %}
|
|
218 | 256 | {% endfor %}
|
219 | 257 | }
|
220 | 258 | {% endif %}
|
| 259 | +{% endif %} |
221 | 260 | {%- if dynamic_mode is defined -%}
|
222 | 261 | ,
|
223 | 262 | {%- endif -%}
|
|
0 commit comments