Collection of random python scripts written to automate things I do regularly in Netbox. Mostly written using pynetbox
.
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 |
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"
# python3 ./tenant_prefixes.py <tenant slug> <prefix role>