Skip to content
Snippets Groups Projects

Feature/add ping and dig to IPAM steps

Merged Karel van Klink requested to merge feature/add-ping-to-ipam-steps into develop
Files
6
+ 2
2
@@ -268,11 +268,11 @@ def create_host_by_ip(
new_host.update()
def find_host_by_ip(ip_addr: IPv4AddressType | ipaddress.IPv6Address) -> objects.HostRecord | None:
def find_host_by_ip(ip_addr: ipaddress.IPv4Address | ipaddress.IPv6Address) -> objects.HostRecord | None:
"""Find a host record in Infoblox by its associated IP address.
:param ip_addr: The IP address of a host that is searched for.
:type ip_addr: IPv4AddressType | ipaddress.IPv6Address
:type ip_addr: ipaddress.IPv4Address | ipaddress.IPv6Address
"""
conn, _ = _setup_connection()
if ip_addr.version == 4: # noqa: PLR2004, the 4 in IPv4 is well-known and not a "magic value."
Loading