netbox-ddns 1.2.9__tar.gz → 1.3.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.
Files changed (37) hide show
  1. {netbox-ddns-1.2.9/netbox_ddns.egg-info → netbox_ddns-1.3.0}/PKG-INFO +8 -2
  2. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/README.md +6 -0
  3. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/__init__.py +4 -4
  4. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/forms.py +1 -2
  5. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/tables.py +3 -3
  6. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/template_content.py +1 -1
  7. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html +3 -1
  8. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0/netbox_ddns.egg-info}/PKG-INFO +8 -2
  9. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/setup.cfg +1 -1
  10. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/LICENSE.txt +0 -0
  11. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/MANIFEST.in +0 -0
  12. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/admin.py +0 -0
  13. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/background_tasks.py +0 -0
  14. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0001_initial.py +0 -0
  15. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0002_add_ttl.py +0 -0
  16. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0003_dnsstatus.py +0 -0
  17. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0004_ensure_trailing_dot.py +0 -0
  18. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0005_extradnsname.py +0 -0
  19. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0006_extradns_cname.py +0 -0
  20. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0007_zone_meta.py +0 -0
  21. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/0008_server_server_port.py +0 -0
  22. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/migrations/__init__.py +0 -0
  23. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/models.py +0 -0
  24. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/signals.py +0 -0
  25. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/templates/netbox_ddns/ipaddress/dns_extra.html +0 -0
  26. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/templates/netbox_ddns/ipaddress/dns_refresh_button.html +0 -0
  27. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/urls.py +0 -0
  28. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/utils.py +0 -0
  29. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/validators.py +0 -0
  30. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns/views.py +0 -0
  31. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns.egg-info/SOURCES.txt +0 -0
  32. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns.egg-info/dependency_links.txt +0 -0
  33. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns.egg-info/not-zip-safe +0 -0
  34. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns.egg-info/requires.txt +0 -0
  35. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/netbox_ddns.egg-info/top_level.txt +0 -0
  36. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/pyproject.toml +0 -0
  37. {netbox-ddns-1.2.9 → netbox_ddns-1.3.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: netbox-ddns
3
- Version: 1.2.9
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.6
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.
@@ -13,6 +13,12 @@ For now all configuration is done in the NetBox admin back-end. A later version
13
13
 
14
14
  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.
15
15
 
16
+ > [!Important]
17
+ > Netbox 4.0 - Admin interface disabled by default<br />
18
+ > Can be re-enabled by specifying `DJANGO_ADMIN_ENABLED = True` in `configuration.py`<br />
19
+ > If static files are not loaded, re-run `upgrade.sh` this will copy back the required static assets.
20
+
21
+
16
22
  ## Installation
17
23
 
18
24
  First, add `netbox-ddns` to your `/opt/netbox/local_requirements.txt` file. Create it if it doesn't exist.
@@ -1,7 +1,7 @@
1
- VERSION = '1.2.9'
1
+ VERSION = '1.3.0'
2
2
 
3
3
  try:
4
- from extras.plugins import PluginConfig
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 = '3.0.0'
16
- max_version = '3.6.999'
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'
@@ -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(BootstrapMixin, forms.ModelForm):
6
+ class ExtraDNSNameEditForm(forms.ModelForm):
8
7
  class Meta:
9
8
  model = ExtraDNSName
10
9
  fields = ['name']
@@ -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 = tables.Column()
40
+ last_update = DateTimeColumn()
41
41
  forward_dns = tables.TemplateColumn(template_code=FORWARD_DNS)
42
42
  actions = tables.TemplateColumn(
43
43
  template_code=ACTIONS,
@@ -1,7 +1,7 @@
1
1
  from django.contrib.auth.context_processors import PermWrapper
2
2
  from django.template.context_processors import csrf
3
3
 
4
- from extras.plugins import PluginTemplateExtension
4
+ from netbox.plugins.templates import PluginTemplateExtension
5
5
  from . import tables
6
6
 
7
7
 
@@ -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.2.9
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.6
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.
@@ -21,7 +21,7 @@ classifiers =
21
21
  zip_safe = False
22
22
  include_package_data = True
23
23
  packages = find:
24
- python_requires = >=3.6
24
+ python_requires = >=3.10
25
25
  install_requires =
26
26
  setuptools
27
27
  dnspython
File without changes
File without changes
File without changes
File without changes