-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.0.0
Python version
3.7
Steps to Reproduce
- Navigate to IPAM > IP addresses > Add
- Attempt to create an IP address with no VRF assigned (i.e. Global)
Expected Behavior
The IP address should be created successfully.
Observed Behavior
A ValueError exception is raised due to an invalid value for the vrf field:
Exception Type: ValueError at /ipam/ip-addresses/add/
Exception Value: Field 'id' expected a number but got 'Global'.
If we inspect the DOM, we can see that a literal value of Global has been erroneously set for the "Global" option (it should have a null value):
<option value="Global">Global</option>
This is being set by the frontend, but I haven't been able to narrow down exactly where. I suspect it might be related to the change in 093a86b for #7081.
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application