[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:51 UTC 2013


The following commit has been merged in the master branch:
commit 09dbb44861d5840973856bb89543fba9d5ce1bd0
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Sun Mar 31 17:29:26 2013 -0700

    Implement SetLoadBalancerPoliciesOfListener
    
    Fixes TOOLS-243

diff --git a/bin/euelb-set-lb-policies-of-listener b/bin/euelb-set-lb-policies-of-listener
new file mode 100755
index 0000000..83b6d3f
--- /dev/null
+++ b/bin/euelb-set-lb-policies-of-listener
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.elasticloadbalancing.setloadbalancerpoliciesoflistener
+
+if __name__ == '__main__':
+    euca2ools.commands.elasticloadbalancing.setloadbalancerpoliciesoflistener.SetLoadBalancerPoliciesOfListener.run()
diff --git a/euca2ools/commands/elasticloadbalancing/setloadbalancerlistenersslcertificate.py b/euca2ools/commands/elasticloadbalancing/setloadbalancerpoliciesoflistener.py
similarity index 77%
copy from euca2ools/commands/elasticloadbalancing/setloadbalancerlistenersslcertificate.py
copy to euca2ools/commands/elasticloadbalancing/setloadbalancerpoliciesoflistener.py
index a2a3705..530ad63 100644
--- a/euca2ools/commands/elasticloadbalancing/setloadbalancerlistenersslcertificate.py
+++ b/euca2ools/commands/elasticloadbalancing/setloadbalancerpoliciesoflistener.py
@@ -28,18 +28,19 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
+from euca2ools.commands.argtypes import delimited_list
 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 SetLoadBalancerPoliciesOfListener(ELBRequest):
+    DESCRIPTION = 'Change the policy associated with a load balancer listener'
     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)')]
+                help='port of the listener to modify (required)'),
+            Arg('-p', '--policy-names', dest='PolicyNames.member',
+                metavar='POLICY1,POLICY2,...', type=delimited_list(','),
+                required=True, help='''list of policies to associate with the
+                listener (required)''')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list