Browse Source

Merge "sni_container_refs needed if we want to use sni"

changes/55/614955/1
Zuul 3 years ago
committed by Gerrit Code Review
parent
commit
955f4b83c3
  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