feat: add site prefix column to device and rack tables

- derive prefix from the first word of the site name
- display prefix as the first data column
- support NetBox 4.6.5 through 4.6.x
- add packaging, installation documentation, and tests
This commit is contained in:
2026-07-23 10:36:57 +02:00
commit 27cc25f648
8 changed files with 182 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from netbox.plugins import PluginConfig
class SitePrefixConfig(PluginConfig):
name = "netbox_site_prefix"
verbose_name = "Site Prefix"
author = "LKE"
description = "Shows the first word of the site name in device and rack tables."
version = "1.0.0"
min_version = "4.6.5"
max_version = "4.6.99"
def ready(self):
super().ready()
# Importing the module registers its columns with NetBox.
from . import tables # noqa: F401
config = SitePrefixConfig