summaryrefslogtreecommitdiff
path: root/cloudinit/distros/debian.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-19 18:40:20 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-09-19 18:40:20 -0700
commit6208fe41e4e73d1f14fd4afc152565c8908684a2 (patch)
treebf9d9d8bb98522a0f33dc69e03b245baa3d13234 /cloudinit/distros/debian.py
parent3912209cdb075b7af8f87c1e41170fd8614ca520 (diff)
downloadvyos-cloud-init-6208fe41e4e73d1f14fd4afc152565c8908684a2.tar.gz
vyos-cloud-init-6208fe41e4e73d1f14fd4afc152565c8908684a2.zip
Fix the ifup so that if a list of devices is provided
then each interface is brought up individually instead of using the '--all' which isn't on rhel. The default debian behavior will be to use this still though as it overrides the new bring up interfaces function for this case.
Diffstat (limited to 'cloudinit/distros/debian.py')
-rw-r--r--cloudinit/distros/debian.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py
index 5b4aa9f8..777c8530 100644
--- a/cloudinit/distros/debian.py
+++ b/cloudinit/distros/debian.py
@@ -56,6 +56,12 @@ class Distro(distros.Distro):
def _write_network(self, settings):
net_fn = self._paths.join(False, "/etc/network/interfaces")
util.write_file(net_fn, settings)
+ return []
+
+ def _bring_up_interfaces(self, device_names):
+ if not device_names:
+ device_names = ['--all']
+ return distros.Distro._bring_up_interfaces(self, device_names)
def set_hostname(self, hostname):
out_fn = self._paths.join(False, "/etc/hostname")