summaryrefslogtreecommitdiff
path: root/cloudinit/distros/debian.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-09 16:36:04 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-09 16:36:04 -0700
commita800da2371b85b2ece1a30de00f988035819c958 (patch)
tree4e21068cca1665758027bc413e093e8e125a388b /cloudinit/distros/debian.py
parent247fbc9ce9ac6f47d670a19f073bda0a1f746669 (diff)
downloadvyos-cloud-init-a800da2371b85b2ece1a30de00f988035819c958.tar.gz
vyos-cloud-init-a800da2371b85b2ece1a30de00f988035819c958.zip
Use the new renderer in the debian and stages files
Diffstat (limited to 'cloudinit/distros/debian.py')
-rw-r--r--cloudinit/distros/debian.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py
index 75ab340f..e8fc1df4 100644
--- a/cloudinit/distros/debian.py
+++ b/cloudinit/distros/debian.py
@@ -27,6 +27,7 @@ from cloudinit import helpers
from cloudinit import log as logging
from cloudinit import util
from cloudinit import net
+from cloudinit.net.distros import debian
from cloudinit.distros.parsers.hostname import HostnameConf
@@ -56,6 +57,7 @@ class Distro(distros.Distro):
# should only happen say once per instance...)
self._runner = helpers.Runners(paths)
self.osfamily = 'debian'
+ self.renderer = debian.Renderer()
def apply_locale(self, locale, out_fn=None):
if not out_fn:
@@ -80,10 +82,10 @@ class Distro(distros.Distro):
def _write_network_config(self, netconfig):
ns = net.parse_net_config_data(netconfig)
- net.render_network_state(target="/", network_state=ns,
- eni=self.network_conf_fn,
- links_prefix=self.links_prefix,
- netrules=None)
+ self.renderer.render_network_state(
+ target="/", network_state=ns,
+ eni=self.network_conf_fn, links_prefix=self.links_prefix,
+ netrules=None)
_maybe_remove_legacy_eth0()
return []