diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-01-22 12:04:39 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-01-22 12:04:39 -0800 |
commit | 31ece5e92797bf20141878de5dd7cd91559cb336 (patch) | |
tree | 3d3d96b0ce04a69e89174cf6f505464c3aa15dfd /cloudinit/distros/sles.py | |
parent | e26ac6b63072f3217de2fc9214584e61682cd211 (diff) | |
download | vyos-cloud-init-31ece5e92797bf20141878de5dd7cd91559cb336.tar.gz vyos-cloud-init-31ece5e92797bf20141878de5dd7cd91559cb336.zip |
Split net-parsing into own module
The ubuntu/debian networking file parsing function
really is more generic than just a rhel utility function
and can be used by others that want to use this functionality
for there own purposes (say in writing down a freebsd network
format instead) so moving this to its own module to encourage
its usage outside of rhel.
Diffstat (limited to 'cloudinit/distros/sles.py')
-rw-r--r-- | cloudinit/distros/sles.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/distros/sles.py b/cloudinit/distros/sles.py index f2ac4efc..239e51b5 100644 --- a/cloudinit/distros/sles.py +++ b/cloudinit/distros/sles.py @@ -26,7 +26,9 @@ from cloudinit import helpers from cloudinit import log as logging from cloudinit import util +from cloudinit.distros import net_util from cloudinit.distros import rhel_util + from cloudinit.settings import PER_INSTANCE LOG = logging.getLogger(__name__) @@ -54,7 +56,7 @@ class Distro(distros.Distro): def _write_network(self, settings): # Convert debian settings to ifcfg format - entries = rhel_util.translate_network(settings) + entries = net_util.translate_network(settings) LOG.debug("Translated ubuntu style network settings %s into %s", settings, entries) # Make the intermediate format as the suse format... |