ctdb-tools-ctdb: Add and use function filter_nodemap_by_natgw_nodes()
authorMartin Schwenke <martin@meltin.net>
Mon, 3 Mar 2014 00:41:32 +0000 (11:41 +1100)
committerAmitay Isaacs <amitay@samba.org>
Sun, 23 Mar 2014 03:20:14 +0000 (04:20 +0100)
commitba69742ccd822562ca2135d2466e09bf1216644b
treed4875c91357a9a2133ab8f451509fccfe52aa81e
parente728a35dc19c397cb17e1bf434401df25c35f337
ctdb-tools-ctdb: Add and use function filter_nodemap_by_natgw_nodes()

Add another filter function, like the ones for capabilities and flags
to, for filtering by NAT gateway nodes.  This makes the main
natgw_list function more readable.

Note that this drops the early filtering of disconnected nodes, so
they will now be listed in a NAT gateway group.  This makes sense.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ctdb.c