Package org.onosproject.dhcp
Class IpAssignment
- java.lang.Object
-
- org.onosproject.dhcp.IpAssignment
-
public final class IpAssignment extends java.lang.ObjectStores the MAC ID to IP Address mapping details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpAssignment.AssignmentStatusstatic classIpAssignment.BuilderIPAssignment Builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IpAssignment.AssignmentStatusassignmentStatus()Returns the assignment status of the IP assignment.Ip4Addressbroadcast()Returns broadcast address of the IP assignment.static IpAssignment.Builderbuilder()Creates and returns a new builder instance.static IpAssignment.Builderbuilder(IpAssignment assignment)Creates and returns a new builder instance that clones an existing IPAssignment.Ip4AddressdhcpServer()Returns dhcp server of the IP assignment.Ip4AddressdomainServer()Returns domain server address.Ip4AddressipAddress()Returns the IP Address of the IP assignment.intleasePeriod()Returns the lease period of the IP assignment.intleasePeriodMs()Returns the lease period of the IP assignment.Ip4AddressrouterAddress()Returns router address of the IP assignment.Ip4AddresssubnetMask()Returns subnet mask of the IP assignment.java.util.Datetimestamp()Returns the timestamp of the IP assignment.java.lang.StringtoString()
-
-
-
Method Detail
-
ipAddress
public Ip4Address ipAddress()
Returns the IP Address of the IP assignment.- Returns:
- the IP address
-
timestamp
public java.util.Date timestamp()
Returns the timestamp of the IP assignment.- Returns:
- the timestamp
-
assignmentStatus
public IpAssignment.AssignmentStatus assignmentStatus()
Returns the assignment status of the IP assignment.- Returns:
- the assignment status
-
leasePeriod
public int leasePeriod()
Returns the lease period of the IP assignment.- Returns:
- the lease period in seconds
-
leasePeriodMs
public int leasePeriodMs()
Returns the lease period of the IP assignment.- Returns:
- the lease period in milliseconds
-
subnetMask
public Ip4Address subnetMask()
Returns subnet mask of the IP assignment.- Returns:
- subnet mask
-
broadcast
public Ip4Address broadcast()
Returns broadcast address of the IP assignment.- Returns:
- broadcast address
-
dhcpServer
public Ip4Address dhcpServer()
Returns dhcp server of the IP assignment.- Returns:
- dhcp server ip address
-
routerAddress
public Ip4Address routerAddress()
Returns router address of the IP assignment.- Returns:
- router ip address
-
domainServer
public Ip4Address domainServer()
Returns domain server address.- Returns:
- domain server ip address
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static IpAssignment.Builder builder()
Creates and returns a new builder instance.- Returns:
- new builder
-
builder
public static IpAssignment.Builder builder(IpAssignment assignment)
Creates and returns a new builder instance that clones an existing IPAssignment.- Parameters:
assignment- ip address assignment- Returns:
- new builder
-
-