diff options
-rw-r--r-- | TODO | 18 | ||||
-rw-r--r-- | doc/Makefile.inc | 1 | ||||
-rw-r--r-- | etc/Makefile.am | 2 | ||||
-rw-r--r-- | etc/describe-vpc-attribute.fln | 20 | ||||
-rw-r--r-- | etc/describe-vpcs.fln | 22 | ||||
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/eclat.c | 20 | ||||
-rw-r--r-- | src/eclat.h | 19 | ||||
-rw-r--r-- | src/igw.c | 133 | ||||
-rw-r--r-- | src/lsinst.c | 1 | ||||
-rw-r--r-- | src/lsreg.c | 6 | ||||
-rw-r--r-- | src/lstag-cl.opt | 9 | ||||
-rw-r--r-- | src/lsvpc.c | 59 | ||||
-rw-r--r-- | src/mksg-cl.opt | 2 | ||||
-rw-r--r-- | src/mktags-cl.opt | 10 | ||||
-rw-r--r-- | src/mkvpc-cl.opt | 36 | ||||
-rw-r--r-- | src/mkvpc.c | 38 | ||||
-rw-r--r-- | src/rmvpc.c | 40 | ||||
-rw-r--r-- | src/util.c | 2 | ||||
-rw-r--r-- | src/vpcattr.c | 96 |
20 files changed, 528 insertions, 14 deletions
@@ -13,7 +13,7 @@ AssignPrivateIpAddresses - [ ] [ ] | |||
13 | AssociateAddress assocaddr [X] [X] | 13 | AssociateAddress assocaddr [X] [X] |
14 | AssociateDhcpOptions - [ ] [ ] | 14 | AssociateDhcpOptions - [ ] [ ] |
15 | AssociateRouteTable - [ ] [ ] | 15 | AssociateRouteTable - [ ] [ ] |
16 | AttachInternetGateway - [ ] [ ] | 16 | AttachInternetGateway atigw [X] [ ] |
17 | AttachNetworkInterface - [ ] [ ] | 17 | AttachNetworkInterface - [ ] [ ] |
18 | AttachVolume atvol [X] [X] | 18 | AttachVolume atvol [X] [X] |
19 | AttachVpnGateway - [ ] [ ] | 19 | AttachVpnGateway - [ ] [ ] |
@@ -32,7 +32,7 @@ CreateCustomerGateway - [ ] [ ] | |||
32 | CreateDhcpOptions - [ ] [ ] | 32 | CreateDhcpOptions - [ ] [ ] |
33 | CreateImage mkimg [X] [X] | 33 | CreateImage mkimg [X] [X] |
34 | CreateInstanceExportTask - [ ] [ ] | 34 | CreateInstanceExportTask - [ ] [ ] |
35 | CreateInternetGateway - [ ] [ ] | 35 | CreateInternetGateway mkigw [X] [ ] |
36 | CreateKeyPair - [ ] [ ] | 36 | CreateKeyPair - [ ] [ ] |
37 | CreateNetworkAcl - [ ] [ ] | 37 | CreateNetworkAcl - [ ] [ ] |
38 | CreateNetworkAclEntry - [ ] [ ] | 38 | CreateNetworkAclEntry - [ ] [ ] |
@@ -47,13 +47,13 @@ CreateSpotDatafeedSubscription - [ ] [ ] | |||
47 | CreateSubnet - [ ] [ ] | 47 | CreateSubnet - [ ] [ ] |
48 | CreateTags mktag [X] [X] | 48 | CreateTags mktag [X] [X] |
49 | CreateVolume mkvol [X] [X] | 49 | CreateVolume mkvol [X] [X] |
50 | CreateVpc - [ ] [ ] | 50 | CreateVpc mkvpc [X] [X] |
51 | CreateVpnConnection - [ ] [ ] | 51 | CreateVpnConnection - [ ] [ ] |
52 | CreateVpnConnectionRoute - [ ] [ ] | 52 | CreateVpnConnectionRoute - [ ] [ ] |
53 | CreateVpnGateway - [ ] [ ] | 53 | CreateVpnGateway - [ ] [ ] |
54 | DeleteCustomerGateway - [ ] [ ] | 54 | DeleteCustomerGateway - [ ] [ ] |
55 | DeleteDhcpOptions - [ ] [ ] | 55 | DeleteDhcpOptions - [ ] [ ] |
56 | DeleteInternetGateway - [ ] [ ] | 56 | DeleteInternetGateway rmigw [X] [ ] |
57 | DeleteKeyPair - [ ] [ ] | 57 | DeleteKeyPair - [ ] [ ] |
58 | DeleteNetworkAcl - [ ] [ ] | 58 | DeleteNetworkAcl - [ ] [ ] |
59 | DeleteNetworkAclEntry - [ ] [ ] | 59 | DeleteNetworkAclEntry - [ ] [ ] |
@@ -67,7 +67,7 @@ DeleteSpotDatafeedSubscription - [ ] [ ] | |||
67 | DeleteSubnet - [ ] [ ] | 67 | DeleteSubnet - [ ] [ ] |
68 | DeleteTags rmtag [X] [X] | 68 | DeleteTags rmtag [X] [X] |
69 | DeleteVolume rmvol [X] [X] | 69 | DeleteVolume rmvol [X] [X] |
70 | DeleteVpc - [ ] [ ] | 70 | DeleteVpc rmvpc [X] [ ] |
71 | DeleteVpnConnection - [ ] [ ] | 71 | DeleteVpnConnection - [ ] [ ] |
72 | DeleteVpnConnectionRoute - [ ] [ ] | 72 | DeleteVpnConnectionRoute - [ ] [ ] |
73 | DeleteVpnGateway - [ ] [ ] | 73 | DeleteVpnGateway - [ ] [ ] |
@@ -84,7 +84,7 @@ DescribeImages lsimg [X] [X] | |||
84 | DescribeInstanceAttribute lsiattr [X] [X] | 84 | DescribeInstanceAttribute lsiattr [X] [X] |
85 | DescribeInstances lsinst [X] [X] | 85 | DescribeInstances lsinst [X] [X] |
86 | DescribeInstanceStatus lsistat [X] [X] | 86 | DescribeInstanceStatus lsistat [X] [X] |
87 | DescribeInternetGateways - [ ] [ ] | 87 | DescribeInternetGateways lsigw [X] [ ] |
88 | DescribeKeyPairs - [ ] [ ] | 88 | DescribeKeyPairs - [ ] [ ] |
89 | DescribeNetworkAcls - [ ] [ ] | 89 | DescribeNetworkAcls - [ ] [ ] |
90 | DescribeNetworkInterfaceAttribute - [ ] [ ] | 90 | DescribeNetworkInterfaceAttribute - [ ] [ ] |
@@ -106,10 +106,11 @@ DescribeTags lstag [X] [X] | |||
106 | DescribeVolumes lsvol [X] [X] | 106 | DescribeVolumes lsvol [X] [X] |
107 | DescribeVolumeAttribute - [ ] [ ] | 107 | DescribeVolumeAttribute - [ ] [ ] |
108 | DescribeVolumeStatus - [ ] [ ] | 108 | DescribeVolumeStatus - [ ] [ ] |
109 | DescribeVpcs - [ ] [ ] | 109 | DescribeVpcAttribute lsvpcattr [X] [ ] |
110 | DescribeVpcs lsvpc [X] [ ] | ||
110 | DescribeVpnConnections - [ ] [ ] | 111 | DescribeVpnConnections - [ ] [ ] |
111 | DescribeVpnGateways - [ ] [ ] | 112 | DescribeVpnGateways - [ ] [ ] |
112 | DetachInternetGateway - [ ] [ ] | 113 | DetachInternetGateway deigw [X] [ ] |
113 | DetachNetworkInterface - [ ] [ ] | 114 | DetachNetworkInterface - [ ] [ ] |
114 | DetachVolume devol [X] [X] | 115 | DetachVolume devol [X] [X] |
115 | DetachVpnGateway - [ ] [ ] | 116 | DetachVpnGateway - [ ] [ ] |
@@ -128,6 +129,7 @@ ModifyInstanceAttribute setiattr [X] [X] | |||
128 | ModifyNetworkInterfaceAttribute - [ ] [ ] | 129 | ModifyNetworkInterfaceAttribute - [ ] [ ] |
129 | ModifySnapshotAttribute setsattr [X] [X] | 130 | ModifySnapshotAttribute setsattr [X] [X] |
130 | ModifyVolumeAttribute - [ ] [ ] | 131 | ModifyVolumeAttribute - [ ] [ ] |
132 | ModifyVpcAttribute setvpcattr [X] [ ] | ||
131 | MonitorInstances - [ ] [ ] | 133 | MonitorInstances - [ ] [ ] |
132 | PurchaseReservedInstancesOffering - [ ] [ ] | 134 | PurchaseReservedInstancesOffering - [ ] [ ] |
133 | RebootInstances reboot [X] [X] | 135 | RebootInstances reboot [X] [X] |
diff --git a/doc/Makefile.inc b/doc/Makefile.inc index 5885e21..9997bca 100644 --- a/doc/Makefile.inc +++ b/doc/Makefile.inc | |||
@@ -49,6 +49,7 @@ MANPAGES1=\ | |||
49 | eclat-mksnap.1\ | 49 | eclat-mksnap.1\ |
50 | eclat-mktag.1\ | 50 | eclat-mktag.1\ |
51 | eclat-mkvol.1\ | 51 | eclat-mkvol.1\ |
52 | eclat-mkvpc.1\ | ||
52 | eclat-reboot.1\ | 53 | eclat-reboot.1\ |
53 | eclat-rmaddr.1\ | 54 | eclat-rmaddr.1\ |
54 | eclat-rmsg.1\ | 55 | eclat-rmsg.1\ |
diff --git a/etc/Makefile.am b/etc/Makefile.am index 29ae900..10de3fd 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am | |||
@@ -27,6 +27,7 @@ FLNFILES=\ | |||
27 | create-snapshot.fln\ | 27 | create-snapshot.fln\ |
28 | create-tags.fln\ | 28 | create-tags.fln\ |
29 | create-volume.fln\ | 29 | create-volume.fln\ |
30 | create-vpc.fln\ | ||
30 | delete-security-group.fln\ | 31 | delete-security-group.fln\ |
31 | delete-snapshot.fln\ | 32 | delete-snapshot.fln\ |
32 | delete-tags.fln\ | 33 | delete-tags.fln\ |
@@ -45,6 +46,7 @@ FLNFILES=\ | |||
45 | describe-snapshots.fln\ | 46 | describe-snapshots.fln\ |
46 | describe-tags.fln\ | 47 | describe-tags.fln\ |
47 | describe-volumes.fln\ | 48 | describe-volumes.fln\ |
49 | describe-vpcs.fln\ | ||
48 | detach-volume.fln\ | 50 | detach-volume.fln\ |
49 | disassociate-address.fln\ | 51 | disassociate-address.fln\ |
50 | get-console-output.fln\ | 52 | get-console-output.fln\ |
diff --git a/etc/describe-vpc-attribute.fln b/etc/describe-vpc-attribute.fln new file mode 100644 index 0000000..c96f624 --- /dev/null +++ b/etc/describe-vpc-attribute.fln | |||
@@ -0,0 +1,20 @@ | |||
1 | /* This file is part of Eclat. | ||
2 | Copyright (C) 2012-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 | if (.DescribeVpcAttributeResponse.enableDnsHostnames || | ||
18 | .DescribeVpcAttributeResponse.enableDnsSupport) { | ||
19 | print(last.value,"\n"); | ||
20 | } \ No newline at end of file | ||
diff --git a/etc/describe-vpcs.fln b/etc/describe-vpcs.fln new file mode 100644 index 0000000..e53e2fc --- /dev/null +++ b/etc/describe-vpcs.fln | |||
@@ -0,0 +1,22 @@ | |||
1 | /* This file is part of Eclat. | ||
2 | Copyright (C) 2012-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 | if (.DescribeVpcsResponse.vpcSet) { | ||
18 | for (var in .DescribeVpcsResponse.vpcSet.item) { | ||
19 | print(var.vpcId, "\t", var.cidrBlock, "\t", var.dhcpOptionsId, "\t", | ||
20 | var.state, "\t", var.isDefault, "\n"); | ||
21 | } | ||
22 | } | ||
diff --git a/src/Makefile.am b/src/Makefile.am index 7ec7c66..d46ad42 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -34,6 +34,7 @@ eclat_SOURCES=\ | |||
34 | eclat.h\ | 34 | eclat.h\ |
35 | genericcl.c\ | 35 | genericcl.c\ |
36 | getconout.c\ | 36 | getconout.c\ |
37 | igw.c\ | ||
37 | io.c\ | 38 | io.c\ |
38 | lsaddr.c\ | 39 | lsaddr.c\ |
39 | lsattr.c\ | 40 | lsattr.c\ |
@@ -48,6 +49,7 @@ eclat_SOURCES=\ | |||
48 | lssnap.c\ | 49 | lssnap.c\ |
49 | lstag.c\ | 50 | lstag.c\ |
50 | lsvol.c\ | 51 | lsvol.c\ |
52 | lsvpc.c\ | ||
51 | lszon.c\ | 53 | lszon.c\ |
52 | mkimg.c\ | 54 | mkimg.c\ |
53 | mkinst.c\ | 55 | mkinst.c\ |
@@ -55,16 +57,19 @@ eclat_SOURCES=\ | |||