I think that a user creating a VN with bindings, then deleting those bindings (possible with 5.x) will find that the bindings do not go away.
This is consistent with terraform's "I don't care about that value" approach, but puts us in a tough position when no bindings are found during Read(). Do we return bindings = null or bindings = {}?
Possible workarounds:
continue to disallow bindings = [] and store a hint about the prior binding configuration in the state (private state?)
allow both null and {} bindings, and create a custom type which treats these as semantically equal. - possible strange feeling behavior where data source returns different style than used in resource.
disallow VN bindings with Apstra 5.x - force users to use new vn_binding resource (does not currently exist)
I think that a user creating a VN with bindings, then deleting those bindings (possible with 5.x) will find that the bindings do not go away.
This is consistent with terraform's "I don't care about that value" approach, but puts us in a tough position when no bindings are found during
Read()
. Do we returnbindings = null
orbindings = {}
?Possible workarounds:
bindings = []
and store a hint about the prior binding configuration in the state (private state?)null
and{}
bindings, and create a custom type which treats these as semantically equal. - possible strange feeling behavior where data source returns different style than used in resource.vn_binding
resource (does not currently exist)