-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check VPC and VPC Subnet for children before deleting (#1483)
* Check VPC and VPC Subnet for children before deleting - Add rcgen to vpc_subnet table and model - Add an implementation of `DatastoreCollection` for VPC Subnets, where the children are network interfaces. This bumps the `rcgen` whenever a new NIC is inserted. - Check for child NICs before deleting a VPC Subnet, and make the deletion conditional on the `rcgen` being the same while doing so. - Add integration test verifying that VPC Subnets can't be deleted while they contain an instance with a NIC in that subnet. - Ditto for VPCs, checking for VPC Subnets before deleting. * Remove debugging printlns
- Loading branch information
Showing
15 changed files
with
389 additions
and
123 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
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
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
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
Oops, something went wrong.