Closed shakin89 closed 1 month ago
True, ACTIVE_STATUS_LIST
has disappeared because the list of active zone (and record) statuses has become configurable.
You can simplify this code by using
zones = Zone.objects.filter(view=view, active=True)
instead (edit: For records, it's just the same).
Wow, i really appreciate your work!!! many many thanks! now it works like a charm!!!
Versions NetBox Version: 4.1.4 NetBox DNS Version: 1.1.4 Python Version: 3.11.2
Describe the bug I was using the example script to export dns zones to a file and use these with ansible. The script has always functioned with netbox 3.x and netbox_dns up to 0.6.x
I've upgradet to netbox 4.1 and dns 1.1.4 In the export script there is a line calling
but searching through the code i saw that Zone.ACTIVE_STATUS_LIST has disappeared. I tried to replace it with Zone.ZONE_ACTIVE_STATUS_LIST but when i run the script i alwasy get the error
It should not be necessary, but i configured two options "zone_active_status": [ZoneStatusChoices.STATUS_ACTIVE, ZoneStatusChoices.STATUS_DYNAMIC], "record_active_status": [RecordStatusChoices.STATUS_ACTIVE] without success. Any help would be very appreciated. Thanks in advance.