Browse Source

sni_container_refs needed if we want to use sni

Closes-Bug: #1792850
Change-Id: I450a604fee20186c5c7ecf81720eef58de4db056
coho 7 months ago
parent
commit
10d09ca456
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      neutron_lbaas_dashboard/api/rest/lbaasv2.py

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

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

Loading…
Cancel
Save