public class DhcpConfig
extends org.onosproject.net.config.Config<org.onosproject.core.ApplicationId>
| Modifier and Type | Field and Description |
|---|---|
static String |
BROADCAST_ADDRESS |
static int |
DEFAULT |
static String |
DEFAULT_TIMEOUT |
static String |
DOMAIN_SERVER |
static String |
END_IP |
static String |
LEASE_TIME |
static String |
MY_IP |
static String |
MY_MAC |
static String |
REBIND_TIME |
static String |
RENEW_TIME |
static String |
ROUTER_ADDRESS |
static String |
START_IP |
static String |
SUBNET_MASK |
static String |
TIMER_DELAY |
static String |
TTL |
| Constructor and Description |
|---|
DhcpConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.Ip4Address |
broadcastAddress()
Returns the broadcast address.
|
org.onosproject.net.config.basics.BasicElementConfig |
broadcastAddress(String broadcast)
Sets the broadcast address.
|
int |
defaultTimeout()
Returns the default timeout for pending assignments.
|
org.onosproject.net.config.basics.BasicElementConfig |
defaultTimeout(int defaultTimeout)
Sets the default timeout for pending assignments.
|
org.onlab.packet.Ip4Address |
domainServer()
Returns the Domain Server Address.
|
org.onosproject.net.config.basics.BasicElementConfig |
domainServer(String domain)
Sets the Domain Server Address.
|
org.onlab.packet.Ip4Address |
endIp()
Returns the end IP for the available IP Range.
|
org.onosproject.net.config.basics.BasicElementConfig |
endIp(String endIp)
Sets the end IP for the available IP Range.
|
org.onlab.packet.Ip4Address |
ip()
Returns the dhcp server ip.
|
org.onosproject.net.config.basics.BasicElementConfig |
ip(String ip)
Sets the dhcp server ip.
|
boolean |
isValid() |
int |
leaseTime()
Returns the Lease Time offered by the DHCP Server.
|
org.onosproject.net.config.basics.BasicElementConfig |
leaseTime(int lease)
Sets the Lease Time offered by the DHCP Server.
|
org.onlab.packet.MacAddress |
mac()
Returns the dhcp server mac.
|
org.onosproject.net.config.basics.BasicElementConfig |
mac(String mac)
Sets the dhcp server mac.
|
int |
rebindTime()
Returns the Rebind Time offered by the DHCP Server.
|
org.onosproject.net.config.basics.BasicElementConfig |
rebindTime(int rebind)
Sets the Rebind Time offered by the DHCP Server.
|
int |
renewTime()
Returns the Renew Time offered by the DHCP Server.
|
org.onosproject.net.config.basics.BasicElementConfig |
renewTime(int renew)
Sets the Renew Time offered by the DHCP Server.
|
org.onlab.packet.Ip4Address |
routerAddress()
Returns the Router Address.
|
org.onosproject.net.config.basics.BasicElementConfig |
routerAddress(String router)
Sets the Router Address.
|
org.onlab.packet.Ip4Address |
startIp()
Returns the start IP for the available IP Range.
|
org.onosproject.net.config.basics.BasicElementConfig |
startIp(String startIp)
Sets the start IP for the available IP Range.
|
org.onlab.packet.Ip4Address |
subnetMask()
Returns the subnet mask.
|
org.onosproject.net.config.basics.BasicElementConfig |
subnetMask(String subnet)
Sets the subnet mask.
|
int |
timerDelay()
Returns the delay in minutes after which the dhcp server will purge expired entries.
|
org.onosproject.net.config.basics.BasicElementConfig |
timerDelay(int delay)
Sets the delay after which the dhcp server will purge expired entries.
|
int |
ttl()
Returns the Time To Live for the reply packets.
|
org.onosproject.net.config.basics.BasicElementConfig |
ttl(int ttl)
Sets the Time To Live for the reply packets.
|
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, key, node, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic static final String MY_IP
public static final String MY_MAC
public static final String SUBNET_MASK
public static final String BROADCAST_ADDRESS
public static final String ROUTER_ADDRESS
public static final String DOMAIN_SERVER
public static final String TTL
public static final String LEASE_TIME
public static final String RENEW_TIME
public static final String REBIND_TIME
public static final String TIMER_DELAY
public static final String DEFAULT_TIMEOUT
public static final String START_IP
public static final String END_IP
public static final int DEFAULT
public boolean isValid()
isValid in class org.onosproject.net.config.Config<org.onosproject.core.ApplicationId>public org.onlab.packet.Ip4Address ip()
public org.onosproject.net.config.basics.BasicElementConfig ip(String ip)
ip - new ip address; null to clearpublic org.onlab.packet.MacAddress mac()
public org.onosproject.net.config.basics.BasicElementConfig mac(String mac)
mac - new mac address; null to clearpublic org.onlab.packet.Ip4Address subnetMask()
public org.onosproject.net.config.basics.BasicElementConfig subnetMask(String subnet)
subnet - new subnet mask; null to clearpublic org.onlab.packet.Ip4Address broadcastAddress()
public org.onosproject.net.config.basics.BasicElementConfig broadcastAddress(String broadcast)
broadcast - new broadcast address; null to clearpublic int ttl()
public org.onosproject.net.config.basics.BasicElementConfig ttl(int ttl)
ttl - new ttl; null to clearpublic int leaseTime()
public org.onosproject.net.config.basics.BasicElementConfig leaseTime(int lease)
lease - new lease time; null to clearpublic int renewTime()
public org.onosproject.net.config.basics.BasicElementConfig renewTime(int renew)
renew - new renew time; null to clearpublic int rebindTime()
public org.onosproject.net.config.basics.BasicElementConfig rebindTime(int rebind)
rebind - new rebind time; null to clearpublic org.onlab.packet.Ip4Address routerAddress()
public org.onosproject.net.config.basics.BasicElementConfig routerAddress(String router)
router - new router address; null to clearpublic org.onlab.packet.Ip4Address domainServer()
public org.onosproject.net.config.basics.BasicElementConfig domainServer(String domain)
domain - new domain server address; null to clearpublic int timerDelay()
public org.onosproject.net.config.basics.BasicElementConfig timerDelay(int delay)
delay - new time delay; null to clearpublic int defaultTimeout()
public org.onosproject.net.config.basics.BasicElementConfig defaultTimeout(int defaultTimeout)
defaultTimeout - new default timeout; null to clearpublic org.onlab.packet.Ip4Address startIp()
public org.onosproject.net.config.basics.BasicElementConfig startIp(String startIp)
startIp - new start IP; null to clearpublic org.onlab.packet.Ip4Address endIp()
public org.onosproject.net.config.basics.BasicElementConfig endIp(String endIp)
endIp - new end IP; null to clear