Skip to content

Commit cf86419

Browse files
authored
basic support for v4.2 (#592)
* basic support for v4.2 * bump versions * update readme with versions * upgrade version for v4.1.X
1 parent 2893fff commit cf86419

File tree

9 files changed

+391
-128
lines changed

9 files changed

+391
-128
lines changed

Diff for: README.md

+11-13
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,19 @@ python3 manage.py collectstatic --no-input
4848

4949
### Versions
5050

51+
> [!NOTE]
52+
> If the version of netbox is not listed here the plugin will most likely not work. Remove the plugin if you want to update netbox before this plugin has released an update for that netbox version.
53+
5154
| netbox version | netbox-topology-views version |
5255
| -------------- | ----------------------------- |
53-
| >= 4.1.0 | >= v4.1.0 |
54-
| >= 4.0.0 | >= v4.0.0 |
55-
| >= 3.7.0 | >= v3.9.0 |
56-
| >= 3.6.4 | >= v3.8.1 |
57-
| >= 3.6.0 | >= v3.7.X |
58-
| >= 3.5.0 | >= v3.4.X |
59-
| >= 3.4.0 | >= v3.X.X |
60-
| >= 3.3.0 | >= v3.0.0 |
61-
| >= 3.2.0 | >= v1.1.0 |
62-
| >= 3.1.8 | >= v1.0.0 |
63-
| >= 2.11.1 | >= v0.5.3 |
64-
| >= 2.10.0 | >= v0.5.0 |
65-
| < 2.10.0 | =< v0.4.10 |
56+
| = 4.2.0 | = v4.2.0 |
57+
| = 4.1.X | = v4.1.0 |
58+
| = 4.0.X | = v4.0.0 |
59+
| = 3.7.0 | = v3.9.0 |
60+
| = 3.6.4 | = v3.8.1 |
61+
| = 3.6.0 | = v3.7.0 |
62+
| = 3.5.0 | = v3.6.2 |
63+
6664

6765
### Update
6866

Diff for: dev_setup/docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
version: '3.4'
22
services:
33
postgres:
4-
image: postgres:12-alpine
4+
image: postgres:16-alpine
55
environment:
66
POSTGRES_PASSWORD: J5brHrAXFLQSif0K #just for local dev
77
POSTGRES_DB: netbox
88
POSTGRES_USER: netbox
99
ports:
1010
- "5432:5432"
1111
volumes:
12-
- netbox-postgres-data:/var/lib/postgresql/data
12+
- netbox-postgres-data-16:/var/lib/postgresql/data
1313

1414
redis:
1515
image: redis:6-alpine
@@ -35,7 +35,7 @@ services:
3535
- "6378:6379"
3636

3737
volumes:
38-
netbox-postgres-data:
38+
netbox-postgres-data-16:
3939
driver: local
4040
netbox-redis-data:
4141
driver: local

Diff for: netbox-plugin.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
version: 0.1
22
package_name: netbox-topology-views
33
compatibility:
4+
- release: 4.2.0
5+
netbox_min: 4.2.0
6+
netbox_max: 4.2.1
47
- release: 4.1.0
58
netbox_min: 4.1.0
6-
netbox_max: 4.1.4
9+
netbox_max: 4.1.11
710
- release: 4.0.1
811
netbox_min: 4.0.9
912
netbox_max: 4.0.11

Diff for: netbox_topology_views/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class TopologyViewsConfig(PluginConfig):
55
name = "netbox_topology_views"
66
verbose_name = "Topology views"
77
description = "An plugin to render topology maps"
8-
version = "4.1.0"
8+
version = "4.2.0"
99
author = "Mattijs Vanhaverbeke"
1010
author_email = "[email protected]"
1111
base_url = "netbox_topology_views"

Diff for: netbox_topology_views/filters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class DeviceFilterSet(NetBoxModelFilterSet, TenancyFilterSet, ContactModelFilter
7171
null_value=None,
7272
)
7373
mac_address = MultiValueMACAddressFilter(
74-
field_name='interfaces__mac_address',
74+
field_name='interfaces__mac_addresses__mac_address',
7575
label="MAC address",
7676
)
7777
serial = MultiValueCharFilter(

0 commit comments

Comments
 (0)