summaryrefslogtreecommitdiff
path: root/cloudinit/stages.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r--cloudinit/stages.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index f164d6f6..211d2286 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -632,6 +632,16 @@ class Init(object):
LOG.info("network config is disabled by %s", src)
return
+ try:
+ LOG.debug("applying net config names for %s" % netcfg)
+ self.distro.apply_network_config_names(netcfg)
+ except Exception as e:
+ LOG.warn("Failed to rename devices: %s", e)
+
+ if not self.is_new_instance():
+ LOG.debug("not a new instance. network config is not applied.")
+ return
+
LOG.info("Applying network configuration from %s bringup=%s: %s",
src, bring_up, netcfg)
try: