Skip to content

NetBox plugin example to show how to display arbitrary external data in the NetBox GUI

License

Notifications You must be signed in to change notification settings

markkuleinio/netbox-external-data-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetBox External Data List Plugin

This is an example plugin for NetBox, showing how to show list-formatted external data in the NetBox GUI.

NetBox External Data List

Installation

cd /opt/netbox
sudo venv/bin/pip install git+https://github.com/markkuleinio/netbox-external-data-list
echo git+https://github.com/markkuleinio/netbox-external-data-list | sudo tee -a local_requirements.txt

Add the plugin in the NetBox configuration in /opt/netbox/netbox/netbox/configuration.py:

PLUGINS = ["netbox_external_data_list"]

Restart NetBox:

sudo systemctl restart netbox netbox-rq

Features

  • A data list view (page) that can be populated from whatever data (see views.py)
  • The view has pagination and column sorting
  • There is a menu item in the main NetBox menu (can be removed if not needed, the view can be directly linked as https://your-netbox-server-address/plugins/externaldata/datalist/)
  • The output is rendered using a Django template (see the templates directory)
  • The view has restricted permissions by default (can be removed if not needed): must have View access to prefixes to see the page
  • Tested with NetBox 3.7

About

NetBox plugin example to show how to display arbitrary external data in the NetBox GUI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published