DHCP and ARP

async OPNsenseClient.get_arp_table(resolve_hostnames=False)

Return the active ARP table.

Parameters:

resolve_hostnames (bool) – Whether reverse DNS lookups should be requested.

Returns:

Normalized data returned by the related OPNsense endpoint.

Return type:

list

async OPNsenseClient.get_dhcp_leases(opnsense_tz=None)

Return list of DHCP leases.

Parameters:

opnsense_tz (tzinfo | None, optional) – Timezone value returned by OPNsense.

Returns:

Normalized data returned by the related OPNsense endpoint.

Return type:

dict[str, Any]