Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Sep 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.

Fixes an issue where parent interface validation could improperly check
virtual chassis across devices. Ensures accurate validation by
referencing the correct parent device and virtual chassis relationships.

Fixes netbox-community#20197
@pheus pheus marked this pull request as ready for review September 12, 2025 12:25
@jnovinger jnovinger requested review from a team, jeremystretch and jnovinger and removed request for a team and jeremystretch September 12, 2025 12:39
@jnovinger jnovinger merged commit 103939a into netbox-community:main Sep 12, 2025
7 checks passed
@pheus pheus deleted the 20197-fix-parent-interface-assignment-validation-for-virtual-chassis branch September 12, 2025 13:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interface parent virtual chassis validation error

2 participants