NSXV: Support session persistence with Octavia

Octavia breaks when listener is created before the pool, and session
persistence is specified.

Change-Id: I116871ce6fec12f099248e88ff560362f89c3d23
This commit is contained in:
Kobi Samoray 2020-07-07 13:14:09 +03:00
parent 7740d7eba7
commit a4c248f456
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ class EdgePoolManagerFromDict(base_mgr.EdgeLoadbalancerBaseManager):
# This action also set this pool as the default pool of the
# listener, so the application profile may need to be updated
if pool['session_persistence']:
if not pool['listener'].get('default_pool'):
pool['listener']['default_pool'] = pool
listener_mgr.update_app_profile(
self.vcns, context, pool['listener'], edge_id)