-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSX-T Edge Gateway automatic IP assignment #991
Conversation
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
a5689df
to
9d91bad
Compare
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First scan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR slipped my attention, sorry... My main question is how could we clarify the auto_subnet
vs. auto_allocated_subnet
concepts (comment in-line).
Signed-off-by: Dainius Serplis <[email protected]>
…ted_subnet' -> 'subnet_with_ip_count' Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
…nt usage Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Closes #743
This PR adds support for 2 new different IP allocation modes in addition to the already existing manual IP range allocation using
subnet
blocks. Sadly, it was not possible to make all settings available in a singlesubnet
block, because of Terraform schema limitations which are not in control by provider developers. (the main problem with TypeSet blocks is that they would produce inconsistent plan for allocation ranges, when an allocated IP count is increased)The new modes are:
subnet_with_total_ip_count
+total_allocated_ip_count
-> automatic IP allocation in any of the defined subnets (up tototal_allocated_ip_count
)Note. Due to API limitations, the behavior of this function is different when allocating IPs and when deallocating. When allocating - it is sufficient to just use
QuickAddAllocatedIPCount
field, while deallocation requires manual structure adjustmentsubnet_with_ip_count
-> automatic IP allocation for a per subnet caseAdditionally, this PR will add new attributes:
used_ip_count
- returns the number of IPs that are used by the services in this Edge Gatewayunused_ip_count
- returns the number of IPs that are allocated, but not yet used by any service in the Edge Gatewaytotal_allocated_ip_count
(must be used forsubnet_with_total_ip_count
however, it will return computed values in other cases as well)Testing
nsxt
andgateway
passed on 10.3.0, 10.4.0, 10.4.1.gateway
passed on 10.4.1gateway
passed on 10.4.1 (also addedvcd.ResourceSchema-vcd_nsxt_edgegateway.tf
to skip)