Skip to content

Repository with NetBox Config Templates for rendering device configurations.

License

Notifications You must be signed in to change notification settings

3roin/netbox-config-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netbox-config-templates

Description

This repository contains NetBox Config Templates for on-box rendering and storing device configurations. These templates may not suit all your requirements and are providing a general view of what you can achieve using some of the available NetBox built-in tools:

Folders and files

Each platform folder (eq. ios, junos, etc.) contains its Jinja configuration template and additional files that might be required to path any non-standard data that can't be stored in NetBox by default but is required for configuration rendering. Also, custom NetBox information is exported from the NetBox server where templates are being tested and stored in separate files whithin this repository.

Note: Use with caution and try any of the provided files on the test environment first as they may not be compatible with your existing platform and custom information.

For example, in order to create a static route configuration the template will try to parse the custom field named "Static routes" which is stored in JSON format for each device and has a specific structure. If this structure is changed for some reason you'll need to make proper changes to the all related Jinja configuration templates. Otherwise, unexpected behaviour such as wrong configuration or errors during the configuration rendering may happen. All required custom fields are stored in "netbox_custom fields.csv" file.

Templates overview

How to use

Import required jinja templates, custom information from the .csv files, and example files to store custom data.

Details are in progress . . .

Planned to be added

  • [+] Correct group configuration for Virtual-Chassis
  • [+] Include interfaces from all nodes if device is a part of Virtual-hassis
  • [+] Load-balance configuration for routing (The LAG hashing algorithm on EX Series switches is not user configurable)
  • [+] VRRP configuration
  • [+] Storm-Control
  • [+] DNS configuration
  • [+] System domain-name configuration
  • [+] NTP configuration
  • [+] Time-Zone configuration
  • [+] SNMP configuration
  • [+] Radius configuration
  • [+] TACACS+ configuration
  • [-] MSTP configuration
  • [-] DHCP server/relay configuration
  • [-] CoPP (Control-Plane Protection using lo0 filters)
  • [-] 802.1x authentication
  • [-] Port Security
  • [-] DHCP Security
  • [-] ARP Security
  • [-] OSPF configuration
  • [-] BGP configuration

NetBox version compatibility

All templates are tested and compatible with NetBox versions:

Version Compatibility
v3.5.3 [ + ]
v3.5.4 [ + ]

About

Repository with NetBox Config Templates for rendering device configurations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages