6cbdf11e53
Depends on Azure/sonic-utilities#1626 Depends on Azure/sonic-swss#1754 QOS tables in config db used ABNF format i.e "[TABLE_NAME|name] to refer fieldvalue to other qos tables. Example: Config DB: "Ethernet92|3": { "scheduler": "[SCHEDULER|scheduler.1]", "wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]" }, "Ethernet0|0": { "profile": "[BUFFER_PROFILE|ingress_lossy_profile]" }, "Ethernet0": { "dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]", "pfc_enable": "3,4", "pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", "tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", "tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]" }, This format is not consistent with other DB schema followed in sonic. And also this reference in DB is not required, This is taken care by YANG "leafref". Removed this format from all platform files to consistent with other sonic db schema. Example: "Ethernet92|3": { "scheduler": "scheduler.1", "wred_profile": "AZURE_LOSSLESS" }, Dependent pull requests: #7752 - To modify platfrom files #7281 - Yang model Azure/sonic-utilities#1626 - DB migration Azure/sonic-swss#1754 - swss change to remove ABNF format
121 lines
2.6 KiB
Django/Jinja
Executable File
121 lines
2.6 KiB
Django/Jinja
Executable File
{# Default values which will be used if no actual configura available #}
|
|
|
|
{% set default_ports_num = 128 -%}
|
|
{# Generate list of ports if not defined #}
|
|
{% if PORT is not defined %}
|
|
{% set PORT = [] %}
|
|
{% for port_idx in range(0,default_ports_num) %}
|
|
{% if PORT.append("Ethernet%d" % (port_idx*2)) %}{% endif %}
|
|
{% endfor %}
|
|
{% endif -%}
|
|
|
|
{% set port_names_list = [] %}
|
|
{% for port in PORT %}
|
|
{%- if port_names_list.append(port) %}{% endif %}
|
|
{% endfor %}
|
|
{% set port_names = port_names_list | join(',') -%}
|
|
|
|
|
|
{
|
|
"TC_TO_QUEUE_MAP":{
|
|
"AZURE":{
|
|
"1":"1",
|
|
"0":"0",
|
|
"3":"3",
|
|
"2":"2",
|
|
"5":"5",
|
|
"4":"4",
|
|
"7":"7",
|
|
"6":"6"
|
|
}
|
|
},
|
|
"TC_TO_PRIORITY_GROUP_MAP": {
|
|
"AZURE": {
|
|
"1": "0",
|
|
"0": "0",
|
|
"3": "0",
|
|
"2": "0",
|
|
"4": "1",
|
|
"5": "2",
|
|
"6": "0",
|
|
"7": "0"
|
|
}
|
|
},
|
|
"DSCP_TO_TC_MAP": {
|
|
"AZURE": {
|
|
"0":"0",
|
|
"1":"0",
|
|
"2":"0",
|
|
"3":"0",
|
|
"4":"4",
|
|
"5":"5",
|
|
"6":"0",
|
|
"7":"0",
|
|
"8":"1",
|
|
"9":"0",
|
|
"10":"0",
|
|
"11":"0",
|
|
"12":"0",
|
|
"13":"0",
|
|
"14":"0",
|
|
"15":"0",
|
|
"16":"0",
|
|
"17":"0",
|
|
"18":"0",
|
|
"19":"0",
|
|
"20":"0",
|
|
"21":"0",
|
|
"22":"0",
|
|
"23":"0",
|
|
"24":"0",
|
|
"25":"0",
|
|
"26":"0",
|
|
"27":"0",
|
|
"28":"0",
|
|
"29":"0",
|
|
"30":"0",
|
|
"31":"0",
|
|
"32":"0",
|
|
"33":"0",
|
|
"34":"0",
|
|
"35":"0",
|
|
"36":"0",
|
|
"37":"0",
|
|
"38":"0",
|
|
"39":"0",
|
|
"40":"0",
|
|
"41":"0",
|
|
"42":"0",
|
|
"43":"0",
|
|
"44":"0",
|
|
"45":"0",
|
|
"46":"0",
|
|
"47":"0",
|
|
"48":"0",
|
|
"49":"0",
|
|
"50":"0",
|
|
"51":"0",
|
|
"52":"0",
|
|
"53":"0",
|
|
"54":"0",
|
|
"55":"0",
|
|
"56":"0",
|
|
"57":"0",
|
|
"58":"0",
|
|
"59":"0",
|
|
"60":"0",
|
|
"61":"0",
|
|
"62":"0",
|
|
"63":"0"
|
|
}
|
|
},
|
|
"PORT_QOS_MAP": {
|
|
"{{ port_names }}": {
|
|
"tc_to_pg_map": "AZURE",
|
|
"tc_to_queue_map": "AZURE",
|
|
"dscp_to_tc_map": "AZURE",
|
|
"pfc_enable": "4,5"
|
|
}
|
|
}
|
|
}
|