Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[config] Add EXP-to-TC map to clear_qos #1875

Merged
merged 6 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ def _clear_qos():
'MAP_PFC_PRIORITY_TO_QUEUE',
'TC_TO_QUEUE_MAP',
'DSCP_TO_TC_MAP',
'MPLS_TC_TO_TC_MAP',
'SCHEDULER',
'PFC_PRIORITY_TO_PRIORITY_GROUP_MAP',
'PORT_QOS_MAP',
Expand Down
34 changes: 18 additions & 16 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7189,16 +7189,17 @@ This command is used to clear all the QoS configuration from all the following Q
2) MAP_PFC_PRIORITY_TO_QUEUE,
3) TC_TO_QUEUE_MAP,
4) DSCP_TO_TC_MAP,
5) SCHEDULER,
6) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP,
7) PORT_QOS_MAP,
8) WRED_PROFILE,
9) QUEUE,
10) CABLE_LENGTH,
11) BUFFER_POOL,
12) BUFFER_PROFILE,
13) BUFFER_PG,
14) BUFFER_QUEUE
5) MPLS_TC_TO_TC_MAP,
6) SCHEDULER,
7) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP,
8) PORT_QOS_MAP,
9) WRED_PROFILE,
10) QUEUE,
11) CABLE_LENGTH,
12) BUFFER_POOL,
13) BUFFER_PROFILE,
14) BUFFER_PG,
15) BUFFER_QUEUE

- Usage:
```
Expand Down Expand Up @@ -7233,12 +7234,13 @@ Some of the example QOS configurations that users can modify are given below.
2) MAP_PFC_PRIORITY_TO_QUEUE
3) TC_TO_QUEUE_MAP
4) DSCP_TO_TC_MAP
5) SCHEDULER
6) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP
7) PORT_QOS_MAP
8) WRED_PROFILE
9) CABLE_LENGTH
10) BUFFER_QUEUE
5) MPLS_TC_TO_TC_MAP
6) SCHEDULER
7) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP
8) PORT_QOS_MAP
9) WRED_PROFILE
10) CABLE_LENGTH
11) BUFFER_QUEUE

- Usage:
```
Expand Down
12 changes: 12 additions & 0 deletions tests/qos_config_input/config_qos.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@
"63": "1"
}
},
"MPLS_TC_TO_TC_MAP": {
"AZURE": {
"0" : "1",
"1" : "1",
"2" : "1",
"3" : "3",
"4" : "4",
"5" : "2",
"6" : "1",
"7" : "1"
}
},
"SCHEDULER": {
"scheduler.0": {
"type" : "DWRR",
Expand Down
12 changes: 12 additions & 0 deletions tests/qos_config_input/qos_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@
"63": "1"
}
},
"MPLS_TC_TO_TC_MAP": {
"AZURE": {
"0" : "1",
"1" : "1",
"2" : "1",
"3" : "3",
"4" : "4",
"5" : "2",
"6" : "1",
"7" : "1"
}
},
{% endif %}
"SCHEDULER": {
"scheduler.0": {
Expand Down