public interface OspfInterface
| Modifier and Type | Method and Description |
|---|---|
void |
addNeighbouringRouter(OspfNbr ospfNbr)
Adds the given neighboring router to the neighbor map.
|
org.onlab.packet.Ip4Address |
bdr()
Gets the IP address of the BDR.
|
org.onlab.packet.Ip4Address |
dr()
Gets the ip address of the DR..
|
int |
helloIntervalTime()
Gets hello interval time in seconds, this defines how often we send the hello packet.
|
void |
interfaceDown()
Gets called when an interface is down.
|
int |
interfaceIndex()
Returns interface index.
|
int |
interfaceType()
Gets the interface type.
|
void |
interfaceUp()
Represents an interface is up and connected.
|
org.onlab.packet.Ip4Address |
ipAddress()
Gets the IP address.
|
org.onlab.packet.Ip4Address |
ipNetworkMask()
Gets network mask of the interface.
|
boolean |
isNeighborInList(java.lang.String neighborId)
Checks the given neighbor is in the neighbor list.
|
java.util.Map<java.lang.String,OspfNbr> |
listOfNeighbors()
Gets the list of neighbors associated with the interface.
|
int |
mtu()
Gets the MTU.
|
OspfNbr |
neighbouringRouter(java.lang.String neighborId)
Gets the neighbor instance from listOfNeighbors map for the given neighbor ID.
|
OspfArea |
ospfArea()
Returns OSPF area instance.
|
void |
processOspfMessage(OspfMessage ospfMessage,
org.jboss.netty.channel.ChannelHandlerContext ctx)
When an OSPF message received it is handed over to this method.
|
void |
removeLsaFromNeighborMap(java.lang.String lsaKey)
Removes LSA headers from the map in which LSA headers are stored.
|
void |
removeNeighbors()
Removes all the neighbors.
|
int |
reTransmitInterval()
Gets retransmit interval.
|
int |
routerDeadIntervalTime()
Gets router dead interval time.
|
int |
routerPriority()
Gets router priority.
|
void |
setBdr(org.onlab.packet.Ip4Address bdr)
Sets the value of BDR.
|
void |
setDr(org.onlab.packet.Ip4Address dr)
Sets the value of DR.
|
void |
setHelloIntervalTime(int helloIntervalTime)
Sets the hello interval time.
|
void |
setInterfaceIndex(int interfaceIndex)
Sets interface index.
|
void |
setInterfaceType(int interfaceType)
Sets interface type.
|
void |
setIpAddress(org.onlab.packet.Ip4Address ipAddress)
Sets IP Address of this interface.
|
void |
setIpNetworkMask(org.onlab.packet.Ip4Address ipNetworkMask)
Sets IP network mask.
|
void |
setMtu(int mtu)
Sets MTU.
|
void |
setOspfArea(OspfArea ospfArea)
Sets OSPF area instance.
|
void |
setReTransmitInterval(int reTransmitInterval)
Sets retransmit interval which indicates the number of seconds between LSA retransmissions.
|
void |
setRouterDeadIntervalTime(int routerDeadIntervalTime)
Sets router dead interval time.
|
void |
setRouterPriority(int routerPriority)
Sets router priority.
|
void |
startDelayedAckTimer()
Starts the timer which waits for configured seconds and sends Delayed Ack Packet.
|
void |
startHelloTimer()
Starts the hello timer which sends hello packet every configured seconds.
|
void |
stopDelayedAckTimer()
Stops the delayed acknowledge timer.
|
void |
stopHelloTimer()
Stops the hello timer.
|
int interfaceIndex()
void setInterfaceIndex(int interfaceIndex)
interfaceIndex - interface indexOspfArea ospfArea()
void setOspfArea(OspfArea ospfArea)
ospfArea - OSPF area instanceorg.onlab.packet.Ip4Address ipNetworkMask()
void setBdr(org.onlab.packet.Ip4Address bdr)
bdr - backup designated router's IP addressvoid setDr(org.onlab.packet.Ip4Address dr)
dr - designated router's IP addressvoid setHelloIntervalTime(int helloIntervalTime)
helloIntervalTime - an integer interval timevoid setRouterDeadIntervalTime(int routerDeadIntervalTime)
routerDeadIntervalTime - an integer interval timevoid setInterfaceType(int interfaceType)
interfaceType - an integer represents interface typevoid setIpAddress(org.onlab.packet.Ip4Address ipAddress)
ipAddress - IP addressvoid setIpNetworkMask(org.onlab.packet.Ip4Address ipNetworkMask)
ipNetworkMask - network maskvoid setReTransmitInterval(int reTransmitInterval)
reTransmitInterval - an integer represents intervalvoid setMtu(int mtu)
mtu - an integer represents max transfer unitvoid setRouterPriority(int routerPriority)
routerPriority - valueorg.onlab.packet.Ip4Address ipAddress()
int interfaceType()
int mtu()
java.util.Map<java.lang.String,OspfNbr> listOfNeighbors()
org.onlab.packet.Ip4Address bdr()
org.onlab.packet.Ip4Address dr()
int helloIntervalTime()
int reTransmitInterval()
int routerDeadIntervalTime()
int routerPriority()
void addNeighbouringRouter(OspfNbr ospfNbr)
ospfNbr - neighbor instanceOspfNbr neighbouringRouter(java.lang.String neighborId)
neighborId - neighbors idboolean isNeighborInList(java.lang.String neighborId)
neighborId - neighbors idvoid removeLsaFromNeighborMap(java.lang.String lsaKey)
lsaKey - key used to store lsa in mapvoid processOspfMessage(OspfMessage ospfMessage, org.jboss.netty.channel.ChannelHandlerContext ctx)
ospfMessage - received OSPF messagectx - channel handler context instance.void interfaceUp()
void startDelayedAckTimer()
void stopDelayedAckTimer()
void startHelloTimer()
void stopHelloTimer()
void interfaceDown()
void removeNeighbors()