Skip to content

Commit 1e758d4

Browse files
kevinskwangmssonicbld
authored andcommitted
[qos] change the template keyword from Compute-AI to ComputeAI (#17902)
Why I did it Align the keywords to make qos configuration take effect Work item tracking Microsoft ADO (number only): How I did it Change the keyword to ComputeAI How to verify it reload minigraph and check the qos configuration
1 parent 335ebaa commit 1e758d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

files/build_templates/qos_config.j2

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
('type' in DEVICE_METADATA['localhost'] and
8484
DEVICE_METADATA['localhost']['type'] in backend_device_types) and
8585
('resource_type' in DEVICE_METADATA['localhost'] and
86-
DEVICE_METADATA['localhost']['resource_type'] == 'Compute-AI') %}
86+
DEVICE_METADATA['localhost']['resource_type'] == 'ComputeAI') %}
8787
{{- generate_tc_to_pg_map() }}
8888
{% else %}
8989
"TC_TO_PRIORITY_GROUP_MAP": {
@@ -147,7 +147,7 @@
147147
('type' in DEVICE_METADATA['localhost'] and
148148
DEVICE_METADATA['localhost']['type'] in backend_device_types) and
149149
('resource_type' in DEVICE_METADATA['localhost'] and
150-
DEVICE_METADATA['localhost']['resource_type'] == 'Compute-AI') %}
150+
DEVICE_METADATA['localhost']['resource_type'] == 'ComputeAI') %}
151151
{{- generate_dscp_to_tc_map() }}
152152
{% else %}
153153
"DSCP_TO_TC_MAP": {
@@ -241,7 +241,7 @@
241241
('type' in DEVICE_METADATA['localhost'] and
242242
DEVICE_METADATA['localhost']['type'] in backend_device_types) and
243243
('resource_type' in DEVICE_METADATA['localhost'] and
244-
DEVICE_METADATA['localhost']['resource_type'] == 'Compute-AI') %}
244+
DEVICE_METADATA['localhost']['resource_type'] == 'ComputeAI') %}
245245
"SCHEDULER": {
246246
"scheduler.0": {
247247
"type" : "DWRR",
@@ -406,7 +406,7 @@
406406
{% if 'type' in DEVICE_METADATA['localhost'] and
407407
DEVICE_METADATA['localhost']['type'] in backend_device_types and
408408
'resource_type' in DEVICE_METADATA['localhost'] and
409-
DEVICE_METADATA['localhost']['resource_type'] == 'Compute-AI' %}
409+
DEVICE_METADATA['localhost']['resource_type'] == 'ComputeAI' %}
410410
{% for port in PORT_ACTIVE %}
411411
"{{ port }}|0": {
412412
"scheduler": "scheduler.0"

0 commit comments

Comments
 (0)