mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
mcastmngr: handle mcast config for ifup in snooping
The handling of ifup event in case of snooping config was missing. Note: ifup event is generated only for l3 interface, so, say ethx is member of br-y which has proto none. In this case if ethx link goes down and comes up again, IPTV will not work without a mcast reload. From the look of it this will be the case in old version as well and at the moment I don't know how this can be handled but considering this is a remote scenario in my opinion I don't think the risk is too high. I would continue to look for a solution ofcourse.
This commit is contained in:
parent
825f1ff76d
commit
c0f7c0ecf1
1 changed files with 14 additions and 8 deletions
|
|
@ -10,16 +10,22 @@ network_get_device l3device $INTERFACE
|
||||||
|
|
||||||
compare_mcast_proxy_upstream() {
|
compare_mcast_proxy_upstream() {
|
||||||
local upstream
|
local upstream
|
||||||
|
local mode="$2"
|
||||||
|
|
||||||
config_get upstream $1 upstream_interface
|
if [ "$mode" == "proxy" ]; then
|
||||||
|
config_get upstream $1 upstream_interface
|
||||||
|
else
|
||||||
|
config_get upstream $1 interface
|
||||||
|
fi
|
||||||
|
|
||||||
for dev in $upstream; do
|
for dev in $upstream; do
|
||||||
if [ "$l3device" == "$dev" ]; then
|
if [ "$l3device" == "$dev" ]; then
|
||||||
ubus call uci commit '{"config":"mcast"}'
|
ubus call uci commit '{"config":"mcast"}'
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
config_load mcast
|
config_load mcast
|
||||||
config_foreach compare_mcast_proxy_upstream "proxy"
|
config_foreach compare_mcast_proxy_upstream "proxy" "proxy"
|
||||||
|
config_foreach compare_mcast_proxy_upstream "snooping" "snooping"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue