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: Ic035e163a197d854337e9aa935dcb28d7289cc9c
Story: 2001641
Task: 6659
changes/13/550313/3
MinSun 4 years ago
parent
commit
f7761544d8
  1. 7
      octavia_dashboard/api/rest/lbaasv2.py

7
octavia_dashboard/api/rest/lbaasv2.py

@ -394,12 +394,19 @@ def update_listener(request, **kwargs):
else:
default_pool_id = default_pool_id[:36]
try:
default_tls_ref = data['certificates'][0]
except (KeyError, IndexError):
default_tls_ref = None
conn = _get_sdk_connection(request)
listener = conn.load_balancer.update_listener(
listener=listener_id,
name=data['listener'].get('name'),
description=data['listener'].get('description'),
connection_limit=data['listener'].get('connection_limit'),
default_tls_container_ref=default_tls_ref,
sni_container_refs=None,
admin_state_up=data['listener'].get('admin_state_up'),
default_pool_id=default_pool_id,
insert_headers=data['listener'].get('insert_headers'),

Loading…
Cancel
Save