-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface Type Bridge #6170
Comments
I guess I'm missing the distinction between a "bridge" interface and a "virtual" interface. Is it just that you want a way to indicate that a parent interface supports data forwarding among its child interfaces? |
When I think of a virtual interface I think of a VIP on a router or other device that might float back and forth between different interfaces on a box. A bridge is typically used on a host machine that contains virtual machines that connect to the bridges on the host. I could see value in having a bridge interface type. |
Exactly. I'm coming from a Linux background I want to distinguish between these scenarios:
This would mean that it most likely would be a good idea to allow denoting the interface type bridge in a VM, too (which I use regularly in our community ISP for example). So this would mean having a choice of "virtual interface type", too, which currently would allow "virtual" and "bridge". I hope that clarifies my thoughts a bit :-) |
Ok, so is the scope of this proposal limited to simply introducing a |
Yes exactly that. For devices and - on 2nd thought - for VMs, too. But that's all I'm wishing for :-) |
That said, a chat discussion about this just lead to a shortcoming of my proposal. Consider the following:
So it might be worth thinking about my proposal from #5402 to add a bridge relationship like the current LAG relationshop where bridge member interfaces have the bridge they belong to set explicitly. Which obviously would warrant an interface type bridge, too, but a little(?) bit of special handling same as for LAGs. That would be the A+ solution IMHO. |
You run into a similar problem trying to define tagged subinterfaces, e.g. |
I'm unsure in which relationship those interface would be. Are we talkinga about Following the the "bridge ports are modeled like LAG members" this should be possible though as |
Tagged subinterfaces on a physical interface assigned to a bridge group. The subinterface is a child of its physical interface, but a member of the bridge group. I agree that this is best modelled by introducing a new "bridge member" relationship separate from the parent assignment. |
Good discussion above. I've opened #6346 to replace this issue with a clearer scope. |
NetBox version
v2.11
Feature type
Data model extension
Proposed functionality
I just saw the update on #5402 and I think there is a trivial thing missing which would aid modeling bridges even further.
I propose to add an Interface type "Bridge" to denote an interface is a bridge (for whatever definition that may be in your environment). With #1519 in play modeling the relationship is possibe but one would have to rely on naming convention, tags or a custom attribute to denote that a given interface is in fact a bridge. Having the choice to indicate this by setting the interface type to bridge seems better.
I really just thought about #1519 in context of bridges today but were to slow to add a comment to #5402 obviously ;-)
Use case
Use cases may be Linux-based KVM hosts, VPLS/EVPN setups etc.
Database changes
I think this does not warrant a database change but just a new entry for the Interface types
External dependencies
None
The text was updated successfully, but these errors were encountered: