summaryrefslogtreecommitdiff
path: root/cloudinit/net
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-22 03:50:28 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-22 03:50:28 -0400
commit9c0a2abc8d2c0e390745ddb163f5eae07b20d61d (patch)
tree910459878f970a42d9895758a5d59275916953ba /cloudinit/net
parent6ce134c1868478345471ba9166f1523f7d9bf19d (diff)
downloadvyos-cloud-init-9c0a2abc8d2c0e390745ddb163f5eae07b20d61d.tar.gz
vyos-cloud-init-9c0a2abc8d2c0e390745ddb163f5eae07b20d61d.zip
add code to invoke networking config
there is no data source that has a populated network_config() so at this point this doesn't do anything.
Diffstat (limited to 'cloudinit/net')
-rw-r--r--cloudinit/net/__init__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index 3cf99604..799cb97e 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -434,4 +434,21 @@ def render_network_state(target, network_state):
with open(netrules, 'w+') as f:
f.write(render_persistent_net(network_state))
+
+def is_disabled_cfg(cfg):
+ if not cfg or not isinstance(cfg, dict):
+ return False
+ return cfg.get('config') == "disabled"
+
+
+def generate_fallback_config():
+ # FIXME: add implementation here
+ return None
+
+
+def read_kernel_cmdline_config():
+ # FIXME: add implementation here
+ return None
+
+
# vi: ts=4 expandtab syntax=python