Skip to content

Commit

Permalink
basic support for v4.2 (#592)
Browse files Browse the repository at this point in the history
* basic support for v4.2

* bump versions

* update readme with versions

* upgrade version for v4.1.X
  • Loading branch information
mattieserver authored Jan 10, 2025
1 parent 2893fff commit cf86419
Show file tree
Hide file tree
Showing 9 changed files with 391 additions and 128 deletions.
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,19 @@ python3 manage.py collectstatic --no-input

### Versions

> [!NOTE]
> 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.
| netbox version | netbox-topology-views version |
| -------------- | ----------------------------- |
| >= 4.1.0 | >= v4.1.0 |
| >= 4.0.0 | >= v4.0.0 |
| >= 3.7.0 | >= v3.9.0 |
| >= 3.6.4 | >= v3.8.1 |
| >= 3.6.0 | >= v3.7.X |
| >= 3.5.0 | >= v3.4.X |
| >= 3.4.0 | >= v3.X.X |
| >= 3.3.0 | >= v3.0.0 |
| >= 3.2.0 | >= v1.1.0 |
| >= 3.1.8 | >= v1.0.0 |
| >= 2.11.1 | >= v0.5.3 |
| >= 2.10.0 | >= v0.5.0 |
| < 2.10.0 | =< v0.4.10 |
| = 4.2.0 | = v4.2.0 |
| = 4.1.X | = v4.1.0 |
| = 4.0.X | = v4.0.0 |
| = 3.7.0 | = v3.9.0 |
| = 3.6.4 | = v3.8.1 |
| = 3.6.0 | = v3.7.0 |
| = 3.5.0 | = v3.6.2 |


### Update

Expand Down
6 changes: 3 additions & 3 deletions dev_setup/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: '3.4'
services:
postgres:
image: postgres:12-alpine
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: J5brHrAXFLQSif0K #just for local dev
POSTGRES_DB: netbox
POSTGRES_USER: netbox
ports:
- "5432:5432"
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
- netbox-postgres-data-16:/var/lib/postgresql/data

redis:
image: redis:6-alpine
Expand All @@ -35,7 +35,7 @@ services:
- "6378:6379"

volumes:
netbox-postgres-data:
netbox-postgres-data-16:
driver: local
netbox-redis-data:
driver: local
5 changes: 4 additions & 1 deletion netbox-plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
version: 0.1
package_name: netbox-topology-views
compatibility:
- release: 4.2.0
netbox_min: 4.2.0
netbox_max: 4.2.1
- release: 4.1.0
netbox_min: 4.1.0
netbox_max: 4.1.4
netbox_max: 4.1.11
- release: 4.0.1
netbox_min: 4.0.9
netbox_max: 4.0.11
Expand Down
2 changes: 1 addition & 1 deletion netbox_topology_views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class TopologyViewsConfig(PluginConfig):
name = "netbox_topology_views"
verbose_name = "Topology views"
description = "An plugin to render topology maps"
version = "4.1.0"
version = "4.2.0"
author = "Mattijs Vanhaverbeke"
author_email = "[email protected]"
base_url = "netbox_topology_views"
Expand Down
2 changes: 1 addition & 1 deletion netbox_topology_views/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DeviceFilterSet(NetBoxModelFilterSet, TenancyFilterSet, ContactModelFilter
null_value=None,
)
mac_address = MultiValueMACAddressFilter(
field_name='interfaces__mac_address',
field_name='interfaces__mac_addresses__mac_address',
label="MAC address",
)
serial = MultiValueCharFilter(
Expand Down
Loading

0 comments on commit cf86419

Please sign in to comment.