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
We have a custom device status, "Racked" set up using the normal method in Netbox (no code change required in Netbox), but then when I search (client.DcimAPI.DcimDevicesList(ctx)) for devices (with or without filters) the client throws error:
DcimDevicesList failed, racked is not a valid DeviceStatusValue
My workaround is to add the custom statuses to model_device_status_label.go & model_device_status_value.go, but this requires a fork and change to generated code.
It would be good even if it failed to unmarshal those particular devices with custom statuses, at least the rest of the devices from the search (those with supported statuses) could be returned.
The text was updated successfully, but these errors were encountered:
I've also run into this. I have multiple custom statuses. This seems like a systemic problem since netbox allows custom choices for many different fields so this could happen with any number of fields, not just device status.
We have a custom device status, "Racked" set up using the normal method in Netbox (no code change required in Netbox), but then when I search (
client.DcimAPI.DcimDevicesList(ctx)
) for devices (with or without filters) the client throws error:DcimDevicesList failed, racked is not a valid DeviceStatusValue
My workaround is to add the custom statuses to model_device_status_label.go & model_device_status_value.go, but this requires a fork and change to generated code.
It would be good even if it failed to unmarshal those particular devices with custom statuses, at least the rest of the devices from the search (those with supported statuses) could be returned.
The text was updated successfully, but these errors were encountered: