Skip to content

Invalid value assigned to "Global" option for VRF field in IP address form #7123

@jeremystretch

Description

@jeremystretch

NetBox version

v3.0.0

Python version

3.7

Steps to Reproduce

  1. Navigate to IPAM > IP addresses > Add
  2. 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 implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions