diff options
author | Martin Schwenke <martin@meltin.net> | 2017-08-30 14:48:19 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-09-01 00:13:06 +0200 |
commit | d6b77c3033ac9445d76b0f2fdd8ab661d01f21cb (patch) | |
tree | 3bb3147e23d1b3a428d2e2185ca2b851852a203b /ctdb/tools | |
parent | ef46d352e4e6c41d47c3e41394428e1e88c1ead5 (diff) | |
download | samba-d6b77c3033ac9445d76b0f2fdd8ab661d01f21cb.tar.gz |
ctdb-tools: Remove broken natgwlist command
The replacement was documented for Samba 4.5, so this is not worth fixing.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tools')
-rw-r--r-- | ctdb/tools/ctdb.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 44c067aa565..f6ba758a1d2 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -4658,33 +4658,6 @@ static int control_natgw(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, argc, argv); } -static int control_natgwlist(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, - int argc, const char **argv) -{ - char *t, *natgw_helper = NULL; - const char *cmd_argv[] = { "natgwlist", NULL }; - - if (argc != 0) { - usage("natgwlist"); - } - - t = getenv("CTDB_NATGW_HELPER"); - if (t != NULL) { - natgw_helper = talloc_strdup(mem_ctx, t); - } else { - natgw_helper = talloc_asprintf(mem_ctx, "%s/ctdb_natgw", - CTDB_HELPER_BINDIR); - } - - if (natgw_helper == NULL) { - fprintf(stderr, "Unable to set NAT gateway helper\n"); - return 1; - } - - return run_helper(mem_ctx, "NAT gateway helper", natgw_helper, - 1, cmd_argv); -} - /* * Find the PNN of the current node * discover the pnn by loading the nodes file and try to bind @@ -6058,8 +6031,6 @@ static const struct ctdb_cmd { "[init|setup|startup|monitor|takeip|releaseip|ipreallocated]" }, { "natgw", control_natgw, false, false, "show natgw configuration", "master|list|status" }, - { "natgwlist", control_natgwlist, false, false, - "show the nodes belonging to this natgw configuration", NULL }, { "getreclock", control_getreclock, false, true, "get recovery lock file", NULL }, { "setlmasterrole", control_setlmasterrole, false, true, |