summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
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":