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:
Rahul 2020-08-28 13:50:03 +05:30
parent c3c5d4ff8b
commit a06ffa00ce

View file

@ -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)