When we release an ip, get the interface name from the kernel
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 20 Jun 2012 00:08:11 +0000 (10:08 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 20 Jun 2012 05:11:56 +0000 (15:11 +1000)
commitc7e648c2d11f9785f2493a3dd67567a635633489
treefd43975efaeb61f2b2384b314204cd154e23802a
parentd21337a0fbe18fae7d8261e9b867d269ce0381ad
When we release an ip, get the interface name from the kernel

instead of using the interface where ctdb thinks the ip is hosted at.
The difference is that this now allows us to handle cases where we want to release an ip   but ctdbd does not know which interface the ip is assigned on.
(user has used 'ip addr add...'  and manually assigned an ip to the wrong interface)

(This used to be ctdb commit c6bf22ba5c01001b7febed73dd16a03bd3fd2bed)
ctdb/server/ctdb_takeover.c