diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-24 20:17:10 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-09-24 20:17:10 -0400 |
commit | 314530b519814af4b19b4f7cbcb9a35a6cd68e2d (patch) | |
tree | 50351bd64ecb401adde972bc47d1d7b28de7ad0f /cloudinit/distros/rhel.py | |
parent | 70cc7536f45a8d7052617ad88e2816291db0a309 (diff) | |
parent | e055c795581c2846aa6ae128de8cfd0b2c5d3f32 (diff) | |
download | vyos-cloud-init-314530b519814af4b19b4f7cbcb9a35a6cd68e2d.tar.gz vyos-cloud-init-314530b519814af4b19b4f7cbcb9a35a6cd68e2d.zip |
handle ifup on RH distros by iterating over 'ifup devname'
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.py | 2 |
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') |