Browse Source

Cannot update ssl certificate when update listener

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
MinSun 1 year ago
parent
commit
d87d0e3bd2
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      neutron_lbaas_dashboard/api/rest/lbaasv2.py

+ 2
- 1
neutron_lbaas_dashboard/api/rest/lbaasv2.py View File

@@ -99,7 +99,6 @@ def create_listener(request, **kwargs):
99 99
         listenerSpec['description'] = data['listener']['description']
100 100
     if data.get('certificates'):
101 101
         listenerSpec['default_tls_container_ref'] = data['certificates'][0]
102
-        listenerSpec['sni_container_refs'] = data['certificates']
103 102
 
104 103
     listener = neutronclient(request).create_listener(
105 104
         {'listener': listenerSpec}).get('listener')
@@ -268,6 +267,8 @@ def update_listener(request, **kwargs):
268 267
         listener_spec['name'] = data['listener']['name']
269 268
     if data['listener'].get('description'):
270 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 273
     listener = neutronclient(request).update_listener(
273 274
         listener_id, {'listener': listener_spec}).get('listener')

Loading…
Cancel
Save