diff --git a/scripts/gen-netatt.sh b/scripts/gen-netatt.sh index 66df9df3c..e2041bd65 100644 --- a/scripts/gen-netatt.sh +++ b/scripts/gen-netatt.sh @@ -39,15 +39,6 @@ if [ -z "${VLAN_STEP}" ]; then echo "Please set VLAN_STEP"; exit 1 fi -if [ -z "$IPV4_ENABLED" ] && [ -z "$IPV6_ENABLED" ]; then - echo "Please enable either IPv4 or IPv6 by setting IPV4_ENABLED or IPV6_ENABLED"; exit 1 -fi - -if [ -n "$IPV4_ENABLED" ] && [ -n "$IPV6_ENABLED" ]; then - echo "Dual stack not supported, cannot enable both IPv4 and IPv6"; exit 1 -fi - - echo DEPLOY_DIR ${DEPLOY_DIR} echo INTERFACE ${INTERFACE} echo VLAN_START ${VLAN_START} @@ -78,21 +69,36 @@ spec: "master": "${BRIDGE_NAME}", "ipam": { "type": "whereabouts", + "ipRanges": [ EOF_CAT if [ -n "$IPV4_ENABLED" ]; then cat >> ${DEPLOY_DIR}/ctlplane.yaml <> ${DEPLOY_DIR}/ctlplane.yaml <> ${DEPLOY_DIR}/ctlplane.yaml <> ${DEPLOY_DIR}/ctlplane.yaml <> ${DEPLOY_DIR}/ctlplane.yaml <> ${DEPLOY_DIR}/internalapi.yaml <> ${DEPLOY_DIR}/internalapi.yaml <> ${DEPLOY_DIR}/internalapi.yaml <> ${DEPLOY_DIR}/internalapi.yaml <> ${DEPLOY_DIR}/internalapi.yaml <> ${DEPLOY_DIR}/storage.yaml <> ${DEPLOY_DIR}/storage.yaml <> ${DEPLOY_DIR}/storage.yaml <> ${DEPLOY_DIR}/storage.yaml <> ${DEPLOY_DIR}/storage.yaml <> ${DEPLOY_DIR}/tenant.yaml <> ${DEPLOY_DIR}/tenant.yaml <> ${DEPLOY_DIR}/tenant.yaml <> ${DEPLOY_DIR}/tenant.yaml <> ${DEPLOY_DIR}/tenant.yaml <