diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-10-03 20:24:38 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-10-03 20:24:38 +0000 |
commit | d24c4410ace27384c7dd0f532f2f271b969f02b8 (patch) | |
tree | bdbf8e4379b9ef775668976b4a0d1dc515279812 /textw | |
parent | 1e752ea76185148825ba3984e543246b94a8f545 (diff) | |
download | anaconda-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')
-rw-r--r-- | textw/network_text.py | 6 |
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: |