Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check support for NetBox 3 #146

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=<value> --add env.global --com
# Might need to update it once the repo is publish (travis-ci.org vs travis-ci.com)
Expand Down
3 changes: 2 additions & 1 deletion development/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down Expand Up @@ -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.")
Expand Down
4 changes: 2 additions & 2 deletions netbox_onboarding/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
limitations under the License.
"""

__version__ = "2.2.0"
__version__ = "3.0.0"

from extras.plugins import PluginConfig

Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -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"

Expand Down