Fixes #20197: Correct validation for virtual chassis parent interface #1263

Closed
opened 2026-04-05 22:41:49 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 9/12/2025

Fixes: #20197

Summary
Fixes an AttributeError during parent interface validation by checking the VC on devices (use self.device.virtual_chassis and self.parent.device.virtual_chassis). This allows a parent on another member of the same VC and rejects mismatches.

Thanks @elipsion for the STR and for pointing out the incorrect reference.

*Originally created by @pheus on 9/12/2025* <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #20197 **Summary** Fixes an `AttributeError` during parent interface validation by checking the VC on **devices** (use `self.device.virtual_chassis` and `self.parent.device.virtual_chassis`). This allows a parent on another member of the same VC and rejects mismatches. Thanks @elipsion for the STR and for pointing out the incorrect reference.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1263