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:
Rahul 2020-07-17 12:18:28 +05:30
parent 825f1ff76d
commit c0f7c0ecf1

View file

@ -10,8 +10,13 @@ network_get_device l3device $INTERFACE
compare_mcast_proxy_upstream() {
local upstream
local mode="$2"
if [ "$mode" == "proxy" ]; then
config_get upstream $1 upstream_interface
else
config_get upstream $1 interface
fi
for dev in $upstream; do
if [ "$l3device" == "$dev" ]; then
@ -22,4 +27,5 @@ compare_mcast_proxy_upstream() {
}
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"