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


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

    Implement AttachLoadBalancerToSubnets
    
    Fixes TOOLS-245

diff --git a/bin/euelb-attach-lb-to-subnets b/bin/euelb-attach-lb-to-subnets
new file mode 100755
index 0000000..6e95eeb
--- /dev/null
+++ b/bin/euelb-attach-lb-to-subnets
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.elasticloadbalancing.attachloadbalancertosubnets
+
+if __name__ == '__main__':
+    euca2ools.commands.elasticloadbalancing.attachloadbalancertosubnets.AttachLoadBalancerToSubnets.run()
diff --git a/euca2ools/commands/elasticloadbalancing/deleteloadbalancer.py b/euca2ools/commands/elasticloadbalancing/attachloadbalancertosubnets.py
similarity index 78%
copy from euca2ools/commands/elasticloadbalancing/deleteloadbalancer.py
copy to euca2ools/commands/elasticloadbalancing/attachloadbalancertosubnets.py
index 4f0da9e..0fe710b 100644
--- a/euca2ools/commands/elasticloadbalancing/deleteloadbalancer.py
+++ b/euca2ools/commands/elasticloadbalancing/attachloadbalancertosubnets.py
@@ -28,15 +28,15 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
-import argparse
+from euca2ools.commands.argtypes import delimited_list
 from euca2ools.commands.elasticloadbalancing import ELBRequest
 from requestbuilder import Arg
 
 
-class DeleteLoadBalancer(ELBRequest):
-    DESCRIPTION = ('Delete a load balancer\n\nIf the load balancer does not '
-                   'exist, this command still succeeds.')
+class AttachLoadBalancerToSubnets(ELBRequest):
+    DESCRIPTION = '[VPC only] Add one or more subnets to a load balancer'
     ARGS = [Arg('LoadBalancerName', metavar='ELB',
-                help='name of the load balancer to delete (required)'),
-            Arg('--force', action='store_true', route_to=None,
-                help=argparse.SUPPRESS)]  # for compatibility
+                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 add')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list