summaryrefslogtreecommitdiffstats
path: root/config.d
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-11-20 14:16:15 +1100
committerMartin Schwenke <martin@meltin.net>2014-11-25 11:24:56 +1100
commitd2b95463295b21fce7636a1373abca5282d14fa8 (patch)
tree12e9283195241d7c47bd6cc0c315b2b770ade562 /config.d
parent56c33c7376523eb8db06b5be7d35be61290a9cb2 (diff)
downloadautocluster-d2b95463295b21fce7636a1373abca5282d14fa8.tar.gz
autocluster-d2b95463295b21fce7636a1373abca5282d14fa8.tar.xz
autocluster-d2b95463295b21fce7636a1373abca5282d14fa8.zip
Add IPv6 support
New configuration variable NETWORK_STACK. Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'config.d')
-rw-r--r--config.d/00base.defconf7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.d/00base.defconf b/config.d/00base.defconf
index f366f1e..1196b07 100644
--- a/config.d/00base.defconf
+++ b/config.d/00base.defconf
@@ -228,6 +228,9 @@ defconf DNSSEARCH "$DOMAIN" \
defconf NETWORKS "10.0.0.0/24,eth0,gw=10.0.0.1 10.0.1.0/24,eth1 10.0.2.0/24,eth2" \
"<list>" "description of IP networks"
+defconf NETWORK_STACK "ipv4" \
+ "ipv4|dual|ipv6" "Configure IPv4/IPv6 stacks"
+
make_public_addresses()
{
local firstip="${1:-$[${FIRSTIP} + ${PUBLIC_IP_OFFSET}]}"
@@ -279,8 +282,8 @@ defconf NETWORK_TEMPLATE "|network_template" \
network_template ()
{
- local netname dev ip mac opts
- while read netname dev ip mac opts ; do
+ local netname dev ip ipv6 mac opts
+ while read netname dev ip ipv6 mac opts ; do
cat <<EOF
<interface type='network'>
<mac address='${mac}'/>