DHCP and ARP
- async OPNsenseClient.get_arp_table(resolve_hostnames=False)
Return active ARP table entries.
- async OPNsenseClient.get_dhcp_leases(opnsense_tz=None)
Return active DHCP leases grouped by interface.
- Parameters:
opnsense_tz (tzinfo | None, optional) – Timezone used to localize ISC lease expiration timestamps. Fetched from OPNsense when omitted.
- Returns:
- Mapping with
lease_interfaceskeyed by interface name and
leaseskeyed by interface name. Lease entries are normalized across Kea, ISC DHCPv4, ISC DHCPv6, and dnsmasq and include address, hostname, interface, type, MAC, and expiration when available.
- Mapping with
- Return type: