* Change extras.plugins to netbox.plugins (#487) * Remove ButtonColorChoices (#491) * remove is_htmx * fieldset update * Additions to 477 prepare for netbox 4.0 (#504) * Re-add overriding of default_renderer Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * Restore i18n of field names Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * Remove unnecessary FieldSets Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * Remove trailing whitespaces in forms.py Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * Fix error in resizeCanvas Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * Remove btn-sm class from buttons Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * Use htmx_partial instead of request.htmx Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> --------- Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> * fix choises * fix color switcher (use new attribute) * fix htmx filter * 4.0.0-beta.1 release --------- Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org> Co-authored-by: Mario <github@franzbonenkamp.de> Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>
26 lines
666 B
Python
26 lines
666 B
Python
from netbox.plugins import PluginConfig
|
|
|
|
|
|
class TopologyViewsConfig(PluginConfig):
|
|
name = "netbox_topology_views"
|
|
verbose_name = "Topology views"
|
|
description = "An plugin to render topology maps"
|
|
version = "4.0.0-beta.1"
|
|
author = "Mattijs Vanhaverbeke"
|
|
author_email = "author@example.com"
|
|
base_url = "netbox_topology_views"
|
|
required_settings = []
|
|
default_settings = {
|
|
"static_image_directory": "netbox_topology_views/img",
|
|
"allow_coordinates_saving": False,
|
|
"always_save_coordinates": False,
|
|
}
|
|
|
|
def ready(self):
|
|
from . import signals
|
|
|
|
super().ready()
|
|
|
|
|
|
config = TopologyViewsConfig
|