summaryrefslogtreecommitdiff
path: root/cloudinit/distros/debian.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/distros/debian.py')
-rw-r--r--cloudinit/distros/debian.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py
index db5890b1..89d8d28e 100644
--- a/cloudinit/distros/debian.py
+++ b/cloudinit/distros/debian.py
@@ -26,6 +26,8 @@ from cloudinit import distros
from cloudinit import helpers
from cloudinit import log as logging
from cloudinit import util
+from cloudinit import net
+from cloudinit.net import network_state
from cloudinit.distros.parsers.hostname import HostnameConf
@@ -76,6 +78,14 @@ class Distro(distros.Distro):
util.write_file(self.network_conf_fn, settings)
return ['all']
+ def _write_network_config(self, netconfig):
+ # TODO: THIS IS NOT TESTED
+ state = network_state.NetworkState()
+ state.load(netconfig)
+ state.parse_config()
+ net.render_network_state("/", state)
+ return ['all']
+
def _bring_up_interfaces(self, device_names):
use_all = False
for d in device_names: