mcastmngr: remove dependency on ports uci file

This commit is contained in:
Rahul Thakur 2023-07-26 15:41:07 +05:30
parent b64f41dc6b
commit 10564d779c

View file

@ -97,8 +97,7 @@ interfaces_ok(){
# mcast config is outdated, simply generate as per new logic
if [ -z "$dev_section" ]; then
# check if the itf is a native interface && return 1
native=$(ubus call uci get '{"config":"ports", "type":"ethport", "match":{"ifname":"'"$itf"'"}}' | jsonfilter -e @.values | jq keys[])
[ -z "native" ] && return 1
[ -f "/proc/net/vlan/$itf" ] || return 1
fi
done
return 0