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


The following commit has been merged in the master branch:
commit 617de5a882a6304c6f57a3d94c4fa40b007dcc10
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Sun Mar 31 19:27:33 2013 -0700

    Implement EnableAvailabilityZonesForLoadBalancer
    
    Fixes TOOLS-253

diff --git a/bin/euelb-enable-zones-for-lb b/bin/euelb-enable-zones-for-lb
new file mode 100755
index 0000000..144c8db
--- /dev/null
+++ b/bin/euelb-enable-zones-for-lb
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.elasticloadbalancing.enableavailabilityzonesforloadbalancer
+
+if __name__ == '__main__':
+    euca2ools.commands.elasticloadbalancing.enableavailabilityzonesforloadbalancer.EnableAvailabilityZonesForLoadBalancer.run()
diff --git a/euca2ools/commands/elasticloadbalancing/detachloadbalancerfromsubnets.py b/euca2ools/commands/elasticloadbalancing/enableavailabilityzonesforloadbalancer.py
similarity index 75%
copy from euca2ools/commands/elasticloadbalancing/detachloadbalancerfromsubnets.py
copy to euca2ools/commands/elasticloadbalancing/enableavailabilityzonesforloadbalancer.py
index bfaf1b4..e7a7a49 100644
--- a/euca2ools/commands/elasticloadbalancing/detachloadbalancerfromsubnets.py
+++ b/euca2ools/commands/elasticloadbalancing/enableavailabilityzonesforloadbalancer.py
@@ -34,15 +34,16 @@ from requestbuilder import Arg
 from requestbuilder.mixins import TabifyingCommand
 
 
-class DetachLoadBalancerFromSubnets(ELBRequest, TabifyingCommand):
-    DESCRIPTION = '[VPC only] Remove a load balancer from one or more subnets'
+class EnableAvailabilityZonesForLoadBalancer(ELBRequest, TabifyingCommand):
+    DESCRIPTION = 'Add a load balancer to one or more availability zones'
     ARGS = [Arg('LoadBalancerName', metavar='ELB',
                 help='name of the load balancer to modify (required)'),
-            Arg('-s', '--subnets', dest='Subnets.member', required=True,
-                metavar='SUBNET1,SUBNET2,...', type=delimited_list(','),
-                help='''IDs of the subnets to remove the load balancer from
-                (required)''')]
-    LIST_TAGS = ['Subnets']
+            Arg('-z', '--availability-zones', dest='AvailabilityZones.member',
+                metavar='ZONE1,ZONE2,...', type=delimited_list(','),
+                required=True, help='''availability zones to add the load
+                balancer to (required)''')]
+    LIST_TAGS = ['AvailabilityZones']
 
     def print_result(self, result):
-        print self.tabify(('SUBNETS', ','.join(result.get('Subnets', []))))
+        print self.tabify(('AVAILABILITY_ZONES',
+                           ', '.join(result.get('AvailabilityZones', []))))

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list