Skip to main content

NetBox plugin for rendering a configurable dynamic menu.

Project description

py-netbox-dynamicmenu

Dieses Projekt ist als NetBox-Plugin vorbereitet und rendert ein konfigurierbares Menue ohne Anpassungen an NetBox-Templates direkt ueber eine PluginTemplateExtension in der Navbar.

Aktueller Stand

  • Datenmodell fuer frei definierbare Menueeintraege vorhanden
  • Darstellung ohne manuelle Template-Anpassung an NetBox umgesetzt
  • Plugin-Menueeintrag unter Plugins fuer die native Verwaltung vorhanden
  • Batch fuer fetch plus push vorhanden: git_push_origin.bat

Installation

Das Plugin im NetBox-Venv installierbar machen:

pip install -e .

In configuration.py aktivieren:

PLUGINS = [
    "netbox_dynamic_menu",
]

PLUGINS_CONFIG = {
    "netbox_dynamic_menu": {
        "menu_label": "Dynamic Menu",
    }
}

Danach die Migrationen anwenden:

python manage.py migrate

Verwaltung

Die Eintraege koennen ueber Plugins > Dynamic Menu > Menu Items innerhalb von NetBox angelegt, bearbeitet und geloescht werden.

Legacy-Hinweis

Der fruehere Ansatz ueber {% load dynamic_menu %} und ein manuelles Einbinden in Base- oder Sidebar-Templates ist weiterhin als Hilfsfunktion vorhanden, wird fuer NetBox aber nicht mehr empfohlen.

Berechtigungen

required_permission muss als vollstaendiger Django-Permission-Name gepflegt werden, zum Beispiel:

dcim.view_site
extras.view_tag
netbox_dynamic_menu.view_menuitem

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_dynamicmenu-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_dynamicmenu-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file netbox_dynamicmenu-0.1.0.tar.gz.

File metadata

  • Download URL: netbox_dynamicmenu-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for netbox_dynamicmenu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9fd9b5dd79924a24152245aecfefe78c1ef45dc5f0d536efebfbbcce1c6e5262
MD5 6f0404d6d4dc8180db617ed1a844ca9b
BLAKE2b-256 fc63bff37e250e6d03e66d4503819c0e443ff14f35eb3c2fb2c8fec72db5a518

See more details on using hashes here.

File details

Details for the file netbox_dynamicmenu-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_dynamicmenu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa484f3477bc2265374c92558172c807ede038ece360c8b0691d6a5281e7325b
MD5 dd2b5ac6f113764c45f8f05e5a785e15
BLAKE2b-256 04038fda593901c6d678d717704c9b36766d8b6841712eab0d0bde7ce07099fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page