From 08990b491cd37173391c64649bf76712cfef4d64 Mon Sep 17 00:00:00 2001 From: Ben Rankin Date: Mon, 2 Oct 2023 15:35:08 -0400 Subject: [PATCH 1/2] Added contains_network to search field for NetworkV4 --- infoblox_client/objects.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/infoblox_client/objects.py b/infoblox_client/objects.py index 5d7f12f..2ef15ba 100644 --- a/infoblox_client/objects.py +++ b/infoblox_client/objects.py @@ -7693,6 +7693,10 @@ class NetworkV4(Network): comment: Comment for the network, maximum 256 characters. conflict_count: The number of conflicts discovered via network discovery. + contains_address: When specified in searches, the returned network + is the smallest network that contains this IPv4 Address. If + specified, all other search attributes are ignored, except + for network_view. ddns_domainname: The dynamic DNS domain name the appliance uses specifically for DDNS updates for this network. ddns_generate_hostname: If this field is set to True, the DHCP @@ -7956,7 +7960,7 @@ class NetworkV4(Network): _infoblox_type = 'network' _fields = ['authority', 'auto_create_reversezone', 'bootfile', 'bootserver', 'cloud_info', 'comment', 'conflict_count', - 'ddns_domainname', 'ddns_generate_hostname', + 'contains_address', 'ddns_domainname', 'ddns_generate_hostname', 'ddns_server_always_updates', 'ddns_ttl', 'ddns_update_fixed_addresses', 'ddns_use_option81', 'delete_reason', 'deny_bootp', 'dhcp_utilization', @@ -8008,10 +8012,10 @@ class NetworkV4(Network): _updateable_search_fields = ['comment', 'discovered_bridge_domain', 'discovered_tenant', 'ipv4addr', 'network', 'rir_organization', 'unmanaged'] - _all_searchable_fields = ['comment', 'discovered_bgp_as', - 'discovered_bridge_domain', 'discovered_tenant', - 'discovered_vlan_id', 'discovered_vlan_name', - 'discovered_vrf_description', + _all_searchable_fields = ['comment', 'contains_address', + 'discovered_bgp_as', 'discovered_bridge_domain', + 'discovered_tenant', 'discovered_vlan_id', + 'discovered_vlan_name', 'discovered_vrf_description', 'discovered_vrf_name', 'discovered_vrf_rd', 'discovery_engine_type', 'ipv4addr', 'network', 'network_container', 'network_view', 'rir', From c3a1f087e3118978d6ff3896a428c41ed0cc3c88 Mon Sep 17 00:00:00 2001 From: Ben Rankin Date: Mon, 2 Oct 2023 15:35:08 -0400 Subject: [PATCH 2/2] Added contains_address to search field for NetworkV4 object --- infoblox_client/objects.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/infoblox_client/objects.py b/infoblox_client/objects.py index 5d7f12f..2ef15ba 100644 --- a/infoblox_client/objects.py +++ b/infoblox_client/objects.py @@ -7693,6 +7693,10 @@ class NetworkV4(Network): comment: Comment for the network, maximum 256 characters. conflict_count: The number of conflicts discovered via network discovery. + contains_address: When specified in searches, the returned network + is the smallest network that contains this IPv4 Address. If + specified, all other search attributes are ignored, except + for network_view. ddns_domainname: The dynamic DNS domain name the appliance uses specifically for DDNS updates for this network. ddns_generate_hostname: If this field is set to True, the DHCP @@ -7956,7 +7960,7 @@ class NetworkV4(Network): _infoblox_type = 'network' _fields = ['authority', 'auto_create_reversezone', 'bootfile', 'bootserver', 'cloud_info', 'comment', 'conflict_count', - 'ddns_domainname', 'ddns_generate_hostname', + 'contains_address', 'ddns_domainname', 'ddns_generate_hostname', 'ddns_server_always_updates', 'ddns_ttl', 'ddns_update_fixed_addresses', 'ddns_use_option81', 'delete_reason', 'deny_bootp', 'dhcp_utilization', @@ -8008,10 +8012,10 @@ class NetworkV4(Network): _updateable_search_fields = ['comment', 'discovered_bridge_domain', 'discovered_tenant', 'ipv4addr', 'network', 'rir_organization', 'unmanaged'] - _all_searchable_fields = ['comment', 'discovered_bgp_as', - 'discovered_bridge_domain', 'discovered_tenant', - 'discovered_vlan_id', 'discovered_vlan_name', - 'discovered_vrf_description', + _all_searchable_fields = ['comment', 'contains_address', + 'discovered_bgp_as', 'discovered_bridge_domain', + 'discovered_tenant', 'discovered_vlan_id', + 'discovered_vlan_name', 'discovered_vrf_description', 'discovered_vrf_name', 'discovered_vrf_rd', 'discovery_engine_type', 'ipv4addr', 'network', 'network_container', 'network_view', 'rir',