You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support option --ports of config qos reload for reloading ports' QoS and buffer configuration to default (sonic-net#2125)
What I did
CLI: config qos reload --ports <ports_list>
--ports <ports_list>: a set of interfaces with empty QoS and buffer configurations (typically they have just been created via DPB).
Format: <port>{,port}, like “Ethernet0” or “Ethernet4,Ethernet5,Ethernet6,Ethernet7”
Each port in the list should exist in the CONFIG_DB.PORT table
The flow:
Render the template qos_config.j2 and buffer_config.j2, generating a temporary json file. (This is one step in “config qos reload”).
Parse the json file, extracting all the items on the ports in the port_list
Apply all the extracted items into the CONFIG_DB
Signed-off-by: Stephen Sun <[email protected]>
Copy file name to clipboardExpand all lines: doc/Command-Reference.md
+30
Original file line number
Diff line number
Diff line change
@@ -7586,6 +7586,36 @@ Some of the example QOS configurations that users can modify are given below.
7586
7586
When there are no changes in the platform specific configutation files, they internally use the file "/usr/share/sonic/templates/buffers_config.j2" and "/usr/share/sonic/templates/qos_config.j2" to generate the configuration.
7587
7587
```
7588
7588
7589
+
**config qos reload --ports port_list**
7590
+
7591
+
This command is used to reload the default QoS configuration on a group of ports.
7592
+
Typically, the default QoS configuration is in the following tables.
7593
+
1) PORT_QOS_MAP
7594
+
2) QUEUE
7595
+
3) BUFFER_PG
7596
+
4) BUFFER_QUEUE
7597
+
5) BUFFER_PORT_INGRESS_PROFILE_LIST
7598
+
6) BUFFER_PORT_EGRESS_PROFILE_LIST
7599
+
7) CABLE_LENGTH
7600
+
7601
+
If there was QoS configuration in the above tables for the ports:
7602
+
7603
+
- if`--force` option is provied, the existing QoS configuration will be replaced by the default QoS configuration,
7604
+
- otherwise, the command will exit with nothing updated.
0 commit comments