Allow disabling dhcpv4 on internal ifaces.

This commit is contained in:
2026-09-20 06:46:20 -04:00
parent 8b7e70af8d
commit f2540b125e
+9 -1
View File
@@ -152,6 +152,7 @@ _compute_nets()
shift 1
_priv="YES"
_no_dhcpv4="NO"
while true
do
case ${1} in
@@ -163,6 +164,10 @@ _compute_nets()
_isp=""
;;
"no_dhcp")
_no_dhcpv4="YES"
;;
isp=*)
_isp=`echo ${1} | sed -e 's/isp=//'`
;;
@@ -539,7 +544,10 @@ add_v4_net()
else
eval ifconfig_${_card_and_vlan}=\"${_extra_address} group internal ${_class_group} ${_extra_opts}\"
fi
eval dhcpd_ifaces=\"${dhcpd_ifaces} ${_card_dot_vlan}\"
if [ $(option_selected _no_dhcpv4) != "YES" ]
then
eval dhcpd_ifaces=\"${dhcpd_ifaces} ${_card_dot_vlan}\"
fi
}
_add_v6_prefixes()