Skip to content

Bridge Interface Parameters: Protocol-Mode and VLAN-Filtering #17798

Discussion options

You must be logged in to vote

That's protocol-mode=none|stp|rstp|mstp; vlan-filtering=yes|no

To be honest, I would expect that to be hard-wired into the template, which is written for how you want the device to run. If you really need to set them differently on different bridges in different devices, then I guess each bridge would be a bridge interface in Netbox, and you could add a custom field or tag on that interface for those options.

I did experiment with generating some interface configs on Mikrotik a while back, but I am not using them in practice. Here are the templates in case they are useful.

{%- set dif = device.interfaces.exclude(type="virtual") %}
{%- for v in device.site.vlans.all() %}
{%- set ift = ((di…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@paulcarre07
Comment options

@candlerb
Comment options

Answer selected by paulcarre07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants