netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.93k stars 2.56k forks source link

Allow multiple physical interfaces to be assigned to a bridge #15649

Closed Gaming4LifeDE closed 5 months ago

Gaming4LifeDE commented 6 months ago

NetBox version

v3.7.5

Feature type

Data model extension

Proposed functionality

I want to be able to assign multiple physical interfaces to a bridge interface

Use case

I have a MikroTik Router. You allow switching between groups by creating a bridge. This bridge get the physical ports assigned to it. I want to be able to replicate this in NetBox so I can implement this with my automation.

Database changes

The "Bridged Interface" field would need to be turned into a list.

External dependencies

No response

jeffgdotorg commented 5 months ago

Thanks for your interest in improving NetBox.

The functionality you propose already exists. This is just a case of the workflow for populating a bridge working in a way that differs from your expectation.

To model a multiaccess bridged segment, first create a virtual interface (e.g. br0) of type Bridge. Then, in a separate step, set the Bridged interface attribute of each member physical interface (e.g. eth0, eth1...) to the virtual bridge interface previously created. Now if you visit the details of br0 you'll see eth0 and eth1 listed under the Bridge Interfaces heading.

Gaming4LifeDE commented 5 months ago

This should really be documented.

A "How do I document xxx" section in the docs would be really cool