summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-11-24 21:01:37 +1100
committerMartin Schwenke <martin@meltin.net>2014-11-25 11:24:56 +1100
commit415d586cca66ded609b8f74a7acaece4bd88f57a (patch)
tree46d7d4f431b57e8bf3f505c47fc8793fb4124461 /templates
parent85628a2ba97f28cdb21a3efade73c38304f28416 (diff)
downloadautocluster-415d586cca66ded609b8f74a7acaece4bd88f57a.tar.gz
autocluster-415d586cca66ded609b8f74a7acaece4bd88f57a.tar.xz
autocluster-415d586cca66ded609b8f74a7acaece4bd88f57a.zip
Remove netmask from network_map
This removes the /24 assumption, embeds the prefix into the ip field and calculates netmask in the only place it is needed. Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/basic-postinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/basic-postinstall.sh b/templates/basic-postinstall.sh
index d81b3c1..f630b70 100644
--- a/templates/basic-postinstall.sh
+++ b/templates/basic-postinstall.sh
@@ -21,7 +21,7 @@ dev=$(ip link show |
echo "Forcing up network interface \"$dev\""
ip link set $dev up
-ip addr add @@INSTALL_IP@@/24 dev $dev
+ip addr add @@INSTALL_IP@@ dev $dev
if [ -n "@@INSTALL_GW@@" ] ; then
ip route add default via @@INSTALL_GW@@
fi