summaryrefslogtreecommitdiffstats
path: root/textw/network_text.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-10-03 20:24:38 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-10-03 20:24:38 +0000
commitd24c4410ace27384c7dd0f532f2f271b969f02b8 (patch)
treebdbf8e4379b9ef775668976b4a0d1dc515279812 /textw/network_text.py
parent1e752ea76185148825ba3984e543246b94a8f545 (diff)
downloadanaconda-d24c4410ace27384c7dd0f532f2f271b969f02b8.tar.gz
anaconda-d24c4410ace27384c7dd0f532f2f271b969f02b8.tar.xz
anaconda-d24c4410ace27384c7dd0f532f2f271b969f02b8.zip
* isys/isys.py (inet_calcNetBroad): Umm, use ntohl() so it works on all
platforms. * iw/network_gui.py (NetworkWindow.handleBroadCastError): Tell users the IPv4 information given is invalid, since this error message will occur when calculating the network and broadcast address using the IPv4 ip address and netmask. * textw/network_text.py (handleBroadCastError): Add missing error handling function for network and broadcast address calculation.
Diffstat (limited to 'textw/network_text.py')
-rw-r--r--textw/network_text.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 2f573c511..a1b13436f 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -50,6 +50,10 @@ def handleIPMissing(screen, field):
_("A value is required for the field \"%s\".")
% (newfield,), buttons = [ _("OK") ])
+def handleBroadCastError(screen):
+ ButtonChoiceWindow(screen, _("Error With Data"),
+ _("The IPv4 information you have entered is invalid."))
+
class NetworkDeviceWindow:
def runScreen(self, screen, net, dev, showonboot=1):
bootproto = dev.get('bootproto').lower()
@@ -384,7 +388,7 @@ class NetworkDeviceWindow:
tmpvals['netmask'])
except Exception, e:
print e
- self.handleBroadCastError()
+ handleBroadCastError()
valsgood = 0
if not valsgood: