mcastmngr: remove max_groups section from uci

The option max_groups is not really needed in the uci, hence,
removed. Also, max_membership and max_msf are set internally
by mcpd so no need to echo them seperately.
This commit is contained in:
Rahul 2020-04-20 07:06:49 +05:30
parent ab7cf3e44a
commit c1dbba3545
2 changed files with 4 additions and 6 deletions

View file

@ -5,9 +5,8 @@
generate_igmp_global_params(){
uci add mcast igmp
uci rename mcast.@igmp[-1]="igmp"
uci set mcast.@igmp[-1].max_groups="20"
uci set mcast.@igmp[-1].max_msf="10"
uci set mcast.@igmp[-1].max_membership="20"
uci set mcast.@igmp[-1].max_msf="10"
uci set mcast.@igmp[-1].max_qrv="2"
uci set mcast.@igmp[-1].force_version="0"
uci commit mcast

View file

@ -212,14 +212,13 @@ config_global_igmp_params() {
local force_version
config_load mcast
config_get max_groups igmp max_groups 25
config_get max_msf igmp max_msf 10
config_get max_members igmp max_membership 25
config_get max_groups igmp max_membership 25
config_get qrv igmp qrv 2
config_get force_version igmp force_version 0
echo $max_members >/proc/sys/net/ipv4/igmp_max_memberships
echo $max_msf > /proc/sys/net/ipv4/igmp_max_msf
# mcpd internally writes max_groups and max_msf, no need to modify
# here directly
echo $qrv > /proc/sys/net/ipv4/igmp_qrv
echo $force_version > /proc/sys/net/ipv4/conf/all/force_igmp_version