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@gmail.com>
Wed, 26 Mar 2014 02:58:28 +0000 (13:58 +1100)
commit2bb78f289633922d37b69ba3665375e5c4f23a2a
tree74b220c29ff832ee19f0cc864ea736d3948b0858
parent560d998505b5b8d00913bb7f6275f75d6b4097e1
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>
(Imported from commit ba69742ccd822562ca2135d2466e09bf1216644b)
tools/ctdb.c