netbox-ddns 1.2.9__py3-none-any.whl → 1.3.0__py3-none-any.whl
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_ddns/__init__.py +4 -4
- netbox_ddns/forms.py +1 -2
- netbox_ddns/tables.py +3 -3
- netbox_ddns/template_content.py +1 -1
- netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html +3 -1
- {netbox_ddns-1.2.9.dist-info → netbox_ddns-1.3.0.dist-info}/METADATA +8 -2
- {netbox_ddns-1.2.9.dist-info → netbox_ddns-1.3.0.dist-info}/RECORD +10 -10
- {netbox_ddns-1.2.9.dist-info → netbox_ddns-1.3.0.dist-info}/WHEEL +1 -1
- {netbox_ddns-1.2.9.dist-info → netbox_ddns-1.3.0.dist-info}/LICENSE.txt +0 -0
- {netbox_ddns-1.2.9.dist-info → netbox_ddns-1.3.0.dist-info}/top_level.txt +0 -0
netbox_ddns/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
VERSION = '1.
|
|
1
|
+
VERSION = '1.3.0'
|
|
2
2
|
|
|
3
3
|
try:
|
|
4
|
-
from
|
|
4
|
+
from netbox.plugins import PluginConfig
|
|
5
5
|
except ImportError:
|
|
6
6
|
# Dummy for when importing outside of netbox
|
|
7
7
|
class PluginConfig:
|
|
@@ -12,8 +12,8 @@ class NetBoxDDNSConfig(PluginConfig):
|
|
|
12
12
|
name = 'netbox_ddns'
|
|
13
13
|
verbose_name = 'Dynamic DNS'
|
|
14
14
|
version = VERSION
|
|
15
|
-
min_version = '
|
|
16
|
-
max_version = '
|
|
15
|
+
min_version = '4.0.0'
|
|
16
|
+
max_version = '4.0.999'
|
|
17
17
|
author = 'Sander Steffann'
|
|
18
18
|
author_email = 'sander@steffann.nl'
|
|
19
19
|
description = 'Dynamic DNS Connector for NetBox'
|
netbox_ddns/forms.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
from django import forms
|
|
2
2
|
|
|
3
3
|
from netbox_ddns.models import ExtraDNSName
|
|
4
|
-
from utilities.forms import BootstrapMixin
|
|
5
4
|
|
|
6
5
|
|
|
7
|
-
class ExtraDNSNameEditForm(
|
|
6
|
+
class ExtraDNSNameEditForm(forms.ModelForm):
|
|
8
7
|
class Meta:
|
|
9
8
|
model = ExtraDNSName
|
|
10
9
|
fields = ['name']
|
netbox_ddns/tables.py
CHANGED
|
@@ -4,10 +4,10 @@ from netbox_ddns.models import ExtraDNSName
|
|
|
4
4
|
try:
|
|
5
5
|
# NetBox >= 3.2.0
|
|
6
6
|
from netbox.tables import BaseTable
|
|
7
|
-
from netbox.tables.columns import ToggleColumn
|
|
7
|
+
from netbox.tables.columns import ToggleColumn, DateTimeColumn
|
|
8
8
|
except ImportError:
|
|
9
9
|
# NetBox < 3.2.0
|
|
10
|
-
from utilities.tables import BaseTable, ToggleColumn
|
|
10
|
+
from utilities.tables import BaseTable, ToggleColumn, DateTimeColumn
|
|
11
11
|
|
|
12
12
|
FORWARD_DNS = """
|
|
13
13
|
{% if record.forward_action is not None %}
|
|
@@ -37,7 +37,7 @@ ACTIONS = """
|
|
|
37
37
|
class PrefixTable(BaseTable):
|
|
38
38
|
pk = ToggleColumn()
|
|
39
39
|
name = tables.Column()
|
|
40
|
-
last_update =
|
|
40
|
+
last_update = DateTimeColumn()
|
|
41
41
|
forward_dns = tables.TemplateColumn(template_code=FORWARD_DNS)
|
|
42
42
|
actions = tables.TemplateColumn(
|
|
43
43
|
template_code=ACTIONS,
|
netbox_ddns/template_content.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
{% load helpers %}
|
|
2
|
+
|
|
1
3
|
{% if object.dnsstatus %}
|
|
2
4
|
<div class="card">
|
|
3
5
|
<h5 class="card-header"> Dynamic DNS Status </strong>
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
<tr>
|
|
8
10
|
<th scope="row">Last update</th>
|
|
9
11
|
<td>
|
|
10
|
-
{{ object.dnsstatus.last_update }}
|
|
12
|
+
{{ object.dnsstatus.last_update|isodatetime }}
|
|
11
13
|
</td>
|
|
12
14
|
</tr>
|
|
13
15
|
<tr>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: netbox-ddns
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Dynamic DNS Connector for NetBox
|
|
5
5
|
Home-page: https://github.com/sjm-steffann/netbox-ddns
|
|
6
6
|
Author: Sander Steffann
|
|
@@ -12,7 +12,7 @@ Classifier: Framework :: Django :: 3.0
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.6
|
|
15
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE.txt
|
|
18
18
|
Requires-Dist: setuptools
|
|
@@ -33,6 +33,12 @@ For now all configuration is done in the NetBox admin back-end. A later version
|
|
|
33
33
|
|
|
34
34
|
This plugin in compatible with [NetBox](https://netbox.readthedocs.org/) v3.0.0 and greater, support for Netbox v2.11.0 is dropped in v1.1.4 due to UI implementation.
|
|
35
35
|
|
|
36
|
+
> [!Important]
|
|
37
|
+
> Netbox 4.0 - Admin interface disabled by default<br />
|
|
38
|
+
> Can be re-enabled by specifying `DJANGO_ADMIN_ENABLED = True` in `configuration.py`<br />
|
|
39
|
+
> If static files are not loaded, re-run `upgrade.sh` this will copy back the required static assets.
|
|
40
|
+
|
|
41
|
+
|
|
36
42
|
## Installation
|
|
37
43
|
|
|
38
44
|
First, add `netbox-ddns` to your `/opt/netbox/local_requirements.txt` file. Create it if it doesn't exist.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
netbox_ddns/__init__.py,sha256=
|
|
1
|
+
netbox_ddns/__init__.py,sha256=OTcu4ObcjjMxFMaT-aHc6S1U8SsGS5cXYc0NJopawB0,652
|
|
2
2
|
netbox_ddns/admin.py,sha256=cCi0PnfuNv9PSygWbjFCh0ah6F0m3Ty0C3L-VtQYkFg,5658
|
|
3
3
|
netbox_ddns/background_tasks.py,sha256=oCw6V3aas1Q1C8ftsn1TisrJ0JU51sdDt_iTlm-ZNmk,7070
|
|
4
|
-
netbox_ddns/forms.py,sha256=
|
|
4
|
+
netbox_ddns/forms.py,sha256=zxj7IDk6kLxb-Z4HBcPH_-VuHP8bxfy2eEeKuYuf6Gg,188
|
|
5
5
|
netbox_ddns/models.py,sha256=22j5CQ8UfipKAJXz5MbyfkFIyquQqLPbDjZJtxpWKgk,12017
|
|
6
6
|
netbox_ddns/signals.py,sha256=yHkgZImnyTqRwPXAr2W9bd4rJof7YblkylJnDn1_FDc,4185
|
|
7
|
-
netbox_ddns/tables.py,sha256=
|
|
8
|
-
netbox_ddns/template_content.py,sha256=
|
|
7
|
+
netbox_ddns/tables.py,sha256=3HFCZPr0Wj_gpEJeuDo-a0vG6YJ-9Q6_Zy_dMF3-vlA,1696
|
|
8
|
+
netbox_ddns/template_content.py,sha256=cnv3dOUd1LiidpSH2bMtYCs15sDcHLlqRv4cwfoeKNQ,1228
|
|
9
9
|
netbox_ddns/urls.py,sha256=04WS4w3RAX5KntnLSs5YLboIqDqNhubOeb_TVqUl9x0,788
|
|
10
10
|
netbox_ddns/utils.py,sha256=qAomseFWGL_VvL0sPF3Zmb6taMl3P9eEASqbMunmoyA,901
|
|
11
11
|
netbox_ddns/validators.py,sha256=K8EzI6D-Mm_H3Es6LzzXx5ntBDsr8tY79_DHZmbamWM,851
|
|
@@ -20,10 +20,10 @@ netbox_ddns/migrations/0007_zone_meta.py,sha256=iKHEk-KUJYbaAvuXL6YrsZsMcEPCYqs0
|
|
|
20
20
|
netbox_ddns/migrations/0008_server_server_port.py,sha256=qqCMbOVJgxNmoEd2WofNy6QT6QbsiiML_ZzAaXuo0WI,530
|
|
21
21
|
netbox_ddns/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
netbox_ddns/templates/netbox_ddns/ipaddress/dns_extra.html,sha256=LmyLtOMpylHiicf4_zU1NIUVIafnEPUIt3hDiD2aK_o,720
|
|
23
|
-
netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html,sha256=
|
|
23
|
+
netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html,sha256=x4cpUovY3ZxmFoJeTLeqNUIw4ezoBkNfsYaRA6abUh4,1714
|
|
24
24
|
netbox_ddns/templates/netbox_ddns/ipaddress/dns_refresh_button.html,sha256=_aBikAGy-UPmfo5MtX3YgLbocrQ8zf2091fW8PDzIRk,437
|
|
25
|
-
netbox_ddns-1.
|
|
26
|
-
netbox_ddns-1.
|
|
27
|
-
netbox_ddns-1.
|
|
28
|
-
netbox_ddns-1.
|
|
29
|
-
netbox_ddns-1.
|
|
25
|
+
netbox_ddns-1.3.0.dist-info/LICENSE.txt,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
26
|
+
netbox_ddns-1.3.0.dist-info/METADATA,sha256=POraBfrmm-XJTcN3kptGPdqSOI5m3p3A3mmTDkZK-8o,2266
|
|
27
|
+
netbox_ddns-1.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
28
|
+
netbox_ddns-1.3.0.dist-info/top_level.txt,sha256=nSPx7dwqPj2hyzG2H0ohzHt0kkyzA-6M3zYRL6qAm-s,12
|
|
29
|
+
netbox_ddns-1.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|