Add support for setting protocol.

HAProxy driver will not support TCP, HTTP, or HEALTH mode
values via the new set_protocol() driver API method. Default
is HTTP. Invalid values will return a failure.
This commit is contained in:
David Shrewsbury
2012-10-09 12:25:38 -04:00
parent eada8244a6
commit cf7cec203f
3 changed files with 48 additions and 19 deletions

View File

@@ -38,6 +38,10 @@ class LoadBalancerDriver(object):
""" Add a server for which we will proxy. """
raise NotImplementedError()
def set_protocol(self, protocol):
""" Set the protocol of the instance. """
raise NotImplementedError()
def create(self):
""" Create the load balancer. """
raise NotImplementedError()