Skip to content

Commit 474bdbf

Browse files
authored
[config] Add EXP-to-TC map to clear_qos (#1875)
What I did Added EXP to TC map to tables affected by clear_qos command How I did it Found references to DSCP to TC map, added EXP to TC map in same place How to verify it Run clear_qos with EXP to TC map present
1 parent ca728b8 commit 474bdbf

File tree

4 files changed

+43
-16
lines changed

4 files changed

+43
-16
lines changed

config/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ def _clear_qos():
639639
'MAP_PFC_PRIORITY_TO_QUEUE',
640640
'TC_TO_QUEUE_MAP',
641641
'DSCP_TO_TC_MAP',
642+
'MPLS_TC_TO_TC_MAP',
642643
'SCHEDULER',
643644
'PFC_PRIORITY_TO_PRIORITY_GROUP_MAP',
644645
'PORT_QOS_MAP',

doc/Command-Reference.md

+18-16
Original file line numberDiff line numberDiff line change
@@ -7189,16 +7189,17 @@ This command is used to clear all the QoS configuration from all the following Q
71897189
2) MAP_PFC_PRIORITY_TO_QUEUE,
71907190
3) TC_TO_QUEUE_MAP,
71917191
4) DSCP_TO_TC_MAP,
7192-
5) SCHEDULER,
7193-
6) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP,
7194-
7) PORT_QOS_MAP,
7195-
8) WRED_PROFILE,
7196-
9) QUEUE,
7197-
10) CABLE_LENGTH,
7198-
11) BUFFER_POOL,
7199-
12) BUFFER_PROFILE,
7200-
13) BUFFER_PG,
7201-
14) BUFFER_QUEUE
7192+
5) MPLS_TC_TO_TC_MAP,
7193+
6) SCHEDULER,
7194+
7) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP,
7195+
8) PORT_QOS_MAP,
7196+
9) WRED_PROFILE,
7197+
10) QUEUE,
7198+
11) CABLE_LENGTH,
7199+
12) BUFFER_POOL,
7200+
13) BUFFER_PROFILE,
7201+
14) BUFFER_PG,
7202+
15) BUFFER_QUEUE
72027203
72037204
- Usage:
72047205
```
@@ -7233,12 +7234,13 @@ Some of the example QOS configurations that users can modify are given below.
72337234
2) MAP_PFC_PRIORITY_TO_QUEUE
72347235
3) TC_TO_QUEUE_MAP
72357236
4) DSCP_TO_TC_MAP
7236-
5) SCHEDULER
7237-
6) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP
7238-
7) PORT_QOS_MAP
7239-
8) WRED_PROFILE
7240-
9) CABLE_LENGTH
7241-
10) BUFFER_QUEUE
7237+
5) MPLS_TC_TO_TC_MAP
7238+
6) SCHEDULER
7239+
7) PFC_PRIORITY_TO_PRIORITY_GROUP_MAP
7240+
8) PORT_QOS_MAP
7241+
9) WRED_PROFILE
7242+
10) CABLE_LENGTH
7243+
11) BUFFER_QUEUE
72427244
72437245
- Usage:
72447246
```

tests/qos_config_input/config_qos.json

+12
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@
103103
"63": "1"
104104
}
105105
},
106+
"MPLS_TC_TO_TC_MAP": {
107+
"AZURE": {
108+
"0" : "1",
109+
"1" : "1",
110+
"2" : "1",
111+
"3" : "3",
112+
"4" : "4",
113+
"5" : "2",
114+
"6" : "1",
115+
"7" : "1"
116+
}
117+
},
106118
"SCHEDULER": {
107119
"scheduler.0": {
108120
"type" : "DWRR",

tests/qos_config_input/qos_config.j2

+12
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@
155155
"63": "1"
156156
}
157157
},
158+
"MPLS_TC_TO_TC_MAP": {
159+
"AZURE": {
160+
"0" : "1",
161+
"1" : "1",
162+
"2" : "1",
163+
"3" : "3",
164+
"4" : "4",
165+
"5" : "2",
166+
"6" : "1",
167+
"7" : "1"
168+
}
169+
},
158170
{% endif %}
159171
"SCHEDULER": {
160172
"scheduler.0": {

0 commit comments

Comments
 (0)