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
Error: unable to decode body: GET s/default/rest/networkconf/5b69042b78118a0f722cb8b2 unable to unmarshal alias: json: cannot unmarshal string into Go struct field .wan_vlan of type int
Looking at the JSON from the API, it is clear why: (formatted for readability and some values removed)
wan_vlan is expected to be an int, but is a string.
I have yet to test my theory, but I bet it would be possible to unmarshal into a json.Token and only if wan_vlan_enabled is true, actually set wan_vlan (and use an int typecast).
I would assume, this is the same for wan_egress_qos.
I'll fork this provider and try to provide a fix for this.
The text was updated successfully, but these errors were encountered:
I wanted to import my current
WAN
network into the terraform state viaBut I got this error:
Looking at the JSON from the API, it is clear why: (formatted for readability and some values removed)
wan_vlan
is expected to be an int, but is a string.I have yet to test my theory, but I bet it would be possible to unmarshal into a
json.Token
and only ifwan_vlan_enabled
is true, actually setwan_vlan
(and use an int typecast).I would assume, this is the same for
wan_egress_qos
.I'll fork this provider and try to provide a fix for this.
The text was updated successfully, but these errors were encountered: