summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoho <jeffreycohobupt@gmail.com>2018-09-12 13:48:05 +0800
committercoho <jeffreycohobupt@gmail.com>2018-10-22 01:31:19 +0000
commitd27f36607a2b5c6dc0cd611c32b5404c56fc7be0 (patch)
tree36999ff1ef2275d1eefa7fda97338d557c363351
parentbe052c5212c8da384f2a15c25e153d9cf638815a (diff)
sni_container_refs needed if we want to use snistable/ocata
Notes
Notes (review): Code-Review+1: Qin Zhao <chaochin@gmail.com> Code-Review+2: Jacky Hu <hudayou@hotmail.com> Code-Review+1: pengyuesheng <pengyuesheng@gohighsec.com> Code-Review+2: German Eichberger <German.eichberger@rackspace.com> Workflow+1: German Eichberger <German.eichberger@rackspace.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 13 Nov 2018 08:24:26 +0000 Reviewed-on: https://review.openstack.org/612225 Project: openstack/neutron-lbaas-dashboard Branch: refs/heads/stable/ocata
-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 a325050..79b33d7 100644
--- a/neutron_lbaas_dashboard/api/rest/lbaasv2.py
+++ b/neutron_lbaas_dashboard/api/rest/lbaasv2.py
@@ -100,6 +100,7 @@ def create_listener(request, **kwargs):
100 listenerSpec['description'] = data['listener']['description'] 100 listenerSpec['description'] = data['listener']['description']
101 if data.get('certificates'): 101 if data.get('certificates'):
102 listenerSpec['default_tls_container_ref'] = data['certificates'][0] 102 listenerSpec['default_tls_container_ref'] = data['certificates'][0]
103 listenerSpec['sni_container_refs'] = data['certificates']
103 104
104 listener = neutronclient(request).create_listener( 105 listener = neutronclient(request).create_listener(
105 {'listener': listenerSpec}).get('listener') 106 {'listener': listenerSpec}).get('listener')
@@ -270,6 +271,7 @@ def update_listener(request, **kwargs):
270 listener_spec['description'] = data['listener']['description'] 271 listener_spec['description'] = data['listener']['description']
271 if data.get('certificates'): 272 if data.get('certificates'):
272 listener_spec['default_tls_container_ref'] = data['certificates'][0] 273 listener_spec['default_tls_container_ref'] = data['certificates'][0]
274 listener_spec['sni_container_refs'] = data['certificates']
273 275
274 listener = neutronclient(request).update_listener( 276 listener = neutronclient(request).update_listener(
275 listener_id, {'listener': listener_spec}).get('listener') 277 listener_id, {'listener': listener_spec}).get('listener')