[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 f8cc04f4887f4d7e0bc9b909867335edcd4c179c
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Sun Mar 31 18:21:41 2013 -0700
Implement CreateLBCookieStickinessPolicy
Fixes TOOLS-248
diff --git a/bin/euelb-create-lb-cookie-stickiness-policy b/bin/euelb-create-lb-cookie-stickiness-policy
new file mode 100755
index 0000000..492936b
--- /dev/null
+++ b/bin/euelb-create-lb-cookie-stickiness-policy
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.elasticloadbalancing.createlbcookiestickinesspolicy
+
+if __name__ == '__main__':
+ euca2ools.commands.elasticloadbalancing.createlbcookiestickinesspolicy.CreateLBCookieStickinessPolicy.run()
diff --git a/euca2ools/commands/elasticloadbalancing/createappcookiestickinesspolicy.py b/euca2ools/commands/elasticloadbalancing/createlbcookiestickinesspolicy.py
similarity index 74%
copy from euca2ools/commands/elasticloadbalancing/createappcookiestickinesspolicy.py
copy to euca2ools/commands/elasticloadbalancing/createlbcookiestickinesspolicy.py
index 1e12652..606433d 100644
--- a/euca2ools/commands/elasticloadbalancing/createappcookiestickinesspolicy.py
+++ b/euca2ools/commands/elasticloadbalancing/createlbcookiestickinesspolicy.py
@@ -32,17 +32,17 @@ from euca2ools.commands.elasticloadbalancing import ELBRequest
from requestbuilder import Arg
-class CreateAppCookieStickinessPolicy(ELBRequest):
+class CreateLBCookieStickinessPolicy(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')
+ 'whereby the load balancer automatically generates cookies '
+ 'that it uses to route requests from each user to the same '
+ 'back end instance. 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)'),
- # -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('-e', '--expiration-period', dest='CookieExpirationPeriod',
+ metavar='SECONDS', type=int, required=True,
+ help='''time period after which cookies should be considered
+ stale (default: user's session length) (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