Eventscripts: 10.interface should list configured interfaces
authorMartin Schwenke <martin@meltin.net>
Fri, 16 Nov 2012 09:21:15 +0000 (20:21 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 19 Nov 2012 04:54:50 +0000 (15:54 +1100)
commit8fad7670f1b6a0d87b276f5b59841bc819e80ab9
tree0a7a3a23638842c3e900187a928eb864e8238664
parent0f1bcebc80330b6bb1ab4229ede6f0d3ab614709
Eventscripts: 10.interface should list configured interfaces

The current code lists available interfaces.  If IPs are configured in
some other way than the public addresses file (e.g. ctdb addip) and their
interfaces default to being marked down then, since down interfaces are
not available, these interfaces can never be marked up.

The configured interfaces should be listed instead.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit d8f010355b715e49709836e057a5d0f110919897)
ctdb/config/events.d/10.interface