Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ml2 delete_subnet to deallocate via ipam
Previosly during delete_subnet in ml2 plugin ip allocation were removed directly from database. This way ipam driver was unaware of this deallocation. Updated workflow to skip removing ip allocations directly from database. Now ips are deallocated during update_port workflow (L1008). This resolves issue with dhcp ports left in allocated state on ipam provides side. Now they are correctly deallocated via update_port. But this patch has next limitation: currently SLAAC allocations can not be delete via update_port workflow, so ipam driver is still unaware of such deallocations. This part of issue is expected to be fixed as separate patch. Subnet_in_use check was reworked. Previously it assumed that auto-allocated ip are already deleted by the time of this check, but with new workflow auto allocated ips are deleted later (on update_port). So now this check verifies if there are any user allocated ips instead of checking all allocations. Partial-Bug: #1564335 Change-Id: I08d66da8cb57ed88e11ec2b18c8345edfce37d37 (cherry picked from commit 3a2e41b) (cherry picked from commit 71686cd)
- Loading branch information
1 parent
67c3460
commit 8d753d7
Showing
2 changed files
with
50 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters