ctdb: Call out to ctdb_natgw helper from 11.natgw
authorMartin Schwenke <martin@meltin.net>
Mon, 14 Dec 2015 10:37:44 +0000 (21:37 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Jan 2016 06:18:25 +0000 (07:18 +0100)
commitbae9feacf2c3a1117f7b9001b95398142479e1c7
tree64703d2b4080d0f6ac6df3100b4b44a7c765dfa0
parentf1265f0ebec6a41eff38d4c3b3e5211015748c9c
ctdb: Call out to ctdb_natgw helper from 11.natgw

To keep this commit comprehensible, 11.natgw and the CTDB CLI tool are
temporarily inconsistent.  The tool will be made consistent in a
subsequent commit.

ctdb_natgw_slave_only() is reimplemented to check for the option in
the appropriate line in $CTDB_NATGW_NODES.

Update unit tests and documentation.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/11.natgw
ctdb/doc/ctdb.7.xml
ctdb/doc/ctdbd.conf.5.xml
ctdb/tests/eventscripts/11.natgw.041.sh
ctdb/tests/eventscripts/11.natgw.042.sh
ctdb/tests/eventscripts/stubs/ctdb
ctdb/tests/eventscripts/stubs/ctdb_natgw [new file with mode: 0755]