summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-07-12 18:43:27 +0000
committerChris Lumens <clumens@redhat.com>2006-07-12 18:43:27 +0000
commit3d739b4eb3d9f5cfa73f8b8716fa6be5c4febe45 (patch)
treedd9d58f6615d1f00748ce9823091e51012e11c11 /textw
parenta749ce854c4c3605a2eb99b28042375be7467e0a (diff)
downloadanaconda-3d739b4eb3d9f5cfa73f8b8716fa6be5c4febe45.tar.gz
anaconda-3d739b4eb3d9f5cfa73f8b8716fa6be5c4febe45.tar.xz
anaconda-3d739b4eb3d9f5cfa73f8b8716fa6be5c4febe45.zip
Don't guess the gateway for consistency with loader's UI (#197578).
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 8fb911b0b..83b54df6a 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -232,23 +232,6 @@ class NetworkDeviceWindow:
return INSTALL_OK
class NetworkGlobalWindow:
- def getFirstGatewayGuess(self, devices):
- list = devices.keys()
- list.sort()
- for dev in list:
- thedev = devices[dev]
- bootproto = thedev.get("bootproto")
- if bootproto and bootproto == "dhcp":
- continue
- onboot = thedev.get("onboot")
- if onboot and onboot == "no":
- continue
- bcast = thedev.get("broadcast")
- if not bcast:
- continue
- return isys.inet_calcGateway(bcast)
- return ""
-
def __call__(self, screen, anaconda):
devices = anaconda.id.network.available()
if not devices:
@@ -263,12 +246,11 @@ class NetworkGlobalWindow:
thegrid.setField(Label(_("Gateway:")), 0, 0, anchorLeft = 1)
gwEntry = Entry(16)
- # if it's set already, use that... otherwise, get the first
- # non-dhcp and active device and use it to guess the gateway
+ # if it's set already, use that... otherwise, make them enter it
if anaconda.id.network.gateway:
gwEntry.set(anaconda.id.network.gateway)
else:
- gwEntry.set(self.getFirstGatewayGuess(devices))
+ gwEntry.set("")
thegrid.setField(gwEntry, 1, 0, padding = (1, 0, 0, 0))
thegrid.setField(Label(_("Primary DNS:")), 0, 1, anchorLeft = 1)