~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/nosdn/cloud-sh-odl/lxc-network.sh

  • Committer: Narinder Gupta
  • Date: 2015-12-05 01:38:59 UTC
  • Revision ID: git-v1:6c7fc201c56648de9622dffc48a3f47e81de9465
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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
DEBIAN_FRONTEND=noninteractive apt-get -qy -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install lxc < /dev/null
 
4
 
 
5
sed -e 's/^USE_LXC_BRIDGE="true"/USE_LXC_BRIDGE="false"/' -i /etc/default/lxc
 
6
service lxc-net restart
 
7
 
 
8
ifdown eth0
 
9
mv /etc/network/interfaces.d/eth0.cfg /etc/network/interfaces.d/eth0.cfg.bak
 
10
cat <<-"EOF" > /etc/network/interfaces.d/bridge.cfg
 
11
        auto eth0
 
12
        iface eth0 inet manual
 
13
 
 
14
        auto lxcbr0
 
15
        iface lxcbr0 inet dhcp
 
16
            bridge_ports eth0
 
17
        EOF
 
18
ifup eth0 lxcbr0