summaryrefslogtreecommitdiff
path: root/cloudinit/distros/rhel.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-25 16:59:02 -0400
committerScott Moser <smoser@ubuntu.com>2012-09-25 16:59:02 -0400
commit317f442445fc40a666e9566e1f2739324cc99a2e (patch)
treeeb1db56e44d7231f84eb2f4502d18d93adc18709 /cloudinit/distros/rhel.py
parent67e7d9c0280c3204cf503113d9dca769399eefc9 (diff)
parent94ff94e299257d22c0f45f980ce1a24b569b0b61 (diff)
downloadvyos-cloud-init-317f442445fc40a666e9566e1f2739324cc99a2e.tar.gz
vyos-cloud-init-317f442445fc40a666e9566e1f2739324cc99a2e.zip
add tests for netcfg code
Diffstat (limited to 'cloudinit/distros/rhel.py')
-rw-r--r--cloudinit/distros/rhel.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index fb4f07e1..bf3c18d2 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -206,6 +206,12 @@ class Distro(distros.Distro):
contents = []
return (exists, QuotingConfigObj(contents))
+ def _bring_up_interfaces(self, device_names):
+ if device_names and 'all' in device_names:
+ raise RuntimeError(('Distro %s can not translate '
+ 'the device name "all"') % (self.name))
+ return distros.Distro._bring_up_interfaces(self, device_names)
+
def set_timezone(self, tz):
tz_file = os.path.join("/usr/share/zoneinfo", tz)
if not os.path.isfile(tz_file):