Skip to content

Commit

Permalink
Remove empty dscp_to_tc_map macro in qos.j2
Browse files Browse the repository at this point in the history
Previously we disable the global dscp_to_tc_map table as sai doesn't support it.
Now they have supported it and we need it to enable inner dscp map to tc
feature, so remove the old dummy marco and update testing case accordingly.

Signed-off-by: Yuanzhe, Liu <[email protected]>
  • Loading branch information
yuazhe committed Jan 13, 2025
1 parent c7fdba0 commit f6efb55
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{#
Copyright (c) 2020-2023 NVIDIA CORPORATION & AFFILIATES.
Apache-2.0
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
Copyright (c) 2017-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +16,7 @@
limitations under the License.
#}


{% if (('type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'LeafRouter') or
('type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'ToRRouter') and
('subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR')) %}
Expand Down Expand Up @@ -271,9 +273,6 @@
},
{%- endmacro %}
{%- endif %}
{%- macro generate_global_dscp_to_tc_map() %}
{# This is an empty macro since the global DSCP_TO_TC map is not required #}
{%- endmacro %}

{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
}
},
"PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": {
"dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@
}
},
"PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": {
"dscp_to_tc_map" : "AZURE_UPLINK",
"tc_to_queue_map" : "AZURE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@
}
},
"PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},

"Ethernet2": {

Expand Down

0 comments on commit f6efb55

Please sign in to comment.