[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: PATCH:CIDR prefix on netconfig_dialog.py
- From: HARA Hiroshi <hhara miraclelinux com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: PATCH:CIDR prefix on netconfig_dialog.py
- Date: Tue, 03 Jul 2007 17:46:16 +0900
hi,
I found spelling mistake.
would you check the attached patch, please?
HARA Hiroshi wrote:
> Hi,
>
> Did you forget to remove these lines?
> It seems that if these lines is not removed,
> CIDR prefix can not be recognized .
>
> would you check attached patch, please?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
diff -u -r1.13 netconfig_dialog.py
--- iw/netconfig_dialog.py 25 Jun 2007 14:16:13 -0000 1.13
+++ iw/netconfig_dialog.py 3 Jul 2007 08:36:53 -0000
@@ -194,16 +194,6 @@
self._handleIPError(_("IP Address"), msg)
return
- try:
- network.sanityCheckIPString(ipv4nm)
- netdev.set(('netmask', ipv4nm))
- except network.IPMissing, msg:
- self._handleIPMissing(_("Netmask"), msg)
- return
- except network.IPError, msg:
- self._handleIPError(_("Netmask"), msg)
- return
-
if ipv4nm.find('.') == -1:
# user provided a CIDR prefix
try:
@@ -213,7 +203,7 @@
return
else:
ipv4nm = isys.prefix2netmask(int(ipv4nm))
- netdev.sef(('netmask', ipv4nm))
+ netdev.set(('netmask', ipv4nm))
except:
self._handleIPMissing(_("IPv4 Network Mask"), msg)
return
@@ -221,7 +211,7 @@
# user provided a dotted-quad netmask
try:
network.sanityCheckIPString(ipv4nm)
- netdev.sef(('netmask', ipv4nm))
+ netdev.set(('netmask', ipv4nm))
except network.IPMissing, msg:
self._handleIPMissing(_("IPv4 Network Mask"), msg)
return
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]