aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-27 02:25:14 +0000
committerGerrit Code Review <review@openstack.org>2017-06-27 02:25:14 +0000
commit03d3a5dea1b70c62d585dd6de5e3f9c04345e58b (patch)
tree7e22874692c56825d4d8a85534e4740b34495562 /os_net_config/impl_ifcfg.py
parent187c1e66d4341e6c1fad308ca4d17d4d5026f61a (diff)
parent5c840c4941d8401ee3c2d15c9a6cfb4f6a074deb (diff)
Merge "Continue bringing up interfaces even if one fails"
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r--os_net_config/impl_ifcfg.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py
index 997b695..f215378 100644
--- a/os_net_config/impl_ifcfg.py
+++ b/os_net_config/impl_ifcfg.py
@@ -1069,4 +1069,11 @@ class IfcfgNetConfig(os_net_config.NetConfig):
logger.info('Updating VPP mapping')
utils.update_vpp_mapping(vpp_interfaces)
+ if self.errors:
+ message = 'Failure(s) occurred when applying configuration'
+ logger.error(message)
+ for e in self.errors:
+ logger.error('stdout: %s, stderr: %s', e.stdout, e.stderr)
+ raise os_net_config.ConfigurationError(message)
+
return update_files