ns1-python icon indicating copy to clipboard operation
ns1-python copied to clipboard

Zone file import - support missing params.

Open hhellyer opened this issue 1 year ago • 1 comments

This PR adds support for missing parameters when importing zone files:

  • networks
  • views
  • name

As both zone creation with or without a zone file to prepopulate it use the same call, just with or without the zonefile specificed, the "name" field also added to the api to create a zone and "views" is added to the list of fields passed through on zone creation.

hhellyer avatar Jun 21 '24 14:06 hhellyer

Since this will need an update to the changelog before releasing I've added my proposed changelog update below. (It is a bit wordy because of the need to differentiate between behaviour changes when creating a zone and new things when creating a zone with a zonefile.)

## 0.20.1 (June ??th, 2024)

ENHANCEMENTS:
* Adds support for specifying a list of views when creating zones with or without a provided zone file.
* Adds support for specifying a zone name other than the FQDN when creating zones with or without a provided zone file.
* A specified list of networks for a zone was only applied to zone creation when a zone file was not provided. If a list of networks is specified it will now be applied when creating zones by uploading a zone file as well.

hhellyer avatar Jun 25 '24 07:06 hhellyer