summaryrefslogtreecommitdiffstats
path: root/kickstart.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 /kickstart.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 'kickstart.py')
-rw-r--r--kickstart.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py
index b3bad114f..468e676e6 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -447,7 +447,8 @@ class KickstartBase(BaseInstallClass):
# nodns is only used by the loader
(args, extra) = isys.getopt(args, '',
[ 'bootproto=', 'ip=', 'netmask=', 'gateway=', 'nameserver=',
- 'nodns', 'device=', 'hostname=', 'ethtool=', 'onboot='])
+ 'nodns', 'device=', 'hostname=', 'ethtool=', 'onboot=',
+ 'dhcpclass='])
bootProto = "dhcp"
ip = None
netmask = ""
@@ -457,6 +458,7 @@ class KickstartBase(BaseInstallClass):
ethtool = ""
onboot = 1
device = None
+ dhcpclass = None
for n in args:
(str, arg) = n
if str == "--bootproto":
@@ -480,8 +482,10 @@ class KickstartBase(BaseInstallClass):
onboot = 0
else:
onboot = 1
+ elif str == "--class":
+ dhcpclass = arg
- self.setNetwork(id, bootProto, ip, netmask, ethtool, device=device, onboot=onboot)
+ self.setNetwork(id, bootProto, ip, netmask, ethtool, device=device, onboot=onboot, dhcpclass=dhcpclass)
if hostname != "":
self.setHostname(id, hostname, override = 1)
if nameserver != "":