From 3d739b4eb3d9f5cfa73f8b8716fa6be5c4febe45 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 12 Jul 2006 18:43:27 +0000 Subject: Don't guess the gateway for consistency with loader's UI (#197578). --- textw/network_text.py | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'textw') 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) -- cgit