summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinSun <minsu@cisco.com>2018-03-06 14:07:19 +0800
committerQin Zhao <chaochin@gmail.com>2018-09-03 03:20:09 +0000
commitd65b424532dd924f59dcc23f2489a4785447bd1f (patch)
treed90e0046be150d1fec2fbf68e2acf13ba3142444
parentbb81ac7a592e9957e44252a89d8b413700017d97 (diff)
Cannot update ssl certificate when update listenerstable/pike
Update listener success, but only the name and description of the listener has been updated. Certificate remains same as old one. Change-Id: I35aa3ca8d77f5cd58d8bd945fadc1061ecf05112 Closes-Bug: #1753656 (cherry picked from commit d87d0e3bd275d88e9beb5c4e9c2e1750893268d4)
Notes
Notes (review): Code-Review+2: Jacky Hu <hudayou@hotmail.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: Fri, 14 Sep 2018 20:00:05 +0000 Reviewed-on: https://review.openstack.org/598129 Project: openstack/neutron-lbaas-dashboard Branch: refs/heads/stable/pike
-rw-r--r--neutron_lbaas_dashboard/api/rest/lbaasv2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron_lbaas_dashboard/api/rest/lbaasv2.py b/neutron_lbaas_dashboard/api/rest/lbaasv2.py
index 819bc62..5b06ccc 100644
--- a/neutron_lbaas_dashboard/api/rest/lbaasv2.py
+++ b/neutron_lbaas_dashboard/api/rest/lbaasv2.py
@@ -99,7 +99,6 @@ 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']
103 102
104 listener = neutronclient(request).create_listener( 103 listener = neutronclient(request).create_listener(
105 {'listener': listenerSpec}).get('listener') 104 {'listener': listenerSpec}).get('listener')
@@ -268,6 +267,8 @@ def update_listener(request, **kwargs):
268 listener_spec['name'] = data['listener']['name'] 267 listener_spec['name'] = data['listener']['name']
269 if data['listener'].get('description'): 268 if data['listener'].get('description'):
270 listener_spec['description'] = data['listener']['description'] 269 listener_spec['description'] = data['listener']['description']
270 if data.get('certificates'):
271 listener_spec['default_tls_container_ref'] = data['certificates'][0]
271 272
272 listener = neutronclient(request).update_listener( 273 listener = neutronclient(request).update_listener(
273 listener_id, {'listener': listener_spec}).get('listener') 274 listener_id, {'listener': listener_spec}).get('listener')