Merge "NSXv3: Fix deletion issue when listener has pool"

This commit is contained in:
Jenkins 2017-08-08 12:52:54 +00:00 committed by Gerrit Code Review
commit 81753f0584

View File

@ -95,6 +95,8 @@ class EdgeListenerManager(base_mgr.Nsxv3LoadbalancerBaseManager):
vs_id = binding['lb_vs_id']
app_profile_id = binding['app_profile_id']
try:
if listener.default_pool_id:
vs_client.update(vs_id, pool_id='')
vs_client.delete(vs_id)
except nsx_exc.NsxResourceNotFound:
msg = (_("virtual server not found on nsx: %(vs)s") %