-
Notifications
You must be signed in to change notification settings - Fork 143
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
is_pool issue with netbox_available_prefix #109
Comments
I'm pretty sure that this issue comes from a common problem with the go-netbox library. This happens because, for This is one of the reasons I maintain my own fork at fbreckle/go-netbox. This has to be fixed there. |
Will you look at it or should I have a look at the code? |
Could this happen also for other Types? I have to double check, but I suspect that this happens also for (say) vrf_id when from a non-zero value tf wants to change it to 0. |
Yes, this happens with many optional attributes. Here is my issue in the original go-netbox repo netbox-community/go-netbox#107 |
Terraform Version
Terraform v1.1.2
Affected Resource(s)
Expected Behavior
the state of is_pool should be changed from true->false
Actual Behavior
The is_pool is not changed
Steps to Reproduce
Run terraform in order to request a new prefix, with is_pool set to true. Subsequently change the tf file to "is_bool: false". tf plan shows that the resource should be updated (true->false) as expected. run tf apply, the output shows that netbox is indeed called against the affected resources. However, the flag is not updated.
Important Factoids
I sniffed the API calls and while the provider indeed contacts the API, the json in the PUT call does not contains "is_pool" flag, that looks suspicious. (attaching the wireshark output as screenshot, as the text output from tcpdump is a bit complicated to format)

The text was updated successfully, but these errors were encountered: