summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-10-03 18:28:18 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-10-03 18:28:18 +0000
commit8d0364df93d72b9dc1497e7044a48c5d01de6009 (patch)
treeb269771240b34e61e97c888743a9986bac5f1a6b /textw
parentbc01ad83ca869f7ef6cd2b4eb29e7cca5516e92e (diff)
downloadanaconda-8d0364df93d72b9dc1497e7044a48c5d01de6009.tar.gz
anaconda-8d0364df93d72b9dc1497e7044a48c5d01de6009.tar.xz
anaconda-8d0364df93d72b9dc1497e7044a48c5d01de6009.zip
* iw/network_gui.py (NetworkWindow): Use isys.netmask2prefix() and
isys.prefix2netmask() correctly. * textw/network_text.py (NetworkDeviceWindow): Use isys.prefix2netmask() correctly. * isys/isys.c (doPrefixToNetmask): Renamed to a shorter function name and it somewhat matches what the isys.py passthrough is called. We also take an int as the argument now and return a string. * isys/isys.py (netmask2prefix): Added this function to replace the borken inet_convertNetmaskToPrefix() function.
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index aa81ae974..2f573c511 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -343,7 +343,7 @@ class NetworkDeviceWindow:
valsgood = 0
break
else:
- val = isys.prefix2netmask(val)
+ val = isys.prefix2netmask(int(val))
except:
handleIPMissing(screen, t)
valsgood = 0