-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: under reviewFurther discussion is needed to determine this issue's scope and/or implementationFurther discussion is needed to determine this issue's scope and/or implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.6-beta1
Python version
3.10
Steps to Reproduce
- Create a tenant and note the ID
- Create a VLAN group and note the ID
- Run a POST to `api/ipam/vlan-groups//available-vlans/ like:
curl -X 'POST' \
'https://demo.netbox.dev/api/ipam/vlan-groups/2/available-vlans/' \
-d '{
"name": "a_VLAN_name",
"tenant": 2
}'
Expected Behavior
A new VLAN should be created
Observed Behavior
Bad request is returned with an error message that indicates that the deserialization used the tenant object instead of the ID:
"tenant": [
"Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: Strickland Propane"
]
}
Metadata
Metadata
Assignees
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: under reviewFurther discussion is needed to determine this issue's scope and/or implementationFurther discussion is needed to determine this issue's scope and/or implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application