diff --git a/.travis.yml b/.travis.yml index 475cb65..3362015 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ env: - NETBOX_VER=v2.9.11 - NETBOX_VER=v2.10.10 - NETBOX_VER=v2.11.10 + - NETBOX_VER=v3.0.12 + - NETBOX_VER=v3.1.0 # Encrypted value for PYPI_TOKEN, this secret has been generated with the following command # travis encrypt PYPI_TOKEN= --add env.global --com # Might need to update it once the repo is publish (travis-ci.org vs travis-ci.com) diff --git a/development/configuration.py b/development/configuration.py index ebfb1ba..14aeb0c 100644 --- a/development/configuration.py +++ b/development/configuration.py @@ -10,6 +10,7 @@ NETBOX_RELEASE_28 = version.parse("2.8") NETBOX_RELEASE_29 = version.parse("2.9") NETBOX_RELEASE_212 = version.parse("2.12") +NETBOX_RELEASE_30 = version.parse("3.0") # Enforce required configuration parameters for key in [ @@ -104,7 +105,7 @@ def is_truthy(arg): # NetBox 2.8.x Specific Settings REDIS["caching"]["DEFAULT_TIMEOUT"] = 300 REDIS["tasks"]["DEFAULT_TIMEOUT"] = 300 -elif NETBOX_RELEASE_CURRENT < NETBOX_RELEASE_212: +elif NETBOX_RELEASE_CURRENT < NETBOX_RELEASE_30: RQ_DEFAULT_TIMEOUT = 300 else: raise ImproperlyConfigured(f"Version {NETBOX_RELEASE_CURRENT} of NetBox is unsupported at this time.") diff --git a/netbox_onboarding/__init__.py b/netbox_onboarding/__init__.py index 913f6ca..78cbd96 100644 --- a/netbox_onboarding/__init__.py +++ b/netbox_onboarding/__init__.py @@ -12,7 +12,7 @@ limitations under the License. """ -__version__ = "2.2.0" +__version__ = "3.0.0" from extras.plugins import PluginConfig @@ -28,7 +28,7 @@ class OnboardingConfig(PluginConfig): base_url = "onboarding" required_settings = [] min_version = "2.8.1" - max_version = "2.11.99" + max_version = "3.1.99" default_settings = { "create_platform_if_missing": True, "create_manufacturer_if_missing": True, diff --git a/pyproject.toml b/pyproject.toml index 3c52030..e470148 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ntc-netbox-plugin-onboarding" -version = "2.2.0" +version = "3.0.0" description = "A plugin for NetBox to easily onboard new devices." authors = ["Network to Code, LLC "] license = "Apache-2.0" @@ -18,7 +18,7 @@ packages = [ ] [tool.poetry.dependencies] -python = "^3.6 || ^3.7 || ^3.8" +python = "^3.7 || ^3.8 || ^3.9" napalm = ">=2.5.0, <4" zipp = "^3.4.0"