modified: netbox_dns_bridge/request_handler.py
modified: netbox_dns_bridge/utils.py
Various little bug fixes. Analysed by AI but fixed by hand to ensure integrity.
Fix paths after restructuring
renamed: netbox_dns_bridge/management/commands/export-dns-zone.py -> netbox_dns_bridge/management/commands/dns-export-zone.py
renamed: netbox_dns_bridge/management/commands/export-all-dns-zones.py -> netbox_dns_bridge/management/commands/dns-export-zones.py
Unify command naming scheme
new file: netbox_dns_bridge/migrations/0001_initial.py
Adds the missing migration. Since the plugin was renamed this is also an opportunity to merge all changes into a single migration.
renamed: netbox_dns_bridge/service/transfer/catalog_zone_manager.py -> netbox_dns_bridge/catalog_zone_manager.py
renamed: netbox_dns_bridge/service/transfer/dns_server.py -> netbox_dns_bridge/dns_server.py
new file: netbox_dns_bridge/management/commands/dns-settings.py
modified: netbox_dns_bridge/management/commands/dns-transfer-endpoint.py
renamed: netbox_dns_bridge/service/transfer/request_handler.py -> netbox_dns_bridge/request_handler.py
deleted: netbox_dns_bridge/service/transfer/__init__.py
Another restructure to simplify code re-use. New command dns-settings added to allow setting of catalog zone serial.
This will be needed to migrate from previous versions.
- Catz member identifiers are created from uuid encoded in base32, lower-cased, and padding removed.
- On endpoint startup, make sure all zones have a catz identifier assigned. If not, create them.
- Use signals to create or update a zone's catz identifier.
Support SOA request on TCP by merging the dns handling while leaving the transport handling in protocol specific handlers (partially). Further review pending
Slight changes to previous commit:
1. Stop converting the zone ID to string for catalog zone PTR record creation
and simply use its int type.
2. Extend padding of ID in catalog zone PTR record from 6 digits to 9.
Auto-incrementing of zone IDs may create larger IDs then expected if the
turn-over of zones is high. Precautionary measure.
3. Fix catalog zone SOA record creation - A slight mistake was introduced in
previous commit that would render the set the MNAME field to
"invalid.zones.catz." rather than the intended "invalid." value.
4. Run code through black formater to stay compliant.
I've opted for a slightly shorter name for PTR owner names
The result looks like this:
```
catz. 0 IN SOA invalid. invalid. 23 60 10 1209600 0
zid-000002.zones.catz. 0 IN PTR 2.0.192.in-addr.arpa.
zid-000001.zones.catz. 0 IN PTR example.net.
zid-000003.zones.catz. 0 IN PTR jpmens.net.
zid-000004.zones.catz. 0 IN PTR tcp53.ch.
catz. 0 IN NS invalid.
version.catz. 0 IN TXT "2"
```
modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py
Remove code and description that imported old catz serials from flat files that were used before switch to DB model.
Code and docs no longer applicable so removed.
modified: src/netbox_plugin_bind_provisioner/models.py
Remove the settings model from Netbox's Permission system as these values are for internal use of the plugin only.
new file: src/netbox_plugin_bind_provisioner/management/commands/export-all-dns-zones.py
new file: src/netbox_plugin_bind_provisioner/management/commands/export-dns-zone.py
new file: src/netbox_plugin_bind_provisioner/utils.py
Adds export commands for zones to bind zone files and bump version to v1.0.4
modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py
Allows for TXT records to be added without quotation. This will apply the correct quoting and
chunking where needed.
modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py
Fixes bug: TXT records were truncated instead of chunked when larger then 255 characters and on semicolons.
modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py
modified: src/netbox_plugin_bind_provisioner/migrations/0001_initial.py
modified: src/netbox_plugin_bind_provisioner/models.py
Run code through black formater and bump version string to v1.0.0
Ingore build/ dir
modified: src/netbox_plugin_bind_provisioner/__init__.py
Set version v0.9.9
modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py
Fix bug where an exception occurse if a view has no zones.
Feature added - Fixes#5
Removes the warning for step 4 from the installation guide. The warning said not to run migrations
as the plugin did not have its own models. Since v0.9.6 it does so this was forgotten to be removed.