Skip to content

Cable Bulk Uploads allow mark_connected AND a cable to be present (validation error) #20646

@cruse1977

Description

@cruse1977

NetBox Edition

NetBox Community

NetBox Version

v4.4.4

Python Version

3.10

Steps to Reproduce

  1. Create a device (eg: dmi-albany-rtr01) with interfaces GigabitEthernet0/1/6 and GigabitEthernet0/1/7 in a site "DM-Albany"

  2. On dmi01-albany-rtr01, set interface GigabitEthernet0/1/6 as mark connected and save.

  3. Bulk Upload the following

side_a_device, side_a_type, side_a_name, side_b_device, side_b_type, side_b_name, side_a_site, side_b_site
"dmi01-albany-rtr01", "dcim.interface", "GigabitEthernet0/1/6", "dmi01-albany-rtr01", "dcim.interface", "GigabitEthernet0/1/7", "DM-Albany", "DM-Albany"

Expected Behavior

Upload fails due to mark_connected being set, and adding a cable to that interface

Observed Behavior

Cable is allowed, however this will manifest in netbox-branching as a branch failing to sync or merge, due to the validation error of mark_connected AND cable - Screenshot showing the update change entry which will cause this:

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