public class OspfInterfaceImpl extends Object implements org.onosproject.ospf.controller.OspfInterface
| Constructor and Description |
|---|
OspfInterfaceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLsaHeaderForDelayAck(org.onosproject.ospf.protocol.lsa.LsaHeader lsaHeader)
Adds LSAHeader to map.
|
void |
addNeighbouringRouter(org.onosproject.ospf.controller.OspfNbr ospfNbr)
Adds neighboring router to list.
|
int |
areaId()
Gets the area id this interface belongs.
|
String |
authKey()
Gets authentication key.
|
String |
authType()
Gets authentication type.
|
org.onlab.packet.Ip4Address |
bdr()
Gets backup designated routers IP address.
|
org.onlab.packet.Ip4Address |
dr()
Gets designated routers IP address.
|
boolean |
equals(Object o) |
int |
hashCode() |
int |
helloIntervalTime()
Gets hello interval time.
|
int |
interfaceCost()
Gets interface cost.
|
int |
interfaceType()
Gets interface type.
|
org.onlab.packet.Ip4Address |
ipAddress()
Gets the IP address.
|
org.onlab.packet.Ip4Address |
ipNetworkMask()
Gets IP network mask.
|
boolean |
isNeighborInList(String neighborId)
Checks neighbor is in the list or not.
|
List<org.onosproject.ospf.protocol.lsa.LsaHeader> |
linkStateHeaders()
Gets link state headers.
|
HashMap<String,org.onosproject.ospf.controller.OspfNbr> |
listOfNeighbors()
Gets the list of neighbors.
|
int |
mtu()
Gets max transfer unit.
|
org.onosproject.ospf.controller.OspfNbr |
neighbouringRouter(String neighborId)
Gets the neighbour details from listOfNeighbors map.
|
int |
pollInterval()
Gets poll interval.
|
void |
removeLsaFromNeighborMap(String lsaKey)
Removes LSA header from map.
|
int |
reTransmitInterval()
Gets retransmit interval.
|
int |
routerDeadIntervalTime()
Gets router dead interval time.
|
int |
routerPriority()
Gets router priority.
|
void |
setAreaId(int areaId)
Sets the area id this interface belongs.
|
void |
setAuthKey(String authKey)
Sets authentication key.
|
void |
setAuthType(String authType)
Sets authentication type.
|
void |
setBdr(org.onlab.packet.Ip4Address bdr)
Sets backup designated routers IP address.
|
void |
setDr(org.onlab.packet.Ip4Address dr)
Sets designated routers IP address.
|
void |
setHelloIntervalTime(int helloIntervalTime)
Sets hello interval time.
|
void |
setInterfaceCost(int interfaceCost)
Sets interface cost.
|
void |
setInterfaceType(int interfaceType)
Sets interface type.
|
void |
setIpAddress(org.onlab.packet.Ip4Address ipAddress)
Sets the interface IP address.
|
void |
setIpNetworkMask(org.onlab.packet.Ip4Address ipNetworkMask)
Sets IP network mask.
|
void |
setListOfNeighbors(HashMap<String,org.onosproject.ospf.controller.OspfNbr> listOfNeighbors)
Sets the list of neighbors.
|
void |
setMtu(int mtu)
Sets max transfer unit.
|
void |
setPollInterval(int pollInterval)
Sets poll interval.
|
void |
setReTransmitInterval(int reTransmitInterval)
Sets retransmit interval.
|
void |
setRouterDeadIntervalTime(int routerDeadIntervalTime)
Sets router dead interval time.
|
void |
setRouterPriority(int routerPriority)
Sets router priority.
|
void |
setState(org.onosproject.ospf.protocol.util.OspfInterfaceState ospfInterfaceState)
Sets the interface state.
|
void |
setTransmitDelay(int transmitDelay)
Sets transmission delay.
|
org.onosproject.ospf.protocol.util.OspfInterfaceState |
state()
Gets the interface state.
|
String |
toString() |
int |
transmitDelay()
Get transmission delay.
|
public org.onosproject.ospf.protocol.util.OspfInterfaceState state()
public void setState(org.onosproject.ospf.protocol.util.OspfInterfaceState ospfInterfaceState)
ospfInterfaceState - interface state enum instancepublic List<org.onosproject.ospf.protocol.lsa.LsaHeader> linkStateHeaders()
public org.onlab.packet.Ip4Address ipNetworkMask()
ipNetworkMask in interface org.onosproject.ospf.controller.OspfInterfacepublic void setIpNetworkMask(org.onlab.packet.Ip4Address ipNetworkMask)
setIpNetworkMask in interface org.onosproject.ospf.controller.OspfInterfaceipNetworkMask - network maskpublic void addNeighbouringRouter(org.onosproject.ospf.controller.OspfNbr ospfNbr)
addNeighbouringRouter in interface org.onosproject.ospf.controller.OspfInterfaceospfNbr - ospfNbr instancepublic org.onosproject.ospf.controller.OspfNbr neighbouringRouter(String neighborId)
neighbouringRouter in interface org.onosproject.ospf.controller.OspfInterfaceneighborId - neighbors idpublic void addLsaHeaderForDelayAck(org.onosproject.ospf.protocol.lsa.LsaHeader lsaHeader)
lsaHeader - LSA header instancepublic void removeLsaFromNeighborMap(String lsaKey)
removeLsaFromNeighborMap in interface org.onosproject.ospf.controller.OspfInterfacelsaKey - key used to store LSA in mappublic boolean isNeighborInList(String neighborId)
isNeighborInList in interface org.onosproject.ospf.controller.OspfInterfaceneighborId - neighbors idpublic HashMap<String,org.onosproject.ospf.controller.OspfNbr> listOfNeighbors()
listOfNeighbors in interface org.onosproject.ospf.controller.OspfInterfacepublic void setListOfNeighbors(HashMap<String,org.onosproject.ospf.controller.OspfNbr> listOfNeighbors)
listOfNeighbors - as key value pairpublic org.onlab.packet.Ip4Address ipAddress()
ipAddress in interface org.onosproject.ospf.controller.OspfInterfacepublic void setIpAddress(org.onlab.packet.Ip4Address ipAddress)
setIpAddress in interface org.onosproject.ospf.controller.OspfInterfaceipAddress - interface IP addresspublic int routerPriority()
routerPriority in interface org.onosproject.ospf.controller.OspfInterfacepublic void setRouterPriority(int routerPriority)
setRouterPriority in interface org.onosproject.ospf.controller.OspfInterfacerouterPriority - valuepublic int areaId()
areaId in interface org.onosproject.ospf.controller.OspfInterfacepublic void setAreaId(int areaId)
setAreaId in interface org.onosproject.ospf.controller.OspfInterfaceareaId - the area id this interface belongspublic int helloIntervalTime()
helloIntervalTime in interface org.onosproject.ospf.controller.OspfInterfacepublic void setHelloIntervalTime(int helloIntervalTime)
setHelloIntervalTime in interface org.onosproject.ospf.controller.OspfInterfacehelloIntervalTime - an integer interval timepublic int routerDeadIntervalTime()
routerDeadIntervalTime in interface org.onosproject.ospf.controller.OspfInterfacepublic void setRouterDeadIntervalTime(int routerDeadIntervalTime)
setRouterDeadIntervalTime in interface org.onosproject.ospf.controller.OspfInterfacerouterDeadIntervalTime - router dead interval timepublic int interfaceType()
interfaceType in interface org.onosproject.ospf.controller.OspfInterfacepublic void setInterfaceType(int interfaceType)
setInterfaceType in interface org.onosproject.ospf.controller.OspfInterfaceinterfaceType - interface typepublic int interfaceCost()
interfaceCost in interface org.onosproject.ospf.controller.OspfInterfacepublic void setInterfaceCost(int interfaceCost)
setInterfaceCost in interface org.onosproject.ospf.controller.OspfInterfaceinterfaceCost - interface costpublic String authType()
authType in interface org.onosproject.ospf.controller.OspfInterfacepublic void setAuthType(String authType)
setAuthType in interface org.onosproject.ospf.controller.OspfInterfaceauthType - authType represents authentication typepublic String authKey()
authKey in interface org.onosproject.ospf.controller.OspfInterfacepublic void setAuthKey(String authKey)
setAuthKey in interface org.onosproject.ospf.controller.OspfInterfaceauthKey - represents authentication keypublic int pollInterval()
pollInterval in interface org.onosproject.ospf.controller.OspfInterfacepublic void setPollInterval(int pollInterval)
setPollInterval in interface org.onosproject.ospf.controller.OspfInterfacepollInterval - an integer represents poll intervalpublic int mtu()
mtu in interface org.onosproject.ospf.controller.OspfInterfacepublic void setMtu(int mtu)
setMtu in interface org.onosproject.ospf.controller.OspfInterfacemtu - max transfer unitpublic int reTransmitInterval()
reTransmitInterval in interface org.onosproject.ospf.controller.OspfInterfacepublic void setReTransmitInterval(int reTransmitInterval)
setReTransmitInterval in interface org.onosproject.ospf.controller.OspfInterfacereTransmitInterval - retransmit intervalpublic org.onlab.packet.Ip4Address dr()
dr in interface org.onosproject.ospf.controller.OspfInterfacepublic void setDr(org.onlab.packet.Ip4Address dr)
setDr in interface org.onosproject.ospf.controller.OspfInterfacedr - designated routers IP addresspublic org.onlab.packet.Ip4Address bdr()
bdr in interface org.onosproject.ospf.controller.OspfInterfacepublic void setBdr(org.onlab.packet.Ip4Address bdr)
setBdr in interface org.onosproject.ospf.controller.OspfInterfacebdr - backup designated routers IP addresspublic int transmitDelay()
transmitDelay in interface org.onosproject.ospf.controller.OspfInterfacepublic void setTransmitDelay(int transmitDelay)
setTransmitDelay in interface org.onosproject.ospf.controller.OspfInterfacetransmitDelay - transmission delayCopyright © 2016. All rights reserved.