-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tuomo Soini wrote:
> Aníbal Monsalve Salazar wrote:
>
>> The below message occurs on stderr when the IPaddr2 script which is part of
>> the
>> heartbeat package is stopped (IE removing a single IP address from an
>> interface).
>> It seems that on start it adds /32 to the end of the address, so it needs to
>> do
>> the same on stop.
> So this patch is wrong. More changes are needed. I'll do proper patch.
Proposed patch attached.
- --
Tuomo Soini <[EMAIL PROTECTED]>
Linux and network services
+358 40 5240030
Foobar Oy <http://foobar.fi/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFF68/ITlrZKzwul1ERAlfJAJ9b1ekD5Ug8KRQz+fh3cxd6Uy9iewCgqjEI
WV8KCKrjBT/2OZd7nr/yRL0=
=x4v4
-----END PGP SIGNATURE-----
--- heartbeat-2.0.8/resources/OCF/IPaddr2.in.ifacedel 2007-01-12 04:57:08.000000000 +0200
+++ heartbeat-2.0.8/resources/OCF/IPaddr2.in 2007-03-05 09:33:27.000000000 +0200
@@ -379,8 +379,9 @@
delete_interface () {
ipaddr="$1"
iface="$2"
+ netmask="$3"
- CMD="$IP2UTIL -f inet addr delete $ipaddr dev $iface"
+ CMD="$IP2UTIL -f inet addr delete $ipaddr/$netmask dev $iface"
ocf_log info "$CMD"
$CMD
@@ -482,7 +483,7 @@
ocf_log err "Could not save conflicting loopback $ifname." \
"it will not be restored."
fi
- delete_interface "$ipaddr" "$ifname"
+ delete_interface "$ipaddr" "$ifname" "$netmask"
# Forcibly remove the route (if it exists) to the loopback.
delete_route "$ipaddr" "$ifname"
}
@@ -678,7 +679,7 @@
fi
if [ "$ip_del_if" = "yes" ]; then
- delete_interface $BASEIP $NIC
+ delete_interface $BASEIP $NIC $NETMASK
if [ $? -ne 0 ]; then
exit $OCF_ERR_GENERIC
fi
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/