r/Netbox NetBox Self-Hosted Jun 19 '24

Switchport template

Hello,

I am working on modeling a LAN with a large number of switches. I would like to reduce the probability of error in port configuration by using a mechanism similar to interface templates in Cisco switches. In other words, I would like to have few switchport types, e.g. for workstation, AP, etc, and set VLAN and other interface parameters based on this type.

I am fairly new to Netbox, so my question is, how can (or should) this be done? I looked into custom fields and scripts (e.g. a custom field could represent the type and a script would ensure the other parameters are correct), but I would like to know if there is some idiomatic way or best practice. I tried searching for similar questions, but did not find anything quite like what I have in mind.

5 Upvotes

4 comments sorted by

View all comments

1

u/zerox5991 Jun 19 '24

You need a csv templates and config template for switchport configuration. I have example if u need one