* [up] add config for custom images, better js * [up] use bundler to bundle js * [fix] remove domcontentloaded since defer is used * [fix] formatting with black * [fix] images drf api * [up] add support for custom icons on additional roles: power panel, power feed, circuit * [up] optimize topology generation by using `_id` when trying to access pk of related object * [fix] kebab case instead of slugification * [fix] use empty queryset in api views & change coord save logic
36 lines
996 B
Python
36 lines
996 B
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 = "3.0.1"
|
|
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": [],
|
|
"static_image_directory": "netbox_topology_views/img",
|
|
"allow_coordinates_saving": False,
|
|
"always_save_coordinates": False,
|
|
"preselected_tags": [],
|
|
"draw_default_layout": False,
|
|
}
|
|
|
|
|
|
config = TopologyViewsConfig
|