Open hollow opened 1 year ago
You have to update the preprocess script to reflect your changes. Else, next time I regenerate the client from a fresh netbox swagger file, your changes are lost. The process is:
Also, circuit termination and link peers are outside my area of expertise - are link peers a feature nobody will ever need? I would prefer it to be fixed instead of being removed.
@fbreckle I have added the removal of fields that need a custom serializer implementation to the preprocessor and regenerated all files. Please let me know if this works and I'll follow up with a PR in the terraform provider.
Also, circuit termination and link peers are outside my area of expertise - are link peers a feature nobody will ever need? I would prefer it to be fixed instead of being removed.
I agree with you, but implementing custom serializers is beyond my scope (read: available time), and with the current implementation, the provider cannot be made to work to create circuit terminations
Just realized that this is now a duplicate of https://github.com/fbreckle/go-netbox/pull/28
link_peers
is actually an array of objects and is not implemented properly in theswagger.json
definition.As soon as a circuit termination is connected to a device interface the Terraform provider cannot unmarshal the response anymore:
However, this attribute is not used in the provider anyway, so I have removed it instead of trying to fix it.