Bridge Interface Parameters: Protocol-Mode and VLAN-Filtering #17798
-
Hello everyone, I'm new to NetBox and working on creating a template for Mikrotik devices. In my template, I need to model a bridge interface, but I'm unsure how to configure the protocol-mode and vlan-filtering settings for a bridge interface. Could anyone provide guidance or examples on how to set this up in NetBox? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's 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.
Jinja2 is pretty ugly for that sort of stuff, and it may be better to do complex templating externally to Netbox. Since I wrote the above, Netbox has added new top-level model objects in the templates, so you should be able to replace
with
(untested) - so that you can find all Netbox VLANs, not just those directly linked to the Device's Site. But you'd need to decide how to deal with |
Beta Was this translation helpful? Give feedback.
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.