summaryrefslogtreecommitdiff
path: root/cloudinit/distros/rhel.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/rhel.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/rhel.py')
-rw-r--r--cloudinit/distros/rhel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index ec4dc2cc..0e451b02 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -88,6 +88,7 @@ class Distro(distros.Distro):
# Make the intermediate format as the rhel format...
nameservers = []
searchservers = []
+ dev_names = entries.keys()
for (dev, info) in entries.iteritems():
net_fn = NETWORK_FN_TPL % (dev)
net_ro_fn = self._paths.join(True, net_fn)
@@ -127,6 +128,7 @@ class Distro(distros.Distro):
util.write_file(net_rw_fn, w_contents, 0644)
if nameservers or searchservers:
self._write_resolve(nameservers, searchservers)
+ return dev_names
def set_hostname(self, hostname):
out_fn = self._paths.join(False, '/etc/sysconfig/network')