summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-05-09 21:26:23 +0000
committerJeremy Katz <katzj@redhat.com>2002-05-09 21:26:23 +0000
commit344efbe832df0d9b7e013df23e01694cfafe0773 (patch)
tree99089ea79b928600e156468e3b32fc2a5b11b66c /network.py
parent701ab529fc4711a320f0dfe934cfc57cb2fdd103 (diff)
downloadanaconda-344efbe832df0d9b7e013df23e01694cfafe0773.tar.gz
anaconda-344efbe832df0d9b7e013df23e01694cfafe0773.tar.xz
anaconda-344efbe832df0d9b7e013df23e01694cfafe0773.zip
handle multiple network device configuration better from kickstart (#64108)
Diffstat (limited to 'network.py')
-rw-r--r--network.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/network.py b/network.py
index 977e85aab..3372697ec 100644
--- a/network.py
+++ b/network.py
@@ -132,6 +132,12 @@ class Network:
def setHostname(self, hn):
self.hostname = hn
+ def setDNS(self, ns):
+ self.primaryNS = ns
+
+ def setGateway(self, gw):
+ self.gateway = gw
+
def lookupHostname(self):
# can't look things up if they don't exist!
if not self.hostname or self.hostname == "localhost.localdomain":