summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorDan Prince <dan.prince@rackspace.com>2011-04-08 16:01:24 +0000
committerTarmac <>2011-04-08 16:01:24 +0000
commit34c25b9dd7988878e3660a8c5dffdcbb79fe932b (patch)
tree45bdd21ea39918dfcc4829fe90ef9bd5d25c7ecf /nova
parent13d55f9b297740689b99d3c33c154c269a48121a (diff)
parent479c95b8e855c5f07b75883a1f55b4657e886a92 (diff)
Ignore errors when deleting the default route in the ensure_bridge function.
Diffstat (limited to 'nova')
-rw-r--r--nova/network/linux_net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py
index ed6c943c7..ec5579dee 100644
--- a/nova/network/linux_net.py
+++ b/nova/network/linux_net.py
@@ -503,7 +503,7 @@ def ensure_bridge(bridge, interface, net_attrs=None):
if fields and fields[0] == "0.0.0.0" and fields[-1] == interface:
gateway = fields[1]
_execute('sudo', 'route', 'del', 'default', 'gw', gateway,
- 'dev', interface)
+ 'dev', interface, check_exit_code=False)
out, err = _execute('sudo', 'ip', 'addr', 'show', 'dev', interface,
'scope', 'global')
for line in out.split("\n"):