summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-01-06 23:37:50 +0000
committerJeremy Katz <katzj@redhat.com>2004-01-06 23:37:50 +0000
commitc2705387272baa56829b9236ee095390119eb36a (patch)
tree93648fda09f6f1976bfbd1d7cb8a9440af4647ae /network.py
parenta417b6e2edac5605f284697460be59bc587b5b0d (diff)
downloadanaconda-c2705387272baa56829b9236ee095390119eb36a.tar.gz
anaconda-c2705387272baa56829b9236ee095390119eb36a.tar.xz
anaconda-c2705387272baa56829b9236ee095390119eb36a.zip
add dhcp class id support (#107946). requires pump >= 0.8.20
Diffstat (limited to 'network.py')
-rw-r--r--network.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/network.py b/network.py
index 28b3dada9..f861db9d1 100644
--- a/network.py
+++ b/network.py
@@ -282,7 +282,7 @@ class Network:
for dev in self.netdevices.values():
if (dev.get('bootproto') == "dhcp" and
dev.get('onboot') == "yes"):
- ret = isys.pumpNetDevice(dev.get('device'))
+ ret = isys.pumpNetDevice(dev.get('device'), dev.get('dhcpclass'))
if ret is None:
continue
myns = ret
@@ -348,6 +348,8 @@ class Network:
f.write(" --onboot no")
if dev.get('bootproto') == 'dhcp':
f.write(" --bootproto dhcp")
+ if dev.get('dhcpclass'):
+ f.write(" --class %s" % dev.get('dhcpclass'))
if self.overrideDHCPhostname:
if (self.hostname and
self.hostname != "localhost.localdomain"):
@@ -389,6 +391,8 @@ class Network:
if (dev.get('bootproto') == 'dhcp' and self.hostname and
self.overrideDHCPhostname):
f.write("DHCP_HOSTNAME=%s\n" %(self.hostname,))
+ if dev.get('dhcpclass'):
+ f.write("DHCP_CLASSID=%s\n" % dev.get('dhcpclass'))
f.close()