Add network_view to infoblox client
Compare changes
+ 30
− 19
@@ -41,29 +41,32 @@ def _setup_connection() -> tuple[connector.Connector, IPAMParams]:
@@ -41,29 +41,32 @@ def _setup_connection() -> tuple[connector.Connector, IPAMParams]:
conn: connector.Connector, dns_view: str, netmask: int, containers: list[str], comment: str | None = ""
The function will go over all given containers, and try to allocate a network within the available IP space. If no
:param netmask: The netmask of the desired network. Can be up to 32 for v4 networks, and 128 for v6 networks.
:param containers: A list of network containers in which the network should be allocated, given in :term:`CIDR`
created_net = objects.Network.create(conn, network=str(network), dns_view=dns_view, comment=comment)
@@ -104,8 +107,9 @@ def allocate_v4_network(service_type: str, comment: str | None = "") -> ipaddres
@@ -104,8 +107,9 @@ def allocate_v4_network(service_type: str, comment: str | None = "") -> ipaddres
@@ -123,8 +127,9 @@ def allocate_v6_network(service_type: str, comment: str | None = "") -> ipaddres
@@ -123,8 +127,9 @@ def allocate_v6_network(service_type: str, comment: str | None = "") -> ipaddres
@@ -184,10 +189,11 @@ def allocate_host(
@@ -184,10 +189,11 @@ def allocate_host(
@@ -197,6 +203,7 @@ def allocate_host(
@@ -197,6 +203,7 @@ def allocate_host(
@@ -209,7 +216,7 @@ def allocate_host(
@@ -209,7 +216,7 @@ def allocate_host(
@@ -240,7 +247,8 @@ def create_host_by_ip(
@@ -240,7 +247,8 @@ def create_host_by_ip(
:param str service_type: The relevant service type, used to deduce the correct ``dns_view`` in Infoblox.
:param str comment: The comment stored in this Infoblox record, most likely the relevant ``subscription_id`` in
@@ -252,9 +260,12 @@ def create_host_by_ip(
@@ -252,9 +260,12 @@ def create_host_by_ip(