summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')