Skip to content

Random Netbox Scripts for Random Netbox Tasks

License

Notifications You must be signed in to change notification settings

thatmattlove/netbox-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netbox-utils

Collection of random python scripts written to automate things I do regularly in Netbox. Mostly written using pynetbox.

Index

Script Purpose Status
tenant_create.py Asks for input, creates tenant based on input Functional
tenant_prefixes.py Pulls a list of prefixes assigned to a particular tenant and belonging to a particular role Functional

Configuration

Clone example configuration:

# cp ./netbox_config_example.py ./netbox_config.py

And add your Netbox URL & API Token:

netbox_url = "example.domain.tld"
netbox_token = "0123456789"

tenant_prefixes.py

Usage

# python3 ./tenant_prefixes.py <tenant slug> <prefix role>

License

WTFPL

About

Random Netbox Scripts for Random Netbox Tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages