Merge "Remove Floating IP DNS record upon associated port deletion"

This commit is contained in:
Zuul 2019-11-11 13:32:33 +00:00 committed by Gerrit Code Review
commit 19bc090b1b
1 changed files with 3 additions and 0 deletions

View File

@ -1611,6 +1611,9 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase,
'router_ids': router_ids, 'router_ids': router_ids,
'association_event': False, 'association_event': False,
} }
# Process DNS record removal after committing the transaction
if self._is_dns_integration_supported:
self._process_dns_floatingip_delete(context, fip.to_dict())
registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE, self, registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE, self,
**assoc_result) **assoc_result)
for fip in old_fips.values(): for fip in old_fips.values():