summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-10-19 18:50:35 +0000
committerGerrit Code Review <review@openstack.org>2018-10-19 18:50:35 +0000
commit955f4b83c3698eab593728275b1980a0bc4d6e4a (patch)
treee897e965918f89dff750f9eddf16a586fb70ea7b
parent7b8038b002a8efdf37ee4015cc43d11b7c8c1a3e (diff)
parent10d09ca4562aaab14cc617213ce0831367f032be (diff)
Merge "sni_container_refs needed if we want to use sni"HEADmaster
-rw-r--r--neutron_lbaas_dashboard/api/rest/lbaasv2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/neutron_lbaas_dashboard/api/rest/lbaasv2.py b/neutron_lbaas_dashboard/api/rest/lbaasv2.py
index 5b06ccc..09e7361 100644
--- a/neutron_lbaas_dashboard/api/rest/lbaasv2.py
+++ b/neutron_lbaas_dashboard/api/rest/lbaasv2.py
@@ -99,6 +99,7 @@ def create_listener(request, **kwargs):
99 listenerSpec['description'] = data['listener']['description'] 99 listenerSpec['description'] = data['listener']['description']
100 if data.get('certificates'): 100 if data.get('certificates'):
101 listenerSpec['default_tls_container_ref'] = data['certificates'][0] 101 listenerSpec['default_tls_container_ref'] = data['certificates'][0]
102 listenerSpec['sni_container_refs'] = data['certificates']
102 103
103 listener = neutronclient(request).create_listener( 104 listener = neutronclient(request).create_listener(
104 {'listener': listenerSpec}).get('listener') 105 {'listener': listenerSpec}).get('listener')
@@ -269,6 +270,7 @@ def update_listener(request, **kwargs):
269 listener_spec['description'] = data['listener']['description'] 270 listener_spec['description'] = data['listener']['description']
270 if data.get('certificates'): 271 if data.get('certificates'):
271 listener_spec['default_tls_container_ref'] = data['certificates'][0] 272 listener_spec['default_tls_container_ref'] = data['certificates'][0]
273 listener_spec['sni_container_refs'] = data['certificates']
272 274
273 listener = neutronclient(request).update_listener( 275 listener = neutronclient(request).update_listener(
274 listener_id, {'listener': listener_spec}).get('listener') 276 listener_id, {'listener': listener_spec}).get('listener')