From 6bde8de5b78bf3168d9f8fb248f4e733f0516fd8 Mon Sep 17 00:00:00 2001 From: derek-shnosh <21090563+derek-shnosh@users.noreply.github.com> Date: Sun, 10 Aug 2025 18:59:33 -0600 Subject: [PATCH] Add support for NetBox 4.3 --- README.md | 2 +- netbox_plugin_mclag/__init__.py | 2 +- netbox_plugin_mclag/template_content.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7070215..9d6138a 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ exit ## Supported versions -The current version of the `netbox-plugin-mclag` plugin has been developed for Netbox 4.2. and is not supported on older versions. +This version of the `netbox-plugin-mclag` plugin has added compatibility for NetBox 4.3 and should have backwards compatibility with NetBox 4.2. It is not supported on older versions. The plugin has been developed for Python 3.12.3, but I expect it to work with any Python version supported by Netbox. diff --git a/netbox_plugin_mclag/__init__.py b/netbox_plugin_mclag/__init__.py index f21b306..8616784 100644 --- a/netbox_plugin_mclag/__init__.py +++ b/netbox_plugin_mclag/__init__.py @@ -5,7 +5,7 @@ class NetBoxMcLagConfig(PluginConfig): name = "netbox_plugin_mclag" verbose_name = "Multi-Chassis LAG" description = "Manage Multi-Chassis Link Aggregation Groups in Netbox (MC-LAG / MLAG / vPC / etc)" - version = "0.2.0" + version = "0.2.2" base_url = "mclag" diff --git a/netbox_plugin_mclag/template_content.py b/netbox_plugin_mclag/template_content.py index 2e4c546..de3c9c8 100644 --- a/netbox_plugin_mclag/template_content.py +++ b/netbox_plugin_mclag/template_content.py @@ -4,7 +4,8 @@ class McLagInterfaceExtensions(PluginTemplateExtension): - model = "dcim.interface" + model = "dcim.interface" # NB = 4.2 + models = ("dcim.interface",) # NB >= 4.3 def buttons(self): interface = self.context["object"] @@ -33,7 +34,8 @@ def buttons(self): class McLagDeviceExtensions(PluginTemplateExtension): - model = "dcim.device" + model = "dcim.device" # NB = 4.2 + models = ("dcim.device",) # NB >= 4.3 def buttons(self): device = self.context["object"]