/// <summary> /// Creates a DHCP scope reservation from a client /// </summary> /// <param name="client">A DHCP client to convert to a reservation</param> /// <returns>The scope reservation</returns> public IDhcpServerScopeReservation AddReservation(IDhcpServerClient client) { if (!Scope.IpRange.Contains(client.IpAddress)) { throw new ArgumentOutOfRangeException(nameof(client), "The client address is not within the IP range of the scope"); } return(DhcpServerScopeReservation.CreateReservation(Scope, client.IpAddress, client.HardwareAddress)); }
public void RemoveClient(IDhcpServerClient client) => client.Delete();