diff options
Diffstat (limited to 'src/mkvpc.c')
-rw-r--r-- | src/mkvpc.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/mkvpc.c b/src/mkvpc.c new file mode 100644 index 0000000..1c837ba --- /dev/null +++ b/src/mkvpc.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* This file is part of Eclat. | ||
2 | Copyright (C) 2015 Sergey Poznyakoff. | ||
3 | |||
4 | Eclat is free software; you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation; either version 3, or (at your option) | ||
7 | any later version. | ||
8 | |||
9 | Eclat is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ | ||
16 | |||
17 | #include "eclat.h" | ||
18 | #include "mkvpc-cl.h" | ||
19 | |||
20 | int | ||
21 | eclat_create_vpc(eclat_command_env_t *env, int argc, char **argv) | ||
22 | { | ||
23 | int i; | ||
24 | struct ec2_request *q = env->request; | ||
25 | |||
26 | parse_options(env, argc, argv, &i); | ||
27 | argc -= i; | ||
28 | argv += i; | ||
29 | if (argc != 1) | ||
30 | die(EX_USAGE, "wrong number of arguments"); | ||
31 | |||
32 | if (vpc_tenancy) | ||
33 | eclat_request_add_param(q, "InstanceTenancy", "true"); | ||
34 | eclat_request_add_param(q, "CidrBlock", argv[0]); | ||
35 | return 0; | ||
36 | } | ||
37 | |||
38 | |||