public interface DhcpService
| Modifier and Type | Method and Description |
|---|---|
Iterable<org.onlab.packet.Ip4Address> |
getAvailableIPs()
Returns the list of all the available IPs with the server.
|
int |
getLeaseTime()
Returns the default lease time granted by the DHCP Server.
|
int |
getRebindingTime()
Returns the default rebinding time granted by the DHCP Server.
|
int |
getRenewalTime()
Returns the default renewal time granted by the DHCP Server.
|
Map<org.onosproject.net.HostId,IpAssignment> |
listMapping()
Returns a collection of all the MacAddress to IPAddress mapping.
|
boolean |
removeStaticMapping(org.onlab.packet.MacAddress macID)
Removes a static IP mapping with the DHCP Server.
|
boolean |
setStaticMapping(org.onlab.packet.MacAddress macAddress,
IpAssignment ipRequest)
Registers a static IP mapping with the DHCP Server.
|
Map<org.onosproject.net.HostId,IpAssignment> listMapping()
int getLeaseTime()
int getRenewalTime()
int getRebindingTime()
boolean setStaticMapping(org.onlab.packet.MacAddress macAddress,
IpAssignment ipRequest)
macAddress - mac address to have a given ip assignmentipRequest - ip address and dhcp optionsboolean removeStaticMapping(org.onlab.packet.MacAddress macID)
macID - macID of the clientIterable<org.onlab.packet.Ip4Address> getAvailableIPs()