netbox-docker-plugin 4.4.0__tar.gz → 4.5.1__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-4.4.0/netbox_docker_plugin.egg-info → netbox_docker_plugin-4.5.1}/PKG-INFO +14 -5
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/README.md +13 -4
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/__init__.py +2 -2
- netbox_docker_plugin-4.5.1/netbox_docker_plugin/migrations/1040_alter_container_log_driver.py +20 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/container.py +2 -3
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/host.py +8 -26
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/registry.py +8 -9
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1/netbox_docker_plugin.egg-info}/PKG-INFO +14 -5
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin.egg-info/SOURCES.txt +1 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/pyproject.toml +1 -1
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/LICENSE +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/MANIFEST.in +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/renderers.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/serializers.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/urls.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/filtersets.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/bind.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/container.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/device.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/env.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/host.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/image.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/label.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/log_driver_option.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/mount.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/network.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/network_setting.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/port.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/registry.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/volume.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0001_initial.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0002_image.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0003_image_size.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0004_volume.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0005_network.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0006_container_port_mount_label_env_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0007_remove_container_netbox_docker_plugin_container_unique_name_host__and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0008_alter_network_unique_together_network_networkid_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0009_remove_container_network_networksettings_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0010_container_containerid_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0011_host_token.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0012_host_state.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0013_host_netbox_url.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0014_container_operation.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0015_remove_mount_netbox_docker_plugin_mount_unique_volume_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0016_alter_env_value.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0017_network_state.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0018_alter_mount_volume_alter_networksetting_network.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0019_host_agent_version_host_docker_api_version.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0020_container_hostname.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0021_registry_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0022_bind_bind_netbox_docker_plugin_bind_unique_bind.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0023_delete_hosts.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0024_registry_host_alter_registry_name_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0025_alter_image_version.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0026_image_digest.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0027_container_restart_policy.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0028_mount_and_bind_read_only.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0029_alter_container_state.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0030_alter_container_containerid_alter_container_hostname_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0031_container_cap_add.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0032_device_and_more.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0033_host_operation.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0034_volume_max_size.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0035_container_log_driver_logdriveroption.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0036_alter_container_log_driver.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0037_alter_env_value.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/0038_container_cmd.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/1039_alter_port_public_port.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/migrations/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/host.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/image.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/network.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/registry.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/volume.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/navigation.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/signals.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tables.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/container-exec.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/container-layout.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/container-logs.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/container.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/host-graph.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/host.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/image.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/network.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/registry.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templates/netbox_docker_plugin/volume.html +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templatetags/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templatetags/host.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/base.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/test_container_actions.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/test_container_api.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/test_container_api_exec.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/test_container_operation_view.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/test_container_validation.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/container/test_container_views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/host/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/host/test_host_api.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/host/test_host_views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/host/test_replace_password.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/image/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/image/test_image_api.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/image/test_image_views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/network/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/network/test_network_api.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/network/test_network_views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/registry/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/registry/test_registry_api.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/registry/test_registry_views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/test_init.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/volume/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/volume/test_volume_api.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/volume/test_volume_views.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/urls.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/utilities/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/__init__.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/bind.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/container.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/device.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/env.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/image.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/label.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/log_driver_option.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/mount.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/network.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/network_setting.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/port.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/volume.py +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin.egg-info/dependency_links.txt +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin.egg-info/top_level.txt +0 -0
- {netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/setup.cfg +0 -0
{netbox_docker_plugin-4.4.0/netbox_docker_plugin.egg-info → netbox_docker_plugin-4.5.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: netbox-docker-plugin
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.1
|
|
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
|
|
@@ -43,10 +43,18 @@ Once the plugin and webhooks are installed, you can:
|
|
|
43
43
|
labels, mount volumes, set networks.
|
|
44
44
|
4. Manage the container status, start, stop, restart.
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
|
|
47
|
+
> [!NOTE]
|
|
48
|
+
> Adding a host with curl needs a specific `Origin` HTTP header to make it working. Example :
|
|
49
|
+
>
|
|
50
|
+
> ```bash
|
|
51
|
+
> curl \
|
|
52
|
+
> -H "Authorization: Token YOUR-NETBOX-APIKEY" \
|
|
53
|
+
> -H "Content-Type: application/json" \
|
|
54
|
+
> -H "Origin: https://YOUR-NETBOX-HOST" \
|
|
55
|
+
> -X POST https://YOUR-NETBOX-HOST/api/plugins/docker/hosts/ \
|
|
56
|
+
> -d '{"name": "YOUR-AGENT-NAME", "endpoint": "https://AGENT-USER:PASSWORD@YOUR-AGENT-HOST:PORT"}'
|
|
57
|
+
> ```
|
|
50
58
|
|
|
51
59
|
## Installation
|
|
52
60
|
|
|
@@ -59,6 +67,7 @@ Below the compatibility list of the Netbox Docker PLugin and Netbox. Please chos
|
|
|
59
67
|
| 4.1.\* | 3.\* |
|
|
60
68
|
| 4.2.\* | 4.\* |
|
|
61
69
|
| 4.3.\* | 4.\* |
|
|
70
|
+
| >=4.3.7 | >=4.5.1 |
|
|
62
71
|
|
|
63
72
|
You can follow [the official plugins installation
|
|
64
73
|
instructions](https://docs.netbox.dev/en/stable/plugins/#installing-plugins).
|
|
@@ -29,10 +29,18 @@ Once the plugin and webhooks are installed, you can:
|
|
|
29
29
|
labels, mount volumes, set networks.
|
|
30
30
|
4. Manage the container status, start, stop, restart.
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
|
|
33
|
+
> [!NOTE]
|
|
34
|
+
> Adding a host with curl needs a specific `Origin` HTTP header to make it working. Example :
|
|
35
|
+
>
|
|
36
|
+
> ```bash
|
|
37
|
+
> curl \
|
|
38
|
+
> -H "Authorization: Token YOUR-NETBOX-APIKEY" \
|
|
39
|
+
> -H "Content-Type: application/json" \
|
|
40
|
+
> -H "Origin: https://YOUR-NETBOX-HOST" \
|
|
41
|
+
> -X POST https://YOUR-NETBOX-HOST/api/plugins/docker/hosts/ \
|
|
42
|
+
> -d '{"name": "YOUR-AGENT-NAME", "endpoint": "https://AGENT-USER:PASSWORD@YOUR-AGENT-HOST:PORT"}'
|
|
43
|
+
> ```
|
|
36
44
|
|
|
37
45
|
## Installation
|
|
38
46
|
|
|
@@ -45,6 +53,7 @@ Below the compatibility list of the Netbox Docker PLugin and Netbox. Please chos
|
|
|
45
53
|
| 4.1.\* | 3.\* |
|
|
46
54
|
| 4.2.\* | 4.\* |
|
|
47
55
|
| 4.3.\* | 4.\* |
|
|
56
|
+
| >=4.3.7 | >=4.5.1 |
|
|
48
57
|
|
|
49
58
|
You can follow [the official plugins installation
|
|
50
59
|
instructions](https://docs.netbox.dev/en/stable/plugins/#installing-plugins).
|
|
@@ -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 = "4.
|
|
14
|
+
version = "4.5.1"
|
|
15
15
|
base_url = "docker"
|
|
16
|
-
min_version = "4.
|
|
16
|
+
min_version = "4.3.7"
|
|
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
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# pylint: disable=C0103
|
|
2
|
+
"""Migration file"""
|
|
3
|
+
|
|
4
|
+
from django.db import migrations, models
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
"""Migration file"""
|
|
9
|
+
|
|
10
|
+
dependencies = [
|
|
11
|
+
("netbox_docker_plugin", "1039_alter_port_public_port"),
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
operations = [
|
|
15
|
+
migrations.AlterField(
|
|
16
|
+
model_name="container",
|
|
17
|
+
name="log_driver",
|
|
18
|
+
field=models.CharField(max_length=32, null=True, blank=True),
|
|
19
|
+
),
|
|
20
|
+
]
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/container.py
RENAMED
|
@@ -101,8 +101,6 @@ class ContainerCapAddChoices(ChoiceSet):
|
|
|
101
101
|
class Container(NetBoxModel):
|
|
102
102
|
"""Container definition class"""
|
|
103
103
|
|
|
104
|
-
DEFAULT_LOG_DRIVER = "json-file"
|
|
105
|
-
|
|
106
104
|
host = models.ForeignKey(Host, on_delete=models.CASCADE, related_name="containers")
|
|
107
105
|
image = models.ForeignKey(
|
|
108
106
|
Image, on_delete=models.RESTRICT, related_name="containers"
|
|
@@ -159,7 +157,8 @@ class Container(NetBoxModel):
|
|
|
159
157
|
)
|
|
160
158
|
log_driver = models.CharField(
|
|
161
159
|
max_length=32,
|
|
162
|
-
|
|
160
|
+
null=True,
|
|
161
|
+
blank=True,
|
|
163
162
|
)
|
|
164
163
|
cmd = ArrayField(
|
|
165
164
|
models.CharField(
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/host.py
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from users.models import Token
|
|
4
4
|
from utilities.query import count_related
|
|
5
|
-
from utilities.views import ViewTab, register_model_view
|
|
5
|
+
from utilities.views import ViewTab, GetRelatedModelsMixin, register_model_view
|
|
6
6
|
from netbox.views import generic
|
|
7
7
|
from .. import tables, filtersets
|
|
8
8
|
from ..forms import host
|
|
@@ -15,7 +15,7 @@ from ..models.registry import Registry
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
@register_model_view(Host)
|
|
18
|
-
class HostView(generic.ObjectView):
|
|
18
|
+
class HostView(GetRelatedModelsMixin, generic.ObjectView):
|
|
19
19
|
"""Host view definition"""
|
|
20
20
|
|
|
21
21
|
queryset = Host.objects.prefetch_related(
|
|
@@ -23,31 +23,13 @@ class HostView(generic.ObjectView):
|
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
def get_extra_context(self, request, instance):
|
|
26
|
-
related_models = (
|
|
27
|
-
(
|
|
28
|
-
Image.objects.filter(host=instance),
|
|
29
|
-
"host_id",
|
|
30
|
-
),
|
|
31
|
-
(
|
|
32
|
-
Volume.objects.filter(host=instance),
|
|
33
|
-
"host_id",
|
|
34
|
-
),
|
|
35
|
-
(
|
|
36
|
-
Network.objects.filter(host=instance),
|
|
37
|
-
"host_id",
|
|
38
|
-
),
|
|
39
|
-
(
|
|
40
|
-
Container.objects.filter(host=instance),
|
|
41
|
-
"host_id",
|
|
42
|
-
),
|
|
43
|
-
(
|
|
44
|
-
Registry.objects.filter(host=instance),
|
|
45
|
-
"host_id",
|
|
46
|
-
),
|
|
47
|
-
)
|
|
48
|
-
|
|
49
26
|
return {
|
|
50
|
-
"related_models":
|
|
27
|
+
"related_models": self.get_related_models(
|
|
28
|
+
request,
|
|
29
|
+
instance,
|
|
30
|
+
omit=(),
|
|
31
|
+
extra=(),
|
|
32
|
+
),
|
|
51
33
|
}
|
|
52
34
|
|
|
53
35
|
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/registry.py
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Registry views definitions"""
|
|
2
2
|
|
|
3
3
|
from utilities.query import count_related
|
|
4
|
+
from utilities.views import GetRelatedModelsMixin
|
|
4
5
|
from netbox.views import generic
|
|
5
6
|
from .. import tables, filtersets
|
|
6
7
|
from ..forms import registry
|
|
@@ -8,21 +9,19 @@ from ..models.image import Image
|
|
|
8
9
|
from ..models.registry import Registry
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
class RegistryView(generic.ObjectView):
|
|
12
|
+
class RegistryView(GetRelatedModelsMixin, generic.ObjectView):
|
|
12
13
|
"""Registry view definition"""
|
|
13
14
|
|
|
14
15
|
queryset = Registry.objects.prefetch_related("images")
|
|
15
16
|
|
|
16
17
|
def get_extra_context(self, request, instance):
|
|
17
|
-
related_models = (
|
|
18
|
-
(
|
|
19
|
-
Image.objects.filter(registry=instance),
|
|
20
|
-
"registry_id",
|
|
21
|
-
),
|
|
22
|
-
)
|
|
23
|
-
|
|
24
18
|
return {
|
|
25
|
-
"related_models":
|
|
19
|
+
"related_models": self.get_related_models(
|
|
20
|
+
request,
|
|
21
|
+
instance,
|
|
22
|
+
omit=(),
|
|
23
|
+
extra=(),
|
|
24
|
+
),
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1/netbox_docker_plugin.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: netbox-docker-plugin
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.1
|
|
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
|
|
@@ -43,10 +43,18 @@ Once the plugin and webhooks are installed, you can:
|
|
|
43
43
|
labels, mount volumes, set networks.
|
|
44
44
|
4. Manage the container status, start, stop, restart.
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
|
|
47
|
+
> [!NOTE]
|
|
48
|
+
> Adding a host with curl needs a specific `Origin` HTTP header to make it working. Example :
|
|
49
|
+
>
|
|
50
|
+
> ```bash
|
|
51
|
+
> curl \
|
|
52
|
+
> -H "Authorization: Token YOUR-NETBOX-APIKEY" \
|
|
53
|
+
> -H "Content-Type: application/json" \
|
|
54
|
+
> -H "Origin: https://YOUR-NETBOX-HOST" \
|
|
55
|
+
> -X POST https://YOUR-NETBOX-HOST/api/plugins/docker/hosts/ \
|
|
56
|
+
> -d '{"name": "YOUR-AGENT-NAME", "endpoint": "https://AGENT-USER:PASSWORD@YOUR-AGENT-HOST:PORT"}'
|
|
57
|
+
> ```
|
|
50
58
|
|
|
51
59
|
## Installation
|
|
52
60
|
|
|
@@ -59,6 +67,7 @@ Below the compatibility list of the Netbox Docker PLugin and Netbox. Please chos
|
|
|
59
67
|
| 4.1.\* | 3.\* |
|
|
60
68
|
| 4.2.\* | 4.\* |
|
|
61
69
|
| 4.3.\* | 4.\* |
|
|
70
|
+
| >=4.3.7 | >=4.5.1 |
|
|
62
71
|
|
|
63
72
|
You can follow [the official plugins installation
|
|
64
73
|
instructions](https://docs.netbox.dev/en/stable/plugins/#installing-plugins).
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin.egg-info/SOURCES.txt
RENAMED
|
@@ -71,6 +71,7 @@ netbox_docker_plugin/migrations/0036_alter_container_log_driver.py
|
|
|
71
71
|
netbox_docker_plugin/migrations/0037_alter_env_value.py
|
|
72
72
|
netbox_docker_plugin/migrations/0038_container_cmd.py
|
|
73
73
|
netbox_docker_plugin/migrations/1039_alter_port_public_port.py
|
|
74
|
+
netbox_docker_plugin/migrations/1040_alter_container_log_driver.py
|
|
74
75
|
netbox_docker_plugin/migrations/__init__.py
|
|
75
76
|
netbox_docker_plugin/models/__init__.py
|
|
76
77
|
netbox_docker_plugin/models/container.py
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/renderers.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/api/serializers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/filtersets.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/bind.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/container.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/device.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/image.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/label.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/mount.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/port.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/forms/registry.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/image.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/network.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/registry.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/models/volume.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/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-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/templatetags/host.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/tests/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/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-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/utilities/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/__init__.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/bind.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/container.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/device.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/image.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/label.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/mount.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/port.py
RENAMED
|
File without changes
|
{netbox_docker_plugin-4.4.0 → netbox_docker_plugin-4.5.1}/netbox_docker_plugin/views/volume.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|