summaryrefslogtreecommitdiff
path: root/cloudinit/distros/sles.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-01-23 14:06:46 -0500
committerScott Moser <smoser@ubuntu.com>2014-01-23 14:06:46 -0500
commit131ff5e3955ac489d68330034cee044a4ca9d6f0 (patch)
tree243bb12df4736d99bfa57cff9800f46fa086d784 /cloudinit/distros/sles.py
parent84514cdff8ff025df052fe6301d2a7ed751d7d61 (diff)
parentc0ee33fc1d70b272a96430def658afd6f1867afa (diff)
downloadvyos-cloud-init-131ff5e3955ac489d68330034cee044a4ca9d6f0.tar.gz
vyos-cloud-init-131ff5e3955ac489d68330034cee044a4ca9d6f0.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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/sles.py b/cloudinit/distros/sles.py
index f2ac4efc..9788a1ba 100644
--- a/cloudinit/distros/sles.py
+++ b/cloudinit/distros/sles.py
@@ -26,6 +26,7 @@ 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
@@ -54,7 +55,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...