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 /cloudinit/distros/__init__.py | |
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 'cloudinit/distros/__init__.py')
-rw-r--r-- | cloudinit/distros/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index 3bfbc484..5c29c804 100644 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -31,6 +31,7 @@ import stat from cloudinit import importer from cloudinit import log as logging +from cloudinit import net from cloudinit import ssh_util from cloudinit import type_utils from cloudinit import util @@ -145,6 +146,9 @@ class Distro(object): return self._bring_up_interfaces(dev_names) return False + def apply_network_config_names(self, netconfig): + net.apply_network_config_names(netconfig) + @abc.abstractmethod def apply_locale(self, locale, out_fn=None): raise NotImplementedError() |