aboutsummaryrefslogtreecommitdiff
path: root/src/eclat.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-11-19 00:17:50 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-11-19 00:17:50 +0200
commit1473a4487450b8c82f1774845dc8dbe94d5b61e1 (patch)
treef1e3d7624381ce6a50d577563cdd56f7b19c287c /src/eclat.c
parented8a63afa3482a2036fd134e056a446a408b6357 (diff)
downloadeclat-1473a4487450b8c82f1774845dc8dbe94d5b61e1.tar.gz
eclat-1473a4487450b8c82f1774845dc8dbe94d5b61e1.tar.bz2
Implement subnet commands
New commands: mksubnet, rmsubnet, lssubnet, setsubnetattr. * TODO: Update. * lib/libeclat.h (EC2_API_VERSION): Update. * src/Makefile.am: Add subnet.c. * src/subnet.c: New file. * src/eclat.c (cmdtab): Register new commands. * src/eclat.h: Add new prototypes.
Diffstat (limited to 'src/eclat.c')
-rw-r--r--src/eclat.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/eclat.c b/src/eclat.c
index faba64a..ae3b326 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -183,7 +183,15 @@ struct eclat_command cmdtab[] = {
{ "atigw", "attach-internet-gateway", "AttachInternetGateway",
eclat_attach_internet_gateway, CMD_MOD },
{ "deigw", "detach-internet-gateway", "DetachInternetGateway",
- eclat_detach_internet_gateway, CMD_MOD|CMD_DESTR },
+ eclat_detach_internet_gateway, CMD_MOD|CMD_DESTR },
+ { "mksubnet", "create-subnet", "CreateSubnet",
+ eclat_create_subnet, CMD_MOD },
+ { "lssubnet", "describe-subnets", "DescribeSubnets",
+ eclat_describe_subnets },
+ { "setsubnetattr", "modify-subnet-attribute", "ModifySubnetAttribute",
+ eclat_modify_subnet_attribute, CMD_MOD },
+ { "rmsubnet", "delete-subnet", "DeleteSubnet",
+ eclat_delete_subnet, CMD_MOD|CMD_DESTR },
};
size_t cmdcnt = sizeof(cmdtab) / sizeof(cmdtab[0]);

Return to:

Send suggestions and report system problems to the System administrator.