B #174: add support for ALIAS_DETACH

pull/188/head
Alejandro Huertas 5 years ago committed by Vlastimil Holer
parent 68834953f7
commit b6f2245f97

@ -273,10 +273,13 @@ EOT
EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=$(get_iface_var "EXTERNAL")
EXTERNAL=${EXTERNAL^^} EXTERNAL=${EXTERNAL^^}
DETACH=$(get_iface_var "DETACH")
if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then if [ -z "${DETACH}" ]; then
[ -n "${IP}" ] && gen_alias_conf if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then
[ -n "${IP6}" ] && gen_alias6_conf [ -n "${IP}" ] && gen_alias_conf
[ -n "${IP6}" ] && gen_alias6_conf
fi
fi fi
done done
done done

@ -243,13 +243,16 @@ gen_network_configuration()
EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=$(get_iface_var "EXTERNAL")
EXTERNAL=${EXTERNAL^^} EXTERNAL=${EXTERNAL^^}
DETACH=$(get_iface_var "DETACH")
if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then if [ -z "${DETACH}" ]; then
[ -n "${IP}" ] && gen_alias_conf if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then
[ -n "${IP}" ] && gen_alias_conf
if [ -n "${IP6}" ]; then if [ -n "${IP6}" ]; then
gen_alias6_conf gen_alias6_conf
HAS_IP6=${IP6} HAS_IP6=${IP6}
fi
fi fi
fi fi
done done

@ -299,10 +299,13 @@ EOT
EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=$(get_iface_var "EXTERNAL")
EXTERNAL=${EXTERNAL^^} EXTERNAL=${EXTERNAL^^}
DETACH=$(get_iface_var "DETACH")
if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then if [ -z "${DETACH}" ]; then
[ -n "${IP}" ] && gen_alias_conf if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then
[ -n "${IP6}" ] && gen_alias6_conf [ -n "${IP}" ] && gen_alias_conf
[ -n "${IP6}" ] && gen_alias6_conf
fi
fi fi
done done
done done

@ -273,13 +273,16 @@ EOT
EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=$(get_iface_var "EXTERNAL")
EXTERNAL=${EXTERNAL^^} EXTERNAL=${EXTERNAL^^}
DETACH=$(get_iface_var "DETACH")
if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then if [ -z "${DETACH}" ]; then
[ -n "${IP}" ] && gen_alias_conf if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then
[ -n "${IP6}" ] && gen_alias6_conf [ -n "${IP}" ] && gen_alias_conf
[ -n "${IP6}" ] && gen_alias6_conf
if [ -n "${IP}${IP6}" ]; then if [ -n "${IP}${IP6}" ]; then
ALIAS_NUM=$((ALIAS_NUM + 1)) ALIAS_NUM=$((ALIAS_NUM + 1))
fi
fi fi
fi fi
done done

Loading…
Cancel
Save