-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support option --ports of config qos reload for reloading ports' QoS …
…and buffer configuration to default (#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]>
- Loading branch information
Showing
6 changed files
with
419 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"BUFFER_PG": { | ||
"Ethernet0|0": { | ||
"profile": "ingress_lossy_profile" | ||
} | ||
}, | ||
"BUFFER_QUEUE": { | ||
"Ethernet0|0-2": { | ||
"profile": "egress_lossy_profile" | ||
}, | ||
"Ethernet0|3-4": { | ||
"profile": "egress_lossless_profile" | ||
}, | ||
"Ethernet0|5-6": { | ||
"profile": "egress_lossy_profile" | ||
} | ||
}, | ||
"CABLE_LENGTH": { | ||
"AZURE": { | ||
"Ethernet0": "300m" | ||
} | ||
}, | ||
"PORT_QOS_MAP": { | ||
"Ethernet0": { | ||
"dscp_to_tc_map": "AZURE", | ||
"pfc_enable": "3,4", | ||
"pfc_to_queue_map": "AZURE", | ||
"tc_to_pg_map": "AZURE", | ||
"tc_to_queue_map": "AZURE" | ||
} | ||
}, | ||
"QUEUE": { | ||
"Ethernet0|0": { | ||
"scheduler": "scheduler.0" | ||
}, | ||
"Ethernet0|1": { | ||
"scheduler": "scheduler.0" | ||
}, | ||
"Ethernet0|2": { | ||
"scheduler": "scheduler.0" | ||
}, | ||
"Ethernet0|3": { | ||
"scheduler": "scheduler.1", | ||
"wred_profile": "AZURE_LOSSLESS" | ||
}, | ||
"Ethernet0|4": { | ||
"scheduler": "scheduler.1", | ||
"wred_profile": "AZURE_LOSSLESS" | ||
}, | ||
"Ethernet0|5": { | ||
"scheduler": "scheduler.0" | ||
}, | ||
"Ethernet0|6": { | ||
"scheduler": "scheduler.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.