mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-31 22:08:38 +00:00
DhcpServer: removed the remove lease methods.
This commit is contained in:
@@ -1368,26 +1368,6 @@ namespace DnsServerCore.Dhcp
|
||||
SaveScopeFile(scope);
|
||||
}
|
||||
|
||||
public void RemoveLeaseByHardwareAddress(string scopeName, string hardwareAddress)
|
||||
{
|
||||
Scope scope = GetScope(scopeName);
|
||||
if (scope == null)
|
||||
throw new DhcpServerException("DHCP scope does not exists: " + scopeName);
|
||||
|
||||
Lease removedLease = scope.RemoveLeaseByHardwareAddress(hardwareAddress);
|
||||
UpdateDnsAuthZone(false, scope, removedLease);
|
||||
}
|
||||
|
||||
public void RemoveLeaseByClientIdentifier(string scopeName, string clientIdentifier)
|
||||
{
|
||||
Scope scope = GetScope(scopeName);
|
||||
if (scope == null)
|
||||
throw new DhcpServerException("DHCP scope does not exists: " + scopeName);
|
||||
|
||||
Lease removedLease = scope.RemoveLeaseByClientIdentifier(clientIdentifier);
|
||||
UpdateDnsAuthZone(false, scope, removedLease);
|
||||
}
|
||||
|
||||
public IDictionary<string, string> GetAddressHostNameMap()
|
||||
{
|
||||
Dictionary<string, string> map = new Dictionary<string, string>();
|
||||
|
||||
Reference in New Issue
Block a user