Browse Source

sni_container_refs needed if we want to use sni

Closes-Bug: #1792850
Change-Id: I450a604fee20186c5c7ecf81720eef58de4db056
changes/23/601923/3
coho 3 years ago
parent
commit
10d09ca456
  1. 2
      neutron_lbaas_dashboard/api/rest/lbaasv2.py

2
neutron_lbaas_dashboard/api/rest/lbaasv2.py

@ -99,6 +99,7 @@ def create_listener(request, **kwargs):
listenerSpec['description'] = data['listener']['description']
if data.get('certificates'):
listenerSpec['default_tls_container_ref'] = data['certificates'][0]
listenerSpec['sni_container_refs'] = data['certificates']
listener = neutronclient(request).create_listener(
{'listener': listenerSpec}).get('listener')
@ -269,6 +270,7 @@ def update_listener(request, **kwargs):
listener_spec['description'] = data['listener']['description']
if data.get('certificates'):
listener_spec['default_tls_container_ref'] = data['certificates'][0]
listener_spec['sni_container_refs'] = data['certificates']
listener = neutronclient(request).update_listener(
listener_id, {'listener': listener_spec}).get('listener')

Loading…
Cancel
Save