Skip to content

The Site ID variable on cable termination objects is not updated when nested locations are moved from one site to another. #12474

@Chiniquy

Description

@Chiniquy

NetBox version

v.3.5.0

Python version

3.10

Steps to Reproduce

Create Site 1
Create Location 1 in Site 1
Create Sublocation 1 in Site 1 with Location 1 as parent
Create Rack 1 in Sublocation 1
Create Device 1 in Rack 1
Create Device 2 in Rack 1
Create an interface in each device
Create a cable linking these interfaces together

Create Site nr 2
Move Location 1 from Site 1 to Site 2
Delete Site 1

Expected Behavior

Site 1 should be deleted

Observed Behavior

Site is not deleted, even though it is empty.
Throws error
<class 'IndexError'>
list index out of range

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