Remove ppa and fix up networking a bit more

Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
Chuck Short 2015-02-02 10:26:01 -05:00
parent 618b0b9c6d
commit e18482dbe1
2 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,6 @@ LXC_DIR=$DEST/python2-lxc
function configure_lxd {
install_package python-software-properties
sudo apt-add-repository -y ppa:ubuntu-lxc/lxd-daily
sudo apt-add-repository -y ppa:ubuntu-lxc/stable
apt_get update
install_package golang

View File

@ -100,6 +100,9 @@ class LXDOpenVswitchDriver(object):
linux_net.delete_ovs_vif_port(self._get_bridge_name(vif),
v2_name)
if linux_net.device_exists(v2_name):
utils.execute('ip', 'link', 'set', v2_name, 'down',
run_as_root=True)
except processutils.ProcessExecutionError:
LOG.exception(_("Failed while unplugging vif"),
instance=instance)