- Split bind transfer command into multiple files for better code readability.
- Rename bind-transfer-endpoint command -> dns-transfer-endpoint.
This commit is contained in:
1 parent
9afdfe869b
commit
19a946c880
11 files changed
+820
-790
No files matched your search
@@ -4,7 +4,6 @@ import dns.rdatatype
|
||||
import dns.rdataclass
|
||||
import dns.exception
|
||||
import netbox_dns.models
|
||||
import uuid, base64
|
||||
|
||||
def export_bind_zone_file(nb_zone: netbox_dns.models.Zone, file_path: str):
|
||||
|
||||
@@ -34,6 +33,3 @@ def export_bind_zone_file(nb_zone: netbox_dns.models.Zone, file_path: str):
|
||||
except IOError as e:
|
||||
raise IOError(f"Failed to write zone file to {file_path}: {e}")
|
||||
|
||||
|
||||
def generate_catz_member_identifier():
|
||||
return base64.b32encode(uuid.uuid4().bytes)[0:26].lower().decode('UTF-8')
|
||||
Reference in new issue
Block a user