qosmngr: ebtables rules race condition fix

This commit is contained in:
Ratish 2023-08-31 17:39:49 +05:30 committed by Rahul Thakur
parent 2d11f25204
commit 9ae9af2acf

View file

@ -392,10 +392,10 @@ create_ebtables_chains() {
ebtables -t broute -N qos 2> /dev/null
ret=$?
if [ $ret -eq 0 ]; then
ebtables -t broute -I BROUTING -j qos
ebtables -t broute -A BROUTING -j qos
else
ebtables -t broute -D BROUTING -j qos
ebtables -t broute -I BROUTING -j qos
ebtables -t broute -A BROUTING -j qos
fi
}