summaryrefslogtreecommitdiffabout
path: root/etc/sg.fln
authorSergey Poznyakoff <gray@gnu.org.ua>2015-11-19 13:03:47 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2015-11-19 13:06:33 (GMT)
commit0a3f8aae4a41c4aa8435214e235af509cd5f4435 (patch) (side-by-side diff)
tree6b5e73c8ab74121123584dd2c62b80931d23a636 /etc/sg.fln
parentbedc4dc0057f4d713a4186e79d812f5e9552cfc2 (diff)
downloadeclat-0a3f8aae4a41c4aa8435214e235af509cd5f4435.tar.gz
eclat-0a3f8aae4a41c4aa8435214e235af509cd5f4435.tar.bz2
Add operations on egress rules for VPC security groups.
* src/sg-cl.opt: New options: --input (--ingress, -I), and --output (--egress, -O). * src/sg.c (command): const. * doc/eclat-sg.1: Document --input/--output modifiers. * TODO: Likewise. * etc/sg.fln: Add support for egress responses.
Diffstat (limited to 'etc/sg.fln') (more/less context) (ignore whitespace changes)
-rw-r--r--etc/sg.fln10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/sg.fln b/etc/sg.fln
index 7050c3a..10dac18 100644
--- a/etc/sg.fln
+++ b/etc/sg.fln
@@ -24,5 +24,15 @@ if (.AuthorizeSecurityGroupIngressResponse.return) {
error("Return: ",.RevokeSecurityGroupIngressResponse.return,"\n");
exit(1);
}
+} else if (.AuthorizeSecurityGroupEgressResponse.return) {
+ if (!.AuthorizeSecurityGroupEgressResponse.return[true]) {
+ error("Return: ",.AuthorizeSecurityGroupEressResponse.return,"\n");
+ exit(1);
+ }
+} else if (.RevokeSecurityGroupEgressResponse.return) {
+ if (!.RevokeSecurityGroupEgressResponse.return[true]) {
+ error("Return: ",.RevokeSecurityGroupEgressResponse.return,"\n");
+ exit(1);
+ }
}

Return to:

Send suggestions and report system problems to the System administrator.