Add modify options to client

This commit is contained in:
Andrew Hutchings
2012-10-15 05:06:49 -07:00
parent a20eef8a58
commit 1e73c607f6

View File

@@ -62,18 +62,23 @@ class ClientOptions(object):
sp.add_argument('--protocol',
help='protocol for the load balancer (TCP or HTTP)',
choices=['HTTP', 'TCP'])
sp.add_argument('--nodes',
sp.add_argument('--node',
help='a node for the load balancer in ip:port format',
action='append')
sp.add_argument('--vip',
help='the virtual IP to attach the load balancer to')
subparsers.add_parser(
sp = subparsers.add_parser(
'modify', help='modify a load balancer'
)
sp.add_argument('lbid', help='load balancer ID')
sp.add_argument('--name', help='new name for the load balancer')
sp.add_argument('--algorithm',
help='new algorithm for the load balancer',
choices=['LEAST_CONNECTIONS', 'ROUND_ROBIN'])
sp = subparsers.add_parser(
'status', help='get status of a load balancer'
)
sp.add_argument('lbid', help='Load Balancer ID')
sp.add_argument('lbid', help='load balancer ID')
subparsers.add_parser(
'node-list', help='list nodes in a load balancer'
)