Skip to content

Commit 6a29138

Browse files
committed
Compatibility with NetBox 4.4.*
1 parent d44821b commit 6a29138

File tree

7 files changed

+77
-64
lines changed

7 files changed

+77
-64
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Load data from YAML files into Netbox
77
First activate your virtual environment where Netbox is installed, the install the plugin version correspondig to your Netbox version.
88

99
```bash
10-
pip install "netbox-initializers==4.3.*"
10+
pip install "netbox-initializers==4.4.*"
1111
```
1212

1313
Then you need to add the plugin to the `PLUGINS` array in the Netbox configuration.
@@ -38,6 +38,6 @@ The initializers where a part of the Docker image and where then extracted into
3838
To use the new plugin in a the Netbox Docker image, it musst be installad into the image. To this, the following example can be used as a starting point:
3939

4040
```dockerfile
41-
FROM netboxcommunity/netbox:v4.3
42-
RUN /opt/netbox/venv/bin/pip install "netbox-initializers==4.3.*"
41+
FROM netboxcommunity/netbox:v4.4
42+
RUN /opt/netbox/venv/bin/pip install "netbox-initializers==4.4.*"
4343
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build-backend = "hatchling.build"
2828
path = "src/netbox_initializers/version.py"
2929

3030
[tool.uv]
31-
dev-dependencies = ["ruff==0.9.3"]
31+
dev-dependencies = ["ruff==0.12"]
3232

3333
[tool.ruff]
3434
line-length = 100

src/netbox_initializers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class NetBoxInitializersConfig(PluginConfig):
99
description = "Load initial data into Netbox"
1010
version = VERSION
1111
base_url = "initializers"
12-
min_version = "4.3.0"
13-
max_version = "4.3.99"
12+
min_version = "4.4.0"
13+
max_version = "4.4.99"
1414

1515

1616
config = NetBoxInitializersConfig

src/netbox_initializers/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "4.3.0"
1+
VERSION = "4.4.0"

test/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM netboxcommunity/netbox:v4.3
1+
FROM netboxcommunity/netbox:v4.4
22

33
COPY ../ /opt/netbox-initializers/
44
COPY ./test/config/plugins.py /etc/netbox/config/

test/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ services:
1414
dockerfile: test/Dockerfile
1515
# postgres
1616
postgres:
17-
image: postgres:15-alpine
17+
image: docker.io/postgres:17-alpine
1818
env_file: env/postgres.env
1919
volumes:
2020
- netbox-postgres-data:/var/lib/postgresql/data
2121

2222
# redis
2323
redis:
24-
image: redis:7-alpine
24+
image: docker.io/valkey/valkey:8.1-alpine
2525
command:
2626
- sh
2727
- -c # this is to evaluate the $REDIS_PASSWORD from the env
@@ -30,7 +30,7 @@ services:
3030
volumes:
3131
- netbox-redis-data:/data
3232
redis-cache:
33-
image: redis:7-alpine
33+
image: docker.io/valkey/valkey:8.1-alpine
3434
command:
3535
- sh
3636
- -c # this is to evaluate the $REDIS_PASSWORD from the env

uv.lock

Lines changed: 66 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)