diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-05-31 17:17:39 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-05-31 17:17:39 -0400 |
commit | 1b8a09389654a29af7e618b803bffaed0185e9e8 (patch) | |
tree | d1cbd33fd5bfbbe7658957f8f9bcfe1545dd530f /bin | |
parent | b16533714e02fc71d463ca73abee5c9f6237f115 (diff) | |
download | vyos-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-x | bin/cloud-init | 6 |
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: |