Skip to content

Commit 304ec5b

Browse files
authored
Updated traffic scheduler settings for HWSKUs : DellEMC-Z9332f-O32 & DellEMC-Z9332f-M-O16C64 (#9927)
1 parent 6293a09 commit 304ec5b

File tree

5 files changed

+4272
-1
lines changed

5 files changed

+4272
-1
lines changed

files/build_templates/qos_config.j2

+27-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
{%- set pfc_to_pg_map_supported_asics = ['mellanox', 'barefoot', 'marvell'] -%}
3232
{%- set backend_device_types = ['BackEndToRRouter', 'BackEndLeafRouter'] -%}
33-
33+
{%- set apollo_resource_types = ['DL-NPU-Apollo'] -%}
3434

3535
{
3636
{% if generate_tc_to_pg_map is defined %}
@@ -156,6 +156,22 @@
156156
}
157157
},
158158
{% endif %}
159+
{% if 'resource_type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['resource_type'] in apollo_resource_types %}
160+
"SCHEDULER": {
161+
"scheduler.0": {
162+
"type" : "DWRR",
163+
"weight": "1"
164+
},
165+
"scheduler.1": {
166+
"type" : "DWRR",
167+
"weight": "1"
168+
},
169+
"scheduler.2": {
170+
"type" : "DWRR",
171+
"weight": "100"
172+
}
173+
},
174+
{% else %}
159175
"SCHEDULER": {
160176
"scheduler.0": {
161177
"type" : "DWRR",
@@ -166,6 +182,7 @@
166182
"weight": "15"
167183
}
168184
},
185+
{% endif %}
169186
{% if asic_type in pfc_to_pg_map_supported_asics %}
170187
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP": {
171188
"AZURE": {
@@ -221,12 +238,21 @@
221238
"wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]"
222239
},
223240
{% endfor %}
241+
{% if 'resource_type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['resource_type'] in apollo_resource_types %}
242+
{% for port in PORT_ACTIVE %}
243+
"{{ port }}|4": {
244+
"scheduler" : "[SCHEDULER|scheduler.2]",
245+
"wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]"
246+
},
247+
{% endfor %}
248+
{% else %}
224249
{% for port in PORT_ACTIVE %}
225250
"{{ port }}|4": {
226251
"scheduler" : "[SCHEDULER|scheduler.1]",
227252
"wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]"
228253
},
229254
{% endfor %}
255+
{% endif %}
230256
{% for port in PORT_ACTIVE %}
231257
"{{ port }}|0": {
232258
"scheduler": "[SCHEDULER|scheduler.0]"

0 commit comments

Comments
 (0)