* init for v3.1 * added coords + bump version * fix filter + added preselected roles * added draw_default_layout * upgraded packages * fixed edge/node labels * fixed enable_circuit_terminations * added filter for unconnected devices * added ignore_cable_type * fixed old settings using a string instead of array * removed distutils * fixed coords check * added coor saving * added doc img * updated docs * bump version * bump version
23 lines
1.0 KiB
Python
23 lines
1.0 KiB
Python
from extras.plugins import PluginConfig
|
|
|
|
class TopologyViewsConfig(PluginConfig):
|
|
name = 'netbox_topology_views'
|
|
verbose_name = 'Topology views'
|
|
description = 'An plugin to render topology maps'
|
|
version = '1.0.0'
|
|
author = 'Mattijs Vanhaverbeke'
|
|
author_email = 'author@example.com'
|
|
base_url = 'netbox_topology_views'
|
|
required_settings = []
|
|
default_settings = {
|
|
'preselected_device_roles': ['Firewall', 'Router', 'Distribution Switch', 'Core Switch', 'Internal Switch', 'Access Switch', 'Server', 'Storage', 'Backup', 'Wireless AP'],
|
|
'ignore_cable_type': ['power outlet','power port'],
|
|
'device_img': ['access-switch', 'core-switch', 'firewall', 'router', 'distribution-switch', 'backup', 'storage,wan-network', 'wireless-ap', 'server', 'internal-switch', 'isp-cpe-material', 'non-racked-devices', 'power-units'],
|
|
'allow_coordinates_saving': False,
|
|
'preselected_tags' : [],
|
|
'enable_circuit_terminations': True,
|
|
'draw_default_layout': False
|
|
}
|
|
|
|
config = TopologyViewsConfig
|