Set mode in haproxy frontend and backend.

Mode must be present in both sections of the HAProxy config or
else it will error.

Change-Id: Ie761ce8075b6f33752f3081245b8b40b2a4f8f09
This commit is contained in:
David Shrewsbury 2012-10-29 16:01:16 -04:00
parent 22b53f22c8
commit 3b206ef3ba

View File

@ -72,6 +72,7 @@ class HAProxyDriver(LoadBalancerDriver):
protocfg['bind_port']))
output.append(' default_backend %s-servers' % proto)
output.append('backend %s-servers' % proto)
output.append(' mode %s' % proto)
output.append(' balance %s' % protocfg['algorithm'])
for (addr, port) in protocfg['servers']: