summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2014-07-02 11:42:25 -0400
committerDan Prince <dprince@redhat.com>2014-07-02 11:42:25 -0400
commit1426396789cb23f15f2a0466effb655af4645740 (patch)
treee3ce113fbb0ae6dc2518d55bbff770888cf82896
parenta101740ac3346ae3645dbbff4df8b8f333a59b67 (diff)
Update impl_eni so it ifup's the interfaces
We were shutting the interfaces down but not bringing them up again. This fixes that...
-rw-r--r--os_net_config/impl_eni.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/os_net_config/impl_eni.py b/os_net_config/impl_eni.py
index 56cb3bf..53d540c 100644
--- a/os_net_config/impl_eni.py
+++ b/os_net_config/impl_eni.py
@@ -106,8 +106,6 @@ class ENINetConfig(os_net_config.NetConfig):
self.bridges[bridge.name] = data
if bridge.routes:
self._addRoutes(bridge.name, bridge.routes)
- if bridge.routes:
- self._addRoutes(bridge.name, bridge.routes)
def _addRoutes(self, interface_name, routes=[]):
data = ""
@@ -140,3 +138,9 @@ class ENINetConfig(os_net_config.NetConfig):
check_exit_code=False)
utils.write_config(_network_config_path(), new_config)
+
+ for bridge in self.bridges.keys():
+ processutils.execute('/sbin/ifup', bridge)
+
+ for interface in self.interfaces.keys():
+ processutils.execute('/sbin/ifup', interface)