mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: clean shaper config
Bug identified: if a shaper config is removed from the UCI file, it still remains active on the port since the logic to clean shaper config is missing in the qosmngr. Resolution: clean shapers on each reload so that fresh config takes place as per the UCI file.
This commit is contained in:
parent
c3c5d4ff8b
commit
a06ffa00ce
1 changed files with 4 additions and 0 deletions
|
|
@ -433,6 +433,10 @@ handle_classify() {
|
|||
}
|
||||
|
||||
configure_shaper() {
|
||||
# Delete existing shaper
|
||||
for intf in $(db get hw.board.ethernetPortOrder); do
|
||||
tmctl setportshaper --devtype 0 --if $intf --shapingrate 0 --burstsize -1
|
||||
done
|
||||
# Load UCI file
|
||||
config_load qos
|
||||
# Processing shaper section(s)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue