On 2007-03-05T17:25:44, Aníbal Monsalve Salazar <[EMAIL PROTECTED]> wrote:

> I created the following patch to fix this bug.
> 
> --- resources/OCF/IPaddr2.in~ 2007-01-12 13:57:08.000000000 +1100
> +++ resources/OCF/IPaddr2.in  2007-03-05 16:29:41.797530093 +1100
> @@ -380,7 +380,7 @@
>       ipaddr="$1"
>       iface="$2"
>  
> -     CMD="$IP2UTIL -f inet addr delete $ipaddr dev $iface"
> +     CMD="$IP2UTIL -f inet addr delete $ipaddr/32 dev $iface"
>  
>       ocf_log info "$CMD"
>       $CMD

No, it should not.

The IP might have been added with a different netmask. We want it to be
deleted regardless of the netmask.

The warning from ip should be ignored.

Alternatively, one should look up the netmask prior to deletion.


Sincerely,
    Lars

-- 
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to