summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorbfox <bfox>2000-11-02 20:49:19 +0000
committerbfox <bfox>2000-11-02 20:49:19 +0000
commita96810ada41fff7ff6f8d9e6b07a4574f7f96546 (patch)
tree32f788dc55715cdffc02ac6cbd7e68aec3b3e098 /textw
parent9b78a5665654de0330c29b647535d7efccb1a436 (diff)
downloadanaconda-a96810ada41fff7ff6f8d9e6b07a4574f7f96546.tar.gz
anaconda-a96810ada41fff7ff6f8d9e6b07a4574f7f96546.tar.xz
anaconda-a96810ada41fff7ff6f8d9e6b07a4574f7f96546.zip
Bug #13332 - The text mode network screen now asks for primary, secondary, and ternary nameservers, so it is now congruent with the text installer.
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 190ab77bb..16f500223 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -12,7 +12,7 @@ class NetworkWindow:
else:
sense = FLAGS_RESET
- for n in self.ip, self.nm, self.gw, self.ns:
+ for n in self.ip, self.nm, self.gw, self.ns, self.ns2, self.ns3:
n.setFlags (FLAG_DISABLED, sense)
def calcNM (self):
@@ -65,11 +65,14 @@ class NetworkWindow:
isOn = (boot == "dhcp"))
firstg.setField (self.cb, 0, 0, anchorLeft = 1)
- secondg = Grid (2, 4)
+ secondg = Grid (2, 6)
secondg.setField (Label (_("IP address:")), 0, 0, anchorLeft = 1)
secondg.setField (Label (_("Netmask:")), 0, 1, anchorLeft = 1)
secondg.setField (Label (_("Default gateway (IP):")), 0, 2, anchorLeft = 1)
secondg.setField (Label (_("Primary nameserver:")), 0, 3, anchorLeft = 1)
+ secondg.setField (Label (_("Secondary nameserver:")), 0, 4, anchorLeft = 1)
+ secondg.setField (Label (_("Ternary nameserver:")), 0, 5, anchorLeft = 1)
+
self.ip = Entry (16)
self.ip.set (dev.get ("ipaddr"))
@@ -79,6 +82,10 @@ class NetworkWindow:
self.gw.set (todo.network.gateway)
self.ns = Entry (16)
self.ns.set (todo.network.primaryNS)
+ self.ns2 = Entry (16)
+ self.ns2.set (todo.network.secondaryNS)
+ self.ns3 = Entry (16)
+ self.ns3.set (todo.network.ternaryNS)
self.cb.setCallback (self.setsensitive)
self.ip.setCallback (self.calcNM)
@@ -88,6 +95,10 @@ class NetworkWindow:
secondg.setField (self.nm, 1, 1, (1, 0, 0, 0))
secondg.setField (self.gw, 1, 2, (1, 0, 0, 0))
secondg.setField (self.ns, 1, 3, (1, 0, 0, 0))
+ secondg.setField (self.ns2, 1, 4, (1, 0, 0, 0))
+ secondg.setField (self.ns3, 1, 5, (1, 0, 0, 0))
+
+
bb = ButtonBar (screen, ((_("OK"), "ok"), (_("Back"), "back")))
@@ -118,6 +129,9 @@ class NetworkWindow:
("network", network), ("broadcast", broadcast))
todo.network.gateway = self.gw.value ()
todo.network.primaryNS = self.ns.value ()
+ todo.network.secondaryNS = self.ns2.value()
+ todo.network.ternaryNS = self.ns3.value()
+
screen.popWindow()
break