Skip to main content

Adds some functionality to netbox templates and config render.

Project description

Netbox Better Templates Plugin

Adds some functionality to netbox templates and config render. The plugin uses Monkey-patching and injects extensions into the netbox render method.

Installation

  1. Install plugin with pip
cd /opt/netbox
source venv/bin/activate
pip install netbox_better_templates
  1. Add netbox_better_templates to local_requirements.txt file

  2. Edit the PLUGINS in configuration.py

PLUGINS = [
    'netbox_better_templates'
]

Added Functions

  • datetime: adds datetime to config templates.
{{ datetime.now() }}
  • now: standard now function of datetime.
{{ now() }}

contributors are welcome. fork for any changes you want to make

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_better_templates-1.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

netbox_better_templates-1.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file netbox_better_templates-1.0.2.tar.gz.

File metadata

  • Download URL: netbox_better_templates-1.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for netbox_better_templates-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6b99e5e8feae48dc9afa0f94d8f971e076fe71003b1785dc886ba0a9a8975701
MD5 8a367c77c6ea670a4987db9c73039d34
BLAKE2b-256 5501c6a4f2058738f7eb5e729920d2157fc3bde5156e2ea21dd6b282a2f239bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_better_templates-1.0.2.tar.gz:

Publisher: python-publish.yml on Radin-System/netbox-better-templates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netbox_better_templates-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_better_templates-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf58fe555ad27b46d05aae4d988d970a965df443b8b5b7d04a370c6b57ddb9b
MD5 810d0dd983189ff83fa842e84c99f2c4
BLAKE2b-256 4b8b67f9886ddac72572d45fbf99d1708b2871f121c75711db5445a1ea39213c

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_better_templates-1.0.2-py3-none-any.whl:

Publisher: python-publish.yml on Radin-System/netbox-better-templates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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