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
I tried to remove master of virtual chassis using REST API (punautobot), but got error. The error shows on server as Bad request in django.requests. It's possible to do it in UI, but not in API. As per @glennmatthews the fix is to add allow_null=True to nautobot.dcim.api.serializers.VirtualChassisSerializer.master
See thread on Slack: https://networktocode.slack.com/archives/C01NWPK6WHL/p1645551180089729
Steps to Reproduce
Create virtual chassis
Create device
Add device to virtual chassis
Set the device as master of the virtual chassis
Try to clear master of the virtual chassis using API
Expected Behavior
Chassis has no master, the device is assigned to the virtual chassis
Observed Behavior
{'master': ['This field may not be null.']}
The text was updated successfully, but these errors were encountered:
Environment
I tried to remove master of virtual chassis using REST API (punautobot), but got error. The error shows on server as
Bad request
indjango.requests
. It's possible to do it in UI, but not in API. As per @glennmatthews the fix is to addallow_null=True
tonautobot.dcim.api.serializers.VirtualChassisSerializer.master
See thread on Slack: https://networktocode.slack.com/archives/C01NWPK6WHL/p1645551180089729
Steps to Reproduce
Expected Behavior
Chassis has no master, the device is assigned to the virtual chassis
Observed Behavior
{'master': ['This field may not be null.']}
The text was updated successfully, but these errors were encountered: