summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-11-28 21:23:43 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-11-28 21:23:43 +0000
commitab6ecdc1ed7075632325bbf496cabe7cdc83570e (patch)
tree1af05c253383d2cc2b86e9c794398195dcd0a786 /textw
parent345caabe67c7e3016086ac6686636260ce50e8f6 (diff)
downloadanaconda-ab6ecdc1ed7075632325bbf496cabe7cdc83570e.tar.gz
anaconda-ab6ecdc1ed7075632325bbf496cabe7cdc83570e.tar.xz
anaconda-ab6ecdc1ed7075632325bbf496cabe7cdc83570e.zip
All hail the United States Navy. This bug report came from them as they were trying to set up an all-IPv6 network with FC6 systems. They are actually using IPv6. Go figure.
Anyways, we only do broadcast and network address calculation when IPv4 is enabled.
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 876bbc1a6..3a5026743 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -392,13 +392,14 @@ class NetworkDeviceWindow:
if valsgood == 0:
continue
- try:
- (net, bc) = isys.inet_calcNetBroad (tmpvals['ipaddr'],
- tmpvals['netmask'])
- except Exception, e:
- print e
- handleBroadCastError()
- valsgood = 0
+ if self.ipv4Cb.selected():
+ try:
+ (net, bc) = isys.inet_calcNetBroad (tmpvals['ipaddr'],
+ tmpvals['netmask'])
+ except Exception, e:
+ print e
+ handleBroadCastError()
+ valsgood = 0
if not valsgood:
continue
@@ -421,7 +422,8 @@ class NetworkDeviceWindow:
else:
dev.set((t, entrys[t].value()))
- dev.set(('network', net), ('broadcast', bc))
+ if self.ipv4Cb.selected():
+ dev.set(('network', net), ('broadcast', bc))
break