Skip to content

Interface Bulk Upload can create invalid WWN values #20647

@cruse1977

Description

@cruse1977

NetBox Edition

NetBox Community

NetBox Version

v4.4.4

Python Version

3.10

Steps to Reproduce

  1. Create a device example - "dmi-akron-sw01",
  2. Bulk Upload an interface with the following data
device, name, type, wwn
"dmi01-akron-sw01", "test-interface2", "25gbase-x-sfp28", ""

Expected Behavior

In the changelog, wwn should either be set to null, or disallowed due to an empty string

Observed Behavior

Interface allows to be created - however this then prevents branches from merging:

        "Applying change DCIM | interface Eth1/1/1 created by admin using default",
        "['Invalid WWN format: ']: (dcim.interface:pk=81563) field_value was ''"

Leaving this blank in the UI and creating an interface WWN is always set to null:

Image

However with the CSV its "" - causing branch merges to fail:

Image

Metadata

Metadata

Assignees

Labels

netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions