You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vSphere provider works and creates a VM that has a network adapter which has a label with a slash in the name.
Actual Behavior
Fails saying unable to find network since the version of govmomi being used splits across forward slashes and only returns the last section. This means if you have a network label with a slash in it such as IP/CIDR, it will only return the CIDR.
Steps to Reproduce
It's easiest to use govc directly since it will produce the same outcome as Terraform. Here's an example between working and nonworking versions.
govc version
govc 0.13.0
govc vm.network.change -net "v123 4.5.6.7/28" -vm "somevm.domain.com" ethernet-0
govc: network 'v123 4.5.6.7/28' not found
govc version
govc 0.14.0
govc vm.network.change -net "v123 4.5.6.7/28" -vm "somevm.domain.com" ethernet-0
(no output, completed successfully)
This issue was originally opened by @caseyaedwards as hashicorp/terraform#13366. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
Terraform v0.9.3-dev
Affected Resource(s)
Expected Behavior
vSphere provider works and creates a VM that has a network adapter which has a label with a slash in the name.
Actual Behavior
Fails saying unable to find network since the version of govmomi being used splits across forward slashes and only returns the last section. This means if you have a network label with a slash in it such as IP/CIDR, it will only return the CIDR.
Steps to Reproduce
It's easiest to use govc directly since it will produce the same outcome as Terraform. Here's an example between working and nonworking versions.
govc version
govc 0.13.0
govc vm.network.change -net "v123 4.5.6.7/28" -vm "somevm.domain.com" ethernet-0
govc: network 'v123 4.5.6.7/28' not found
govc version
govc 0.14.0
govc vm.network.change -net "v123 4.5.6.7/28" -vm "somevm.domain.com" ethernet-0
(no output, completed successfully)
Important Factoids
Using slashes in network labels
References
The text was updated successfully, but these errors were encountered: