diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-11-17 17:54:07 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-11-17 17:59:40 +0200 |
commit | 3e2360d383d8e7503a8afe07291ab8c0b1182a14 (patch) | |
tree | 69725e6a523701dd297a7bc5d228dac43371b32d /src/eclat.c | |
parent | 966cc92ffcc7e5d070103d33f605bc1691229022 (diff) | |
download | eclat-3e2360d383d8e7503a8afe07291ab8c0b1182a14.tar.gz eclat-3e2360d383d8e7503a8afe07291ab8c0b1182a14.tar.bz2 |
Implement the terminate-instances command
* TODO: Update.
* doc/Makefile.inc: Add new files.
* doc/eclat-mkinst.1: Mention the terminate command.
* doc/eclat-terminate.1: New file.
* etc/Makefile.am: Add new files.
* etc/terminate-instances.fln: New file.
* src/eclat.c (cmdtab): Register new command.
* src/eclat.h (eclat_terminate_instances): New proto.
* src/startstop.c (eclat_terminate_instances): New function.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
* tests/terminate-instances.at: New test.
Diffstat (limited to 'src/eclat.c')
-rw-r--r-- | src/eclat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eclat.c b/src/eclat.c index 12b4dd1..26a8f9f 100644 --- a/src/eclat.c +++ b/src/eclat.c @@ -87,12 +87,15 @@ struct eclat_command cmdtab[] = { { "start", "start-instances", "StartInstances", eclat_start_instance, CMD_MOD }, { "stop", "stop-instances", "StopInstances", eclat_stop_instance, CMD_MOD }, { "reboot", "reboot-instances", "RebootInstances", eclat_reboot_instance, CMD_MOD }, + { "terminate", "terminate-instances", "TerminateInstances", + eclat_terminate_instances, CMD_MOD|CMD_DESTR }, + { "lsaddr", "describe-addresses", "DescribeAddresses", eclat_describe_addresses }, { "lstag", "describe-tags", "DescribeTags", eclat_describe_tags }, { "lsiattr", "describe-instance-attribute", "DescribeInstanceAttribute", eclat_describe_instance_attribute }, { "lsistat", "describe-instance-status", "DescribeInstanceStatus", @@ -202,12 +205,13 @@ struct eclat_command cmdtab[] = { eclat_describe_route_tables }, { "assocrtab", "associate-route-table", "AssociateRouteTable", eclat_associate_route_table, CMD_MOD }, { "disasrtab", "disassociate-route-table", "DisassociateRouteTable", eclat_disassociate_route_table, CMD_MOD }, { "route", NULL, NULL, eclat_route }, + }; size_t cmdcnt = sizeof(cmdtab) / sizeof(cmdtab[0]); static int cmdcmp(const void *a, const void *b) { |