Fixes #20042: Support Bridge-Interfaces in Interface-Template Import #1466

Closed
opened 2026-04-06 02:00:09 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @m-hau on 8/12/2025

Fixes: #20042

When importing device- or module-types, allow their interface-templates to contain the bridge attribute and properly save it.


The unexpectedly hardest part was finding the right place to hook into the existing process, which in this cases required to create an entirely new hook-point. While developing and testing I also found some other minor bugs in the generalized import validation, and attempted to fix them. Please see the individual commit messages for more information.

*Originally created by @m-hau on 8/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: #20042 <!-- Please include a summary of the proposed changes below. --> When importing device- or module-types, allow their interface-templates to contain the `bridge` attribute and properly save it. <hr> The unexpectedly hardest part was finding the right place to hook into the existing process, which in this cases required to create an entirely new hook-point. While developing and testing I also found some other minor bugs in the generalized import validation, and attempted to fix them. Please see the individual commit messages for more information.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1466