From ae76159855975aba51ab9ae74230ca9e859a4df2 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Thu, 23 Oct 2014 13:06:31 +0200 Subject: [PATCH] MT#9567 Add web_* types to eth0\eth[1|2] interfaces for Vagrant VMs Change-Id: I611dd7f6399f85fc732f27c1e84c7beac50bac6b --- deployment.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deployment.sh b/deployment.sh index 3b50771..1ab06e3 100755 --- a/deployment.sh +++ b/deployment.sh @@ -2272,6 +2272,16 @@ open(my $fh, ">", "$outputfile") or die "Could not open $outputfile for writing" print $fh $yaml->write_string() or die "Could not write YAML to $outputfile"; EOF + # MT#9567 Enable web_ext and web_int on all Vagrant interfaces + cat << EOF | grml-chroot $TARGET /bin/bash + if "$PRO_EDITION" ; then + ngcp-network --host=sp1 --set-interface=eth0 --set-interface=eth2 --type=web_ext --type=web_int + ngcp-network --host=sp2 --set-interface=eth0 --set-interface=eth2 --type=web_ext --type=web_int + else + ngcp-network --host=self --set-interface=eth0 --set-interface=eth1 --type=web_ext --type=web_int + fi +EOF + # record configuration file changes chroot "$TARGET" etckeeper commit "Snapshot after enabling VM defaults [$(date)]" || true chroot "$TARGET" bash -c "cd /etc/ngcp-config ; git commit -a -m \"Snapshot after enabling VM defaults [$(date)]\" || true"