summaryrefslogtreecommitdiffstats
path: root/charms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh
diff options
context:
space:
mode:
authorStuart Mackie <wsmackie@juniper.net>2017-03-23 06:19:54 -0700
committerStuart Mackie <wsmackie@juniper.net>2017-03-23 06:19:54 -0700
commit88df88a19674ccc0017836941b8ee32eaadf19fb (patch)
treef930c90f75846ec8d8e33cf27325ff8fafc85d5c /charms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh
parent9f50a40437477432a21b326b15c343ca6b8fe516 (diff)
Deleted charms with wrong license. Will source them differently in future.
Change-Id: I0fc99ea03c6b6ca4701e63793cb2be60e56c7588 Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
Diffstat (limited to 'charms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh')
-rwxr-xr-xcharms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/charms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh b/charms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh
deleted file mode 100755
index d9a9ec1..0000000
--- a/charms/trusty/neutron-contrail/scripts/remove-juju-bridge.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh -e
-#
-# Script used to remove Juju LXC bridge on MAAS systems
-
-if [ ! -e /sys/class/net/juju-br0 ]; then
- exit 0
-fi
-
-interface=$(find /sys/class/net/juju-br0/brif | sed -n -e '2p' | xargs basename)
-
-ifdown --force $interface juju-br0; sleep 5
-cp interfaces /etc/network
-cat <<-EOF >> /etc/network/interfaces
- auto $interface
- iface $interface inet dhcp
- EOF
-ifup $interface