IDhcpServerLeases
Interface in Oadm.Sdk.Network · Oadm.Sdk.dll
The DHCP server’s state and the addresses it hands out, read only (SDK 0.15.0). The DHCP server plugin offers it through ICorePluginContext.Services while it runs; Provisioning reads it to start a flow on a new camera. Ask with Find each time and never keep it. Nothing here changes the DHCP server. Thread-safe.
public interface IDhcpServerLeasesMethods
Section titled “Methods”AcksSince
Section titled “AcksSince”DhcpAcks AcksSince(long after, int max)The acknowledged leases (a new or renewed address of a device) after after, oldest first, at most max. The server keeps the most recent few thousand; DhcpAcks.Missed says that older ones were dropped since. Start with DhcpAcks.Next of the last answer (0 the first time).
Parameters
after: The sequence number of the last acknowledgement read.max: At most this many (1 to 10,000).
ActiveLeases
Section titled “ActiveLeases”IReadOnlyList<DhcpAck> ActiveLeases(IReadOnlyCollection<uint> ouiBlocks, int max)The active leases (dynamic and static) of devices with one of the MAC address blocks, at most max.
Parameters
ouiBlocks: The first three bytes of the MAC addresses (0xACCC8E); empty: every lease.max: At most this many.
Summary
Section titled “Summary”DhcpServerSummary Summary()The DHCP server’s state: whether it hands out addresses, its interface and range.