netbox-docker-plugin 2.9.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {netbox_docker_plugin-2.9.0/netbox_docker_plugin.egg-info → netbox_docker_plugin-3.0.0}/PKG-INFO +10 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/README.md +8 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/__init__.py +2 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/serializers.py +10 -1
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/test_container_operation_view.py +2 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/test_container_views.py +1 -1
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/host/test_host_api.py +2 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/host/test_host_views.py +2 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/utilities/__init__.py +18 -5
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0/netbox_docker_plugin.egg-info}/PKG-INFO +10 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/pyproject.toml +2 -2
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/LICENSE +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/MANIFEST.in +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/renderers.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/urls.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/views.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/filtersets.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/bind.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/container.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/device.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/env.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/host.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/image.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/label.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/mount.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/network.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/network_setting.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/port.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/registry.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/volume.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0001_initial.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0002_image.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0003_image_size.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0004_volume.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0005_network.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0006_container_port_mount_label_env_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0007_remove_container_netbox_docker_plugin_container_unique_name_host__and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0008_alter_network_unique_together_network_networkid_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0009_remove_container_network_networksettings_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0010_container_containerid_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0011_host_token.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0012_host_state.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0013_host_netbox_url.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0014_container_operation.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0015_remove_mount_netbox_docker_plugin_mount_unique_volume_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0016_alter_env_value.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0017_network_state.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0018_alter_mount_volume_alter_networksetting_network.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0019_host_agent_version_host_docker_api_version.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0020_container_hostname.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0021_registry_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0022_bind_bind_netbox_docker_plugin_bind_unique_bind.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0023_delete_hosts.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0024_registry_host_alter_registry_name_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0025_alter_image_version.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0026_image_digest.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0027_container_restart_policy.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0028_mount_and_bind_read_only.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0029_alter_container_state.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0030_alter_container_containerid_alter_container_hostname_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0031_container_cap_add.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0032_device_and_more.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/0033_host_operation.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/migrations/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/container.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/host.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/image.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/network.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/registry.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/volume.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/navigation.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/signals.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tables.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/container-exec.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/container-layout.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/container-logs.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/container.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/host-graph.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/host.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/image.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/network.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/registry.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templates/netbox_docker_plugin/volume.html +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templatetags/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templatetags/host.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/base.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/test_container_actions.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/test_container_api.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/test_container_api_exec.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/container/test_container_validation.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/host/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/host/test_replace_password.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/image/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/image/test_image_api.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/image/test_image_views.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/network/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/network/test_network_api.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/network/test_network_views.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/registry/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/registry/test_registry_api.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/registry/test_registry_views.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/test_init.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/volume/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/volume/test_volume_api.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/volume/test_volume_views.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/urls.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/__init__.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/bind.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/container.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/device.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/env.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/host.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/image.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/label.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/mount.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/network.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/network_setting.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/port.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/registry.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/volume.py +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin.egg-info/SOURCES.txt +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin.egg-info/dependency_links.txt +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin.egg-info/top_level.txt +0 -0
- {netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/setup.cfg +0 -0
{netbox_docker_plugin-2.9.0/netbox_docker_plugin.egg-info → netbox_docker_plugin-3.0.0}/PKG-INFO
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: netbox-docker-plugin
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Manage Docker with Netbox & style.
|
|
5
5
|
Author-email: Vincent Simonin <vincent@saashup.com>, David Delassus <david.jose.delassus@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/SaaShup/netbox-docker-plugin
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/SaaShup/netbox-docker-plugin/issues
|
|
8
8
|
Keywords: netbox,netbox-plugin,docker
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
|
|
@@ -40,6 +40,14 @@ Once the plugin and webhooks are installed, you can:
|
|
|
40
40
|
|
|
41
41
|
## Installation
|
|
42
42
|
|
|
43
|
+
Below the compatibility list of the Netbox Docker PLugin and Netbox. Please chose the right version of the plugin depending of the Netbox version you use:
|
|
44
|
+
|
|
45
|
+
| Netbox Version | Netbox Docker Plugin Version |
|
|
46
|
+
| -------------- | ---------------------------- |
|
|
47
|
+
| 3.\* | 1.\* |
|
|
48
|
+
| 4.0.\* | 2.\* |
|
|
49
|
+
| 4.1.\* | 3.\* |
|
|
50
|
+
|
|
43
51
|
You can follow [the official plugins installation
|
|
44
52
|
instructions](https://docs.netbox.dev/en/stable/plugins/#installing-plugins).
|
|
45
53
|
|
|
@@ -27,6 +27,14 @@ Once the plugin and webhooks are installed, you can:
|
|
|
27
27
|
|
|
28
28
|
## Installation
|
|
29
29
|
|
|
30
|
+
Below the compatibility list of the Netbox Docker PLugin and Netbox. Please chose the right version of the plugin depending of the Netbox version you use:
|
|
31
|
+
|
|
32
|
+
| Netbox Version | Netbox Docker Plugin Version |
|
|
33
|
+
| -------------- | ---------------------------- |
|
|
34
|
+
| 3.\* | 1.\* |
|
|
35
|
+
| 4.0.\* | 2.\* |
|
|
36
|
+
| 4.1.\* | 3.\* |
|
|
37
|
+
|
|
30
38
|
You can follow [the official plugins installation
|
|
31
39
|
instructions](https://docs.netbox.dev/en/stable/plugins/#installing-plugins).
|
|
32
40
|
|
|
@@ -11,9 +11,9 @@ class NetBoxDockerConfig(PluginConfig):
|
|
|
11
11
|
name = "netbox_docker_plugin"
|
|
12
12
|
verbose_name = " NetBox Docker Plugin"
|
|
13
13
|
description = "Manage Docker"
|
|
14
|
-
version = "
|
|
14
|
+
version = "3.0.0"
|
|
15
15
|
base_url = "docker"
|
|
16
|
-
min_version = "4.
|
|
16
|
+
min_version = "4.1.0"
|
|
17
17
|
author = "Vincent Simonin <vincent@saashup.com>, David Delassus <david.jose.delassus@gmail.com>"
|
|
18
18
|
author_email = "vincent@saashup.com, david.jose.delassus@gmail.com"
|
|
19
19
|
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/serializers.py
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
from rest_framework import serializers
|
|
6
6
|
from utilities.query import dict_to_filter_params
|
|
7
|
-
from users.
|
|
7
|
+
from users.models import Token
|
|
8
8
|
from netbox.api.serializers import NetBoxModelSerializer, WritableNestedSerializer
|
|
9
9
|
from ..models.host import Host
|
|
10
10
|
from ..models.image import Image
|
|
@@ -23,6 +23,15 @@ from ..models.container import (
|
|
|
23
23
|
from ..models.registry import Registry
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
class NestedTokenSerializer(WritableNestedSerializer):
|
|
27
|
+
"""Nested Token Serializer class"""
|
|
28
|
+
|
|
29
|
+
class Meta:
|
|
30
|
+
"""Nested Token Serializer Meta class"""
|
|
31
|
+
model = Token
|
|
32
|
+
fields = ["id", "url", "display_url", "display", "key", "write_enabled"]
|
|
33
|
+
|
|
34
|
+
|
|
26
35
|
class NestedHostSerializer(WritableNestedSerializer):
|
|
27
36
|
"""Nested Host Serializer class"""
|
|
28
37
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
from django.urls import reverse
|
|
5
5
|
from django.test import override_settings
|
|
6
6
|
from core.models import ObjectType
|
|
7
|
+
from core.models import ObjectChange
|
|
8
|
+
from core.choices import ObjectChangeActionChoices
|
|
7
9
|
from utilities.testing import ModelViewTestCase
|
|
8
10
|
from utilities.testing.utils import disable_warnings, post_data
|
|
9
11
|
from users.models import ObjectPermission
|
|
10
|
-
from extras.choices import ObjectChangeActionChoices
|
|
11
|
-
from extras.models import ObjectChange
|
|
12
12
|
from netbox_docker_plugin.models.host import Host
|
|
13
13
|
from netbox_docker_plugin.models.container import Container
|
|
14
14
|
from netbox_docker_plugin.models.image import Image
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Host API Test Case"""
|
|
2
2
|
|
|
3
3
|
from core.models import ObjectType
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from core.choices import ObjectChangeActionChoices
|
|
5
|
+
from core.models import ObjectChange
|
|
6
6
|
from users.models import ObjectPermission
|
|
7
7
|
from rest_framework import status
|
|
8
8
|
from utilities.testing import APIViewTestCases
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Host Views Test Case"""
|
|
2
2
|
|
|
3
3
|
from core.models import ObjectType
|
|
4
|
+
from core.choices import ObjectChangeActionChoices
|
|
5
|
+
from core.models import ObjectChange
|
|
4
6
|
from django.core.exceptions import ObjectDoesNotExist
|
|
5
|
-
from extras.choices import ObjectChangeActionChoices
|
|
6
|
-
from extras.models import ObjectChange
|
|
7
7
|
from users.models import ObjectPermission
|
|
8
8
|
from utilities.testing import ViewTestCases, post_data
|
|
9
9
|
from netbox_docker_plugin.models.host import Host
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/utilities/__init__.py
RENAMED
|
@@ -202,14 +202,27 @@ def create_webhook(app_config, **kwargs):
|
|
|
202
202
|
)
|
|
203
203
|
obj.save()
|
|
204
204
|
|
|
205
|
+
event_types = []
|
|
206
|
+
|
|
207
|
+
if webhook["type_create"]:
|
|
208
|
+
event_types.append("object_created")
|
|
209
|
+
|
|
210
|
+
if webhook["type_update"]:
|
|
211
|
+
event_types.append("object_updated")
|
|
212
|
+
|
|
213
|
+
if webhook["type_delete"]:
|
|
214
|
+
event_types.append("object_deleted")
|
|
215
|
+
|
|
216
|
+
if webhook["type_job_start"]:
|
|
217
|
+
event_types.append("job_started")
|
|
218
|
+
|
|
219
|
+
if webhook["type_job_end"]:
|
|
220
|
+
event_types.append("job_completed")
|
|
221
|
+
|
|
205
222
|
eventrule = EventRule(
|
|
206
223
|
name=webhook["name"],
|
|
207
224
|
description="Added automatically by the Netbox Docker Plugin",
|
|
208
|
-
|
|
209
|
-
type_update=webhook["type_update"],
|
|
210
|
-
type_delete=webhook["type_delete"],
|
|
211
|
-
type_job_start=webhook["type_job_start"],
|
|
212
|
-
type_job_end=webhook["type_job_end"],
|
|
225
|
+
event_types=event_types,
|
|
213
226
|
action_object_id=obj.pk,
|
|
214
227
|
action_object_type=wh_content_type,
|
|
215
228
|
)
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0/netbox_docker_plugin.egg-info}/PKG-INFO
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: netbox-docker-plugin
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Manage Docker with Netbox & style.
|
|
5
5
|
Author-email: Vincent Simonin <vincent@saashup.com>, David Delassus <david.jose.delassus@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/SaaShup/netbox-docker-plugin
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/SaaShup/netbox-docker-plugin/issues
|
|
8
8
|
Keywords: netbox,netbox-plugin,docker
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
|
|
@@ -40,6 +40,14 @@ Once the plugin and webhooks are installed, you can:
|
|
|
40
40
|
|
|
41
41
|
## Installation
|
|
42
42
|
|
|
43
|
+
Below the compatibility list of the Netbox Docker PLugin and Netbox. Please chose the right version of the plugin depending of the Netbox version you use:
|
|
44
|
+
|
|
45
|
+
| Netbox Version | Netbox Docker Plugin Version |
|
|
46
|
+
| -------------- | ---------------------------- |
|
|
47
|
+
| 3.\* | 1.\* |
|
|
48
|
+
| 4.0.\* | 2.\* |
|
|
49
|
+
| 4.1.\* | 3.\* |
|
|
50
|
+
|
|
43
51
|
You can follow [the official plugins installation
|
|
44
52
|
instructions](https://docs.netbox.dev/en/stable/plugins/#installing-plugins).
|
|
45
53
|
|
|
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "netbox-docker-plugin"
|
|
7
|
-
version = "
|
|
7
|
+
version = "3.0.0"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Vincent Simonin", email="vincent@saashup.com" },
|
|
10
10
|
{ name="David Delassus", email="david.jose.delassus@gmail.com" }
|
|
11
11
|
]
|
|
12
12
|
description = "Manage Docker with Netbox & style."
|
|
13
13
|
readme = "README.md"
|
|
14
|
-
requires-python = ">=3.
|
|
14
|
+
requires-python = ">=3.11"
|
|
15
15
|
classifiers = [
|
|
16
16
|
"Programming Language :: Python :: 3",
|
|
17
17
|
]
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/api/renderers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/filtersets.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/bind.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/container.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/device.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/image.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/label.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/mount.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/port.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/registry.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/forms/volume.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/container.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/image.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/network.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/registry.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/models/volume.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/navigation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/templatetags/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/tests/test_init.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/bind.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/container.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/device.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/image.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/label.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/mount.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/port.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/registry.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin/views/volume.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-2.9.0 → netbox_docker_plugin-3.0.0}/netbox_docker_plugin.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|