Compare commits

...

2 Commits

Author SHA1 Message Date
jjoseph
1d4f6e49a9 Review comments incorporated 2021-07-16 12:55:05 +05:30
jjoseph
0b70004f62 qosmngr : Shaper rate configuration needs to be in kbps
- Tested manually
- Modified the automation test scripts, passing on DG400prime.
2021-07-16 10:53:14 +05:30

View File

@@ -231,6 +231,12 @@ handle_shaper() {
fi
config_get rate "$sid" "rate"
# Convert the rate from bps to kbps.
if [ $rate -lt 1000 ];then
return
fi
rate=$(($rate / 1000))
config_get bs "$sid" "burst_size"
tmctl setportshaper --devtype 0 --if $ifname --shapingrate $rate --burstsize $bs
}