[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:53 UTC 2013


The following commit has been merged in the master branch:
commit 1c8fe50205a8c0360121980f5fb65ff37e5b05ab
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Sun Mar 31 18:05:11 2013 -0700

    Implement CreateAppCookieStickinessPolicy
    
    Fixes TOOLS-247

diff --git a/bin/euelb-create-app-cookie-stickiness-policy b/bin/euelb-create-app-cookie-stickiness-policy
new file mode 100755
index 0000000..fb9807c
--- /dev/null
+++ b/bin/euelb-create-app-cookie-stickiness-policy
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.elasticloadbalancing.createappcookiestickinesspolicy
+
+if __name__ == '__main__':
+    euca2ools.commands.elasticloadbalancing.createappcookiestickinesspolicy.CreateAppCookieStickinessPolicy.run()
diff --git a/euca2ools/commands/elasticloadbalancing/setloadbalancerlistenersslcertificate.py b/euca2ools/commands/elasticloadbalancing/createappcookiestickinesspolicy.py
similarity index 66%
copy from euca2ools/commands/elasticloadbalancing/setloadbalancerlistenersslcertificate.py
copy to euca2ools/commands/elasticloadbalancing/createappcookiestickinesspolicy.py
index a2a3705..1e12652 100644
--- a/euca2ools/commands/elasticloadbalancing/setloadbalancerlistenersslcertificate.py
+++ b/euca2ools/commands/elasticloadbalancing/createappcookiestickinesspolicy.py
@@ -32,14 +32,17 @@ from euca2ools.commands.elasticloadbalancing import ELBRequest
 from requestbuilder import Arg
 
 
-class SetLoadBalancerListenerSSLCertificate(ELBRequest):
-    DESCRIPTION = ("Change the certificate that terminates a load balancer's"
-                   "listener's SSL connections")
+class CreateAppCookieStickinessPolicy(ELBRequest):
+    DESCRIPTION = ('Create a new stickiness policy for a load balancer, '
+                   'whereby the server application generates a cookie and '
+                   'adds it to its responses.  The load balancer will then '
+                   'use this cookie to route requests to the same back end '
+                   'instance cookie.  This type of policy can only be '
+                   'associated with HTTP or HTTPS listeners')
     ARGS = [Arg('LoadBalancerName', metavar='ELB',
                 help='name of the load balancer to modify (required)'),
-            Arg('-l', '--lb-port', dest='LoadBalancerPort', metavar='PORT',
-                type=int, required=True,
-                help='port that should use the certificate (required)'),
-            Arg('-c', '--cert-id', dest='SSLCertificateId', metavar='ARN',
-                required=True,
-                help='ARN for the server certificate to use (required)')]
+            # -c is for cookie.  That's good enough for me.
+            Arg('-c', '--cookie-name', dest='CookieName', required=True,
+                help='name of the cookie used for stickiness (required)'),
+            Arg('-p', '--policy-name', dest='PolicyName', metavar='POLICY',
+                required=True, help='name of the new policy (required)')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list