aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-09-28 17:17:01 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-09-28 17:17:01 +0300
commit2b6198883155009bbf22e984daff8a970d7d52d1 (patch)
tree3e4a71eb15bb75122de7c83f69b26229d1e7f442 /etc
parent4d6c1e56790f61be15501977e970753a6088104f (diff)
downloadeclat-2b6198883155009bbf22e984daff8a970d7d52d1.tar.gz
eclat-2b6198883155009bbf22e984daff8a970d7d52d1.tar.bz2
Initial implementation of associate/dissociate address requests.
* etc/Makefile.am: Add new files. * etc/associate-address.fln: New file. * etc/disassociate-address.fln: New file. * lib/forlan.c (eval_expr): Fix boolean NOT. * src/Makefile.am: Add new files. * src/asscaddr.c: New file. * src/dscrtags.c (eclat_describe_tags): Remove unused variables. * src/eclat.c (cmdtab): Register new commands. * src/eclat.h (eclat_associate_address) (eclat_disassociate_address): New commands. * src/util.c: Add AWSAccessKeyId param in eclat_send_query instead of in describe_query_create. * tests/Makefile.am: Add new files. * tests/testsuite.at: Include new test cases. * tests/associate-address.at: New test case.
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile.am2
-rw-r--r--etc/associate-address.fln20
-rw-r--r--etc/disassociate-address.fln20
3 files changed, 42 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
index 56510a3..e182936 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -17,6 +17,8 @@
noinst_PROGRAMS = flncat
FLNFILES=\
+ associate-address.fln\
+ disassociate-address.fln\
describe-instance-status.fln\
describe-instances.fln\
describe-tags.fln\
diff --git a/etc/associate-address.fln b/etc/associate-address.fln
new file mode 100644
index 0000000..4c5d5d1
--- /dev/null
+++ b/etc/associate-address.fln
@@ -0,0 +1,20 @@
+/* This file is part of Eclat.
+ Copyright (C) 2012 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+if (.AssociateAddressResponse.return) {
+ if (!.AssociateAddressResponse.return[true])
+ error("Return: ",.AssociateAddressResponse.return,"\n");
+}
diff --git a/etc/disassociate-address.fln b/etc/disassociate-address.fln
new file mode 100644
index 0000000..59141f0
--- /dev/null
+++ b/etc/disassociate-address.fln
@@ -0,0 +1,20 @@
+/* This file is part of Eclat.
+ Copyright (C) 2012 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+if (.DisassociateAddressResponse.return) {
+ if (!.DisassociateAddressResponse.return[true])
+ error("Return: ",.DisassociateAddressResponse.return,"\n");
+}

Return to:

Send suggestions and report system problems to the System administrator.