diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2015-12-04 13:11:44 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2015-12-04 19:38:59 -0600 |
commit | 6c7fc201c56648de9622dffc48a3f47e81de9465 (patch) | |
tree | d2c9218d0da1a2f05a6058f1b0c0b83e89c49b84 /ci/nosdn/cloud-sh-odl/lxc-network.sh | |
parent | b4ee809c40d27d3323bb19b4edfd188ebd0535d6 (diff) |
modified to comment the use of juju-br0 as external network.
Added option to install neutron-openswitch without ODL.
consolidated source files to common as all sdn share the s
same source for openstack and it can be modified during deployment.
Change-Id: I1df7f5cd5d928d170bc6be6b32c3404dbcb5fda3
Diffstat (limited to 'ci/nosdn/cloud-sh-odl/lxc-network.sh')
-rwxr-xr-x | ci/nosdn/cloud-sh-odl/lxc-network.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ci/nosdn/cloud-sh-odl/lxc-network.sh b/ci/nosdn/cloud-sh-odl/lxc-network.sh new file mode 100755 index 00000000..5a65fa18 --- /dev/null +++ b/ci/nosdn/cloud-sh-odl/lxc-network.sh @@ -0,0 +1,18 @@ +#!/bin/sh -e + +DEBIAN_FRONTEND=noninteractive apt-get -qy -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install lxc < /dev/null + +sed -e 's/^USE_LXC_BRIDGE="true"/USE_LXC_BRIDGE="false"/' -i /etc/default/lxc +service lxc-net restart + +ifdown eth0 +mv /etc/network/interfaces.d/eth0.cfg /etc/network/interfaces.d/eth0.cfg.bak +cat <<-"EOF" > /etc/network/interfaces.d/bridge.cfg + auto eth0 + iface eth0 inet manual + + auto lxcbr0 + iface lxcbr0 inet dhcp + bridge_ports eth0 + EOF +ifup eth0 lxcbr0 |