Browse Source

NSXV Octavia: nest pool under listener on update

While updating a pool, the pool object contains a listener sub-object.
However the listener doesn't have a default-pool sub-object which is
required for session persistency processing.

Change-Id: I0d90510227783eef5f138511be025b1df10fc419
changes/02/760202/1
Kobi Samoray 3 months ago
parent
commit
597257d517
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py

+ 2
- 0
vmware_nsx/services/lbaas/nsx_v/implementation/pool_mgr.py View File

@ -142,6 +142,8 @@ class EdgePoolManagerFromDict(base_mgr.EdgeLoadbalancerBaseManager):
new_sess_persist = new_pool['session_persistence']
if new_sess_persist != old_sess_persist:
if not new_pool['listener'].get('default_pool'):
new_pool['listener']['default_pool'] = new_pool
listener_mgr.update_app_profile(
self.vcns, context, new_pool['listener'], edge_id)


Loading…
Cancel
Save