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
47 lines
1.2 KiB
Django/Jinja
47 lines
1.2 KiB
Django/Jinja
{%- set default_cable = '5m' %}
|
|
|
|
{%- macro generate_port_lists(PORT_ALL) %}
|
|
{# Generate list of ports #}
|
|
{%- for port_idx in range(0,64) %}
|
|
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
|
|
{%- endfor %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro generate_buffer_pool_and_profiles() %}
|
|
"BUFFER_POOL": {
|
|
"ingress_lossless_pool": {
|
|
"size": "33329088",
|
|
"type": "ingress",
|
|
"mode": "dynamic",
|
|
"xoff": "7827456"
|
|
},
|
|
"egress_lossy_pool": {
|
|
"size": "26663272",
|
|
"type": "egress",
|
|
"mode": "dynamic"
|
|
},
|
|
"egress_lossless_pool": {
|
|
"size": "42349632",
|
|
"type": "egress",
|
|
"mode": "static"
|
|
}
|
|
},
|
|
"BUFFER_PROFILE": {
|
|
"ingress_lossy_profile": {
|
|
"pool":"ingress_lossless_pool",
|
|
"size":"0",
|
|
"static_th":"44302336"
|
|
},
|
|
"egress_lossless_profile": {
|
|
"pool":"egress_lossless_pool",
|
|
"size":"0",
|
|
"static_th":"42349632"
|
|
},
|
|
"egress_lossy_profile": {
|
|
"pool":"egress_lossy_pool",
|
|
"size":"1664",
|
|
"dynamic_th":"-1"
|
|
}
|
|
},
|
|
{%- endmacro %}
|