calebgroom / clb

Command-line tool for Rackspace Cloud Load Balancers
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

DNS_TCP and DNS_UDP is not a valid protocol #37

Open jalbstmeijer opened 11 years ago

jalbstmeijer commented 11 years ago

Hi,

When trying to create a load balancer with a DNS_TCP or DNS_UDP protocol I get.

$ clb create 'Load-Balancer-dns1 tcp' 53 DNS_TCP '123.123.123.123:53' 87983

Traceback (most recent call last): File "/home/xxx/projects/rackspace/bin/clb", line 949, in CloudloadbalancersShell().main(sys.argv[1:]) File "/home/xxxx/projects/rackspace/bin/clb", line 223, in main args.func(args) File "/home/xxxx/projects/rackspace/bin/clb", line 312, in do_create nodes=nodes, virtualIps=[vip]) File "/home/xxxx/projects/rackspace/lib/python2.7/site-packages/cloudlb/loadbalancers.py", line 150, in create (protocol)) cloudlb.errors.InvalidProtocol: ''DNS_TCP'' is not a valid protocol

Even even though it sees it as a valid protocol

$ clb list-protocols +------------------+ | Protocols | +------------------+ | DNS_TCP | | DNS_UDP | | FTP | | HTTP | | HTTPS | | IMAPS | | IMAPv2 | | IMAPv3 | | IMAPv4 | | LDAP | | LDAPS | | MYSQL | | POP3 | | POP3S | | SFTP | | SMTP | | TCP | | TCP_CLIENT_FIRST | | UDP | | UDP_STREAM | +------------------+

Gr, Justin