-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add useful fields for Authoritative Zone resource #186
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Ref string `json:"_ref,omitempty"` | ||
Fqdn string `json:"fqdn,omitempty"` | ||
View string `json:"view,omitempty"` | ||
NsGroup string `json:"ns_group,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about setting no NS groups for this zone (in UI: 'None' for 'Name Servers')? 'omitempty' option can prevent this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, you mean a case where the end user would like to send empty string "" as the ns_group
to explicitly set this field to nothing; if we omit this from marshaling when it is empty, on the Infoblox side it will attempt to set the default NS Group instead. Is that correct?
Hi @skudriavtsev thanks for the review and feedback! I've made most of the requested changes:
If we can resolve the last question about |
Fixes #185.
This adds the following fields for the
ZoneAuth
resource, so users can set a Nameserver Group or SOA TTLs when creating a new zone.ns_group
restart_if_needed
comment
soa_default_ttl
soa_expire
soa_negative_ttl
soa_refresh
soa_retry
These are already present in the Infoblox NIOS API; this change exposes them here in the Go Client.