public class OspfEligibleRouter extends Object
| Constructor and Description |
|---|
OspfEligibleRouter()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.Ip4Address |
getIpAddress()
Gets the value of IP address.
|
org.onlab.packet.Ip4Address |
getRouterId()
Gets the value of router id.
|
int |
getRouterPriority()
Gets the value of router priority.
|
boolean |
isBdr()
Gets whether the router is BDR or not.
|
boolean |
isDr()
Gets whether the router is DR.
|
void |
setIpAddress(org.onlab.packet.Ip4Address ipAddress)
Sets the value of IP address.
|
void |
setIsBdr(boolean isBdr)
Sets the router is BDR or not.
|
void |
setIsDr(boolean isDr)
Sets the router is DR or not.
|
void |
setRouterId(org.onlab.packet.Ip4Address routerId)
Sets the value of router id.
|
void |
setRouterPriority(int routerPriority)
Sets the value of router priority.
|
public OspfEligibleRouter()
public org.onlab.packet.Ip4Address getIpAddress()
public void setIpAddress(org.onlab.packet.Ip4Address ipAddress)
ipAddress - IP addresspublic org.onlab.packet.Ip4Address getRouterId()
public void setRouterId(org.onlab.packet.Ip4Address routerId)
routerId - router idpublic int getRouterPriority()
public void setRouterPriority(int routerPriority)
routerPriority - router prioritypublic boolean isDr()
public void setIsDr(boolean isDr)
isDr - router is DR or notpublic boolean isBdr()
public void setIsBdr(boolean isBdr)
isBdr - the router is BDR or notCopyright © 2016. All rights reserved.