aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.py
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2015-08-17 10:57:15 -0400
committerDan Prince <dprince@redhat.com>2015-08-17 10:57:15 -0400
commit5e48946bcc863bb8a5f19f1c96f11355ba84e96c (patch)
treeb9bff747d7284b43daa5fe3ced03613dbc62677a /os_net_config/impl_ifcfg.py
parent103b87aa82cfd298b664fe1314e987bd953ec20d (diff)
os-net-config: ensure ifup is called just once
This patch fixes an issue in the ifcfg provider implementation that caused interfaces to be started twice. This can cause failures if the interface uses DHCP and dhclient was already running. The child_members function was incorrectly adding the interface name to the child members set on key error. This patch removes that logic and simply ignores key errors. Change-Id: Ibe0e32bc09979bc68b92a722b2bfa383e77502a9 Closes-bug: #1485634
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r--os_net_config/impl_ifcfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py
index 99273bc..4cacbf8 100644
--- a/os_net_config/impl_ifcfg.py
+++ b/os_net_config/impl_ifcfg.py
@@ -62,7 +62,7 @@ class IfcfgNetConfig(os_net_config.NetConfig):
children.add(member)
children.update(self.child_members(member))
except KeyError:
- children.add(name)
+ pass
return children
def _add_common(self, base_opt):