Blob Blame History Raw
Index: euca2ools-3.3.0/euca2ools/commands/elasticloadbalancing/createloadbalancer.py
===================================================================
--- euca2ools-3.3.0.orig/euca2ools/commands/elasticloadbalancing/createloadbalancer.py
+++ euca2ools-3.3.0/euca2ools/commands/elasticloadbalancing/createloadbalancer.py
@@ -26,7 +26,7 @@
 from requestbuilder import Arg, MutuallyExclusiveArgList
 from requestbuilder.mixins import TabifyingMixin
 
-from euca2ools.commands.argtypes import delimited_list
+from euca2ools.commands.argtypes import binary_tag_def, delimited_list
 from euca2ools.commands.elasticloadbalancing import ELBRequest
 from euca2ools.commands.elasticloadbalancing.argtypes import listener
 
@@ -65,7 +65,10 @@ class CreateLoadBalancer(ELBRequest, Tab
             Arg('-g', '--security-groups', dest='SecurityGroups.member',
                 metavar='GROUP1,GROUP2,...', type=delimited_list(','),
                 help='''[VPC only] IDs of the security groups to assign to the
-                new load balancer''')]
+                new load balancer'''),
+            Arg('-t', '--tag', dest='Tags.member', action='append',
+                metavar='KEY=VALUE', type=binary_tag_def,
+                help='key and value of a tag to add to the new load balancer')]
 
     def print_result(self, result):
         print self.tabify(('DNS_NAME', result.get('DNSName')))
Index: euca2ools-3.3.0/man/eulb-create-lb.1
===================================================================
--- euca2ools-3.3.0.orig/man/eulb-create-lb.1
+++ euca2ools-3.3.0/man/eulb-create-lb.1
@@ -8,7 +8,7 @@ eulb\-create\-lb (\fB\-s\fR SUBNET1,SUBN
 "lb\-port=PORT, protocol={HTTP,HTTPS,SSL,TCP},
 instance\-port=PORT,
 instance\-protocol={HTTP,HTTPS,SSL,TCP}, cert\-id=ARN"
-[\-i internal] [\-g GROUP1,GROUP2,...]
+[\-i internal] [\-g GROUP1,GROUP2,...] [\-t KEY=VALUE]
 [\-\-show\-empty\-fields] [\-U URL] [\-\-region USER@REGION]
 [\-I KEY_ID] [\-S KEY] [\-\-security\-token TOKEN] [\-\-debug]
 [\-\-debugger] [\-\-version] [\-h]
@@ -51,6 +51,9 @@ private to a VPC
 [VPC only] IDs of the security groups to assign to the
 new load balancer
 .TP
+\fB\-t\fR KEY=VALUE, \fB\-\-tag\fR KEY=VALUE
+key and value of a tag to add to the new load balancer
+.TP
 \fB\-\-show\-empty\-fields\fR
 show empty values as "(nil)"
 .TP