summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-05-31 17:17:39 -0400
committerScott Moser <smoser@ubuntu.com>2016-05-31 17:17:39 -0400
commit1b8a09389654a29af7e618b803bffaed0185e9e8 (patch)
treed1cbd33fd5bfbbe7658957f8f9bcfe1545dd530f /bin
parentb16533714e02fc71d463ca73abee5c9f6237f115 (diff)
downloadvyos-cloud-init-1b8a09389654a29af7e618b803bffaed0185e9e8.tar.gz
vyos-cloud-init-1b8a09389654a29af7e618b803bffaed0185e9e8.zip
add renaming code for renaming interfaces
currently does not work in lxc https://github.com/lxc/lxd/issues/2063
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cloud-init6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index 29e9b521..21c3a684 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -280,11 +280,7 @@ def main_init(name, args):
LOG.debug("[%s] %s will now be targeting instance id: %s. new=%s",
mode, name, iid, init.is_new_instance())
- if init.is_new_instance():
- # on new instance, apply network config.
- # in network mode 'bring_up' must be passed in as the OS
- # has already brought up networking.
- init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
+ init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
if mode == sources.DSMODE_LOCAL:
if init.datasource.dsmode != mode: