From b97bf5178be862c4273e7721250bd13d997a3ec4 Mon Sep 17 00:00:00 2001 From: unasra Date: Tue, 10 Sep 2024 10:31:23 +0530 Subject: [PATCH] added default value to ddns_use_conflict_resolution --- ipam/api/openapi.yaml | 1 + ipam/client.go | 42 +++++++++++++++++++++--------------------- ipam/docs/IPSpace.md | 2 +- ipam/model_ip_space.go | 4 ++++ 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/ipam/api/openapi.yaml b/ipam/api/openapi.yaml index 45291c7..6ec4bbf 100644 --- a/ipam/api/openapi.yaml +++ b/ipam/api/openapi.yaml @@ -13125,6 +13125,7 @@ components: format: boolean type: boolean ddns_use_conflict_resolution: + default: true description: |- When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. diff --git a/ipam/client.go b/ipam/client.go index dfebe6b..9bf8c36 100644 --- a/ipam/client.go +++ b/ipam/client.go @@ -23,29 +23,29 @@ type APIClient struct { *internal.APIClient // API Services - AddressAPI AddressAPI - AddressBlockAPI AddressBlockAPI - AsmAPI AsmAPI - ConfigProfileAPI ConfigProfileAPI - DhcpHostAPI DhcpHostAPI - DnsUsageAPI DnsUsageAPI - FilterAPI FilterAPI - FixedAddressAPI FixedAddressAPI - GlobalAPI GlobalAPI - HaGroupAPI HaGroupAPI + AddressAPI AddressAPI + AddressBlockAPI AddressBlockAPI + AsmAPI AsmAPI + ConfigProfileAPI ConfigProfileAPI + DhcpHostAPI DhcpHostAPI + DnsUsageAPI DnsUsageAPI + FilterAPI FilterAPI + FixedAddressAPI FixedAddressAPI + GlobalAPI GlobalAPI + HaGroupAPI HaGroupAPI HardwareFilterAPI HardwareFilterAPI - IpSpaceAPI IpSpaceAPI - IpamHostAPI IpamHostAPI - LeasesCommandAPI LeasesCommandAPI + IpSpaceAPI IpSpaceAPI + IpamHostAPI IpamHostAPI + LeasesCommandAPI LeasesCommandAPI MacAddressItemAPI MacAddressItemAPI - OptionCodeAPI OptionCodeAPI - OptionFilterAPI OptionFilterAPI - OptionGroupAPI OptionGroupAPI - OptionSpaceAPI OptionSpaceAPI - RangeAPI RangeAPI - ServerAPI ServerAPI - ServiceAPI ServiceAPI - SubnetAPI SubnetAPI + OptionCodeAPI OptionCodeAPI + OptionFilterAPI OptionFilterAPI + OptionGroupAPI OptionGroupAPI + OptionSpaceAPI OptionSpaceAPI + RangeAPI RangeAPI + ServerAPI ServerAPI + ServiceAPI ServiceAPI + SubnetAPI SubnetAPI } // NewAPIClient creates a new API client. diff --git a/ipam/docs/IPSpace.md b/ipam/docs/IPSpace.md index 3fa092a..df1ebba 100644 --- a/ipam/docs/IPSpace.md +++ b/ipam/docs/IPSpace.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **DdnsSendUpdates** | Pointer to **bool** | Determines if DDNS updates are enabled at the IP space level. Defaults to _true_. | [optional] [default to true] **DdnsTtlPercent** | Pointer to **float32** | DDNS TTL value - to be calculated as a simple percentage of the lease's lifetime, using the parameter's value as the percentage. It is specified as a percentage (e.g. 25, 75). Defaults to unspecified. | [optional] **DdnsUpdateOnRenew** | Pointer to **bool** | Instructs the DHCP server to always update the DNS information when a lease is renewed even if its DNS information has not changed. Defaults to _false_. | [optional] [default to false] -**DdnsUseConflictResolution** | Pointer to **bool** | When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. | [optional] +**DdnsUseConflictResolution** | Pointer to **bool** | When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. | [optional] [default to true] **DefaultRealms** | Pointer to **[]string** | Reserved for future use. | [optional] **DhcpConfig** | Pointer to [**DHCPConfig**](DHCPConfig.md) | The shared DHCP configuration for the IP space that controls how leases are issued. | [optional] **DhcpOptions** | Pointer to [**[]OptionItem**](OptionItem.md) | The list of IPv4 DHCP options for IP space. May be either a specific option or a group of options. | [optional] diff --git a/ipam/model_ip_space.go b/ipam/model_ip_space.go index 354d090..f475ad7 100644 --- a/ipam/model_ip_space.go +++ b/ipam/model_ip_space.go @@ -110,6 +110,8 @@ func NewIPSpace(name string) *IPSpace { this.DdnsSendUpdates = &ddnsSendUpdates var ddnsUpdateOnRenew bool = false this.DdnsUpdateOnRenew = &ddnsUpdateOnRenew + var ddnsUseConflictResolution bool = true + this.DdnsUseConflictResolution = &ddnsUseConflictResolution var hostnameRewriteChar string = "-" this.HostnameRewriteChar = &hostnameRewriteChar var hostnameRewriteEnabled bool = false @@ -137,6 +139,8 @@ func NewIPSpaceWithDefaults() *IPSpace { this.DdnsSendUpdates = &ddnsSendUpdates var ddnsUpdateOnRenew bool = false this.DdnsUpdateOnRenew = &ddnsUpdateOnRenew + var ddnsUseConflictResolution bool = true + this.DdnsUseConflictResolution = &ddnsUseConflictResolution var hostnameRewriteChar string = "-" this.HostnameRewriteChar = &hostnameRewriteChar var hostnameRewriteEnabled bool = false