ipam_service port list is not read or created #52
Labels
bug
Something isn't working
netbox-version-not-compatible
Need a new version of go-netbox/provider to manage this issue
Summary
ports for ipam_service are returned as list from netbox. Terraform expects a string. The field in the JSON output from netbox has been renamed from
port
toports
.Version
Netbox version
Terraform version
Provider version
master (39ac08b)
Issue details
Affected Data(s) / Resource(s)
Terraform Configuration Files
Terraform Output
Behaviors
Actual Behavior
ipam_service creation fails due to missing ports argument. If imported (see #51 ) the state shows an empty port variable and setting port has no effect in netbox.
Expected Behavior
Service can be created and ports can be read back from netbox
Steps to Reproduce
terraform apply
Fixes
See amhn@7b801ea for a working version.
I have no experience with go, so I had to disable the validate functions in vendor/github.com/netbox-community/go-netbox/netbox/models/service.go and vendor/github.com/netbox-community/go-netbox/netbox/models/writable_service.go.
The text was updated successfully, but these errors were encountered: