Skip to content

Commit

Permalink
SSL parameter setting in haproxy
Browse files Browse the repository at this point in the history
Pass SSL parameters to haproxy.

Change-Id: I9b9c9da9e6ef473ac9db617aaa86e38decd77c3b
Partial-Bug: #1569033
  • Loading branch information
rrugge committed Apr 18, 2016
1 parent d58f5da commit 2078559
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/config/svc-monitor/svc_monitor/loadbalancer_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ def listener_get_reqdict(self, listener):
'protocol': props['protocol'],
'loadbalancer_id': listener.loadbalancer,
'admin_state_up': props['admin_state'],
'connection_limit': props['connection_limit'],
'default_tls_container': props['default_tls_container'],
'sni_containers': props['sni_containers'],
'status': self._get_object_status(listener)}

return res
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

PROTO_HTTP = 'HTTP'
PROTO_HTTPS = 'HTTPS'
PROTO_TERMINATED_HTTPS = 'TERMINATED_HTTPS'

PROTO_MAP = {
'TCP': 'tcp',
'HTTP': 'http',
'HTTPS': 'http',
'TERMINATED_HTTPS': 'terminated_https'
'TERMINATED_HTTPS': 'http'
}

LB_METHOD_MAP = {
Expand Down Expand Up @@ -121,8 +122,8 @@ def set_v2_frontend_backend(lb):
continue

ssl = ''
if ll.params['protocol'] == PROTO_HTTPS:
ssl = 'ssl crt %s no-sslv3' % crt_file
if ll.params['protocol'] == PROTO_TERMINATED_HTTPS:
ssl = 'ssl crt %s no-sslv3' % ll.params['default_tls_container']

lconf = [
'frontend %s' % ll.uuid,
Expand Down

0 comments on commit 2078559

Please sign in to comment.