-
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
Add OpenAPI based vcd_network_routed_v2
resource and datasource for handling NSX-T and NSX-V routed networks
#628
Add OpenAPI based vcd_network_routed_v2
resource and datasource for handling NSX-T and NSX-V routed networks
#628
Conversation
vcd/resource_vcd_vapp_vm.go
Outdated
@@ -1614,7 +1614,7 @@ func resourceVcdVAppVmDelete(d *schema.ResourceData, meta interface{}) error { | |||
} | |||
|
|||
log.Printf("[TRACE] Removing VM: %s", vm.VM.Name) | |||
|
|||
// sleep() sad |
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.
Leftover from the other issue?
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.
Oops. Total leftover from troubleshooting another issue.
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.
Removed
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.
Great effort!
Closes #101
This PR add OpenAPI based
vcd_network_routed_v2
resource and datasource for handling NSX-T and NSX-V routed networks.Note. It does not include DHCP pool definition, because this depends on backing network provider (NSX-V and/org NSX-T) therefore it will be two separate resources a bit later (NSX-V and NSX-T DHCP management).
Note. The tests does not yet include end to end flow (with VM, etc), but I have tested it manually. I will add it once we have all org networks and DHCP definitions in place.
Additionally:
make install
will usegit describe --tags
so that lightweight tags are also included in build version.lockParentEdgeGtw
andunLockParentEdgeGtw
because some older resources would acquire lock by name, but new resources acquire lock by Edge gateway ID. These functions are now smart enough to lookup ID when only name was passed. That way we can ensure new and older resources are able to share lock.VirtualQuantity
type fromint
toint64
(related to Error Refreshing Vapp after VM Creation #626)setCatalogStorageProfile
for tests as Terraform provider supportsstorage_profile_id
when creating catalog to specify correct storage.make test
to capture previously undetected errors