From 20f088d3b068f8de6b5f3b52baa841db93fb8dc7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 26 Sep 2012 21:28:58 +0000 Subject: [PATCH] deployment: adjust vlan-raw-device on-the-fly during deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hey yak, don't move! ٩(͡๏̯ ͡๏)۶ From: Michael Prokop --- deployment.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deployment.sh b/deployment.sh index 4c64890..fae5573 100755 --- a/deployment.sh +++ b/deployment.sh @@ -873,6 +873,13 @@ if "$RETRIEVE_MGMT_CONFIG" ; then # make sure we can access the management system which might be reachable # through a specific VLAN only ip link set dev "$INTERNAL_DEV" down # avoid conflicts with VLAN device(s) + + # vlan-raw-device b0 doesn't exist in the live environment, if we don't + # adjust it accordingly for our environment the vlan device(s) can't be + # brought up + # note: we do NOT modify the /e/n/i file from $TARGET here by intention + sed -i "s/vlan-raw-device .*/vlan-raw-device eth0/" /etc/network/interfaces + for interface in $(awk '/^auto vlan/ {print $2}' /etc/network/interfaces) ; do echo "Bringing up VLAN interface $interface" ifup "$interface"