Merge "NSXv3: Fix deletion issue when listener has pool"
This commit is contained in:
commit
81753f0584
@ -95,6 +95,8 @@ class EdgeListenerManager(base_mgr.Nsxv3LoadbalancerBaseManager):
|
|||||||
vs_id = binding['lb_vs_id']
|
vs_id = binding['lb_vs_id']
|
||||||
app_profile_id = binding['app_profile_id']
|
app_profile_id = binding['app_profile_id']
|
||||||
try:
|
try:
|
||||||
|
if listener.default_pool_id:
|
||||||
|
vs_client.update(vs_id, pool_id='')
|
||||||
vs_client.delete(vs_id)
|
vs_client.delete(vs_id)
|
||||||
except nsx_exc.NsxResourceNotFound:
|
except nsx_exc.NsxResourceNotFound:
|
||||||
msg = (_("virtual server not found on nsx: %(vs)s") %
|
msg = (_("virtual server not found on nsx: %(vs)s") %
|
||||||
|
Loading…
x
Reference in New Issue
Block a user