Generate switch level dscp_to_tc_map entry from qos_config template (#11087)

* Generate switch level dscp_to_tc_map

Signed-off-by: bingwang <wang.bing@microsoft.com>
This commit is contained in:
bingwang-ms 2022-06-17 08:44:30 +08:00 committed by GitHub
parent faecf38417
commit 83f23e26ff
No account linked to committer's email address
15 changed files with 49 additions and 0 deletions

View File

@ -217,6 +217,13 @@
}, },
{% endif %} {% endif %}
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
{% if generate_global_dscp_to_tc_map is defined %}
{{- generate_global_dscp_to_tc_map() }}
{% else %}
"global": {
"dscp_to_tc_map" : "AZURE"
}{% if PORT_ACTIVE %},{% endif %}
{% endif %}
{% for port in PORT_ACTIVE %} {% for port in PORT_ACTIVE %}
"{{ port }}": { "{{ port }}": {
{% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] in backend_device_types and 'storage_device' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['storage_device'] == 'true' %} {% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] in backend_device_types and 'storage_device' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['storage_device'] == 'true' %}

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet4": { "Ethernet4": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -118,6 +118,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet4": { "Ethernet4": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -217,6 +217,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -217,6 +217,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -114,6 +114,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",

View File

@ -118,6 +118,9 @@
} }
}, },
"PORT_QOS_MAP": { "PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": { "Ethernet0": {
"dscp_to_tc_map" : "AZURE", "dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE", "tc_to_queue_map" : "AZURE",