Fixes #21808: Prevent errors when viewing Virtual Interfaces without a Virtual Circuit Termination #30

Closed
opened 2026-04-05 16:21:15 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 4/1/2026

Fixes: #21808

This fixes a regression in the virtual interface detail view introduced during the UI layout migration.

VirtualCircuitPanel accessed object.virtual_circuit_termination directly, which can raise RelatedObjectDoesNotExist for virtual interfaces without a related termination. This change handles that case gracefully and skips rendering the panel when no termination exists, restoring the previous behavior and preventing a server error when opening the interface detail page.

*Originally created by @pheus on 4/1/2026* ### Fixes: #21808 This fixes a regression in the virtual interface detail view introduced during the UI layout migration. `VirtualCircuitPanel` accessed `object.virtual_circuit_termination` directly, which can raise `RelatedObjectDoesNotExist` for virtual interfaces without a related termination. This change handles that case gracefully and skips rendering the panel when no termination exists, restoring the previous behavior and preventing a server error when opening the interface detail page.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#30