public interface OspfArea
| Modifier and Type | Method and Description |
|---|---|
void |
addLsa(OspfLsa ospfLsa,
boolean isSelfOriginated,
OspfInterface ospfInterface)
Adds the received LSA to LSDB, this method creates an LSA wrapper for the LSA.
|
void |
addLsa(OspfLsa ospfLsa,
OspfInterface ospfInterface)
Adds the received LSA to LSDB,this method creates an LSA wrapper for the LSA.
|
void |
addLsaToMaxAgeBin(java.lang.String key,
LsaWrapper wrapper)
Whenever we receive an LSA with max age - we put it in the max age bin.
|
org.onlab.packet.Ip4Address |
areaId()
Gets the area id.
|
OspfLsdb |
database()
Gets the LSDB instance for this area.
|
LsaWrapper |
getLsa(int lsType,
java.lang.String linkStateID,
java.lang.String advertisingRouter)
Gets the LSA wrapper from link state database based on the parameters passed.
|
java.util.List |
getLsaHeaders(boolean excludeMaxAgeLsa,
boolean isOpaqueCapable)
Gets LSA header of all types of LSAs present in the link state database.
|
void |
initializeDb()
Initializes link state database, this acts as a place holder for storing the received LSA.
|
boolean |
isExternalRoutingCapability()
Gets external routing capability.
|
java.lang.String |
isNewerOrSameLsa(OspfLsa lsa1,
OspfLsa lsa2)
Checks whether an instance of the given LSA exists in the database belonging to this area.
|
boolean |
isOpaqueEnabled()
Gets if the router is opaque enabled or not.
|
LsaWrapper |
lsaLookup(OspfLsa lookupLsa)
Checks whether an instance of the given LSA exists in the database.
|
boolean |
noNeighborInLsaExchangeProcess()
Verifies no neighbor is in exchange process.
|
int |
opaqueEnabledOptions()
Gets the opaque enabled options value, which indicates support of opaque capabilities.
|
int |
options()
Gets the options value, which indicates the supported optional capabilities.
|
java.util.List<OspfInterface> |
ospfInterfaceList()
Gets the list of interfaces attached to this area.
|
void |
refreshArea(OspfInterface ospfInterface)
Refreshes areas, by sending a router LSA and network LSA (in case of DR).
|
void |
removeLsaFromBin(LsaWrapper lsaWrapper)
Whenever an LSA is being flushed out or reaches max age, it must be stopped from aging.
|
org.onlab.packet.Ip4Address |
routerId()
Gets the router id associated with the area.
|
void |
setAreaId(org.onlab.packet.Ip4Address areaId)
Sets the area id.
|
void |
setDbRouterSequenceNumber(long newSequenceNumber)
Sets router sequence number for router LSA.
|
void |
setExternalRoutingCapability(boolean externalRoutingCapability)
Sets external routing capability.
|
void |
setIsOpaqueEnabled(boolean isOpaqueEnable)
Sets opaque enabled to true or false, which indicates whether the router accepts opaque LSA.
|
void |
setOptions(int options)
Sets the options value.
|
void |
setOspfInterfaceList(java.util.List<OspfInterface> interfacesLst)
Sets the list of interfaces attached to this area.
|
void |
setRouterId(org.onlab.packet.Ip4Address routerId)
Sets the router id for this area.
|
org.onlab.packet.Ip4Address routerId()
void setRouterId(org.onlab.packet.Ip4Address routerId)
routerId - router's ip addressorg.onlab.packet.Ip4Address areaId()
void setAreaId(org.onlab.packet.Ip4Address areaId)
areaId - area id as an IPv4 addressOspfLsdb database()
LsaWrapper lsaLookup(OspfLsa lookupLsa)
lookupLsa - LSA instance to lookupvoid initializeDb()
void setOptions(int options)
options - integer valueboolean isExternalRoutingCapability()
void setExternalRoutingCapability(boolean externalRoutingCapability)
externalRoutingCapability - true if external routing capable, else falseboolean isOpaqueEnabled()
java.util.List<OspfInterface> ospfInterfaceList()
void setOspfInterfaceList(java.util.List<OspfInterface> interfacesLst)
interfacesLst - list of interface instancesint options()
int opaqueEnabledOptions()
void setIsOpaqueEnabled(boolean isOpaqueEnable)
isOpaqueEnable - true if opaque enabled else falsevoid refreshArea(OspfInterface ospfInterface)
ospfInterface - interface instanceboolean noNeighborInLsaExchangeProcess()
java.lang.String isNewerOrSameLsa(OspfLsa lsa1, OspfLsa lsa2)
lsa1 - LSA instance to comparelsa2 - LSA instance to comparevoid addLsaToMaxAgeBin(java.lang.String key,
LsaWrapper wrapper)
key - key to add it to LSDBwrapper - LSA wrapper instancevoid removeLsaFromBin(LsaWrapper lsaWrapper)
lsaWrapper - the LSA wrapper instance to deletevoid addLsa(OspfLsa ospfLsa, boolean isSelfOriginated, OspfInterface ospfInterface)
ospfLsa - LSA instanceisSelfOriginated - true if the LSA is self originated else falseospfInterface - interface instancevoid addLsa(OspfLsa ospfLsa, OspfInterface ospfInterface)
ospfLsa - LSA instanceospfInterface - interface instancevoid setDbRouterSequenceNumber(long newSequenceNumber)
newSequenceNumber - sequence numberjava.util.List getLsaHeaders(boolean excludeMaxAgeLsa,
boolean isOpaqueCapable)
excludeMaxAgeLsa - need to include(true) or exclude(false) max age LSAisOpaqueCapable - need to include(true) or exclude(false) type 10 Opaque LSALsaWrapper getLsa(int lsType, java.lang.String linkStateID, java.lang.String advertisingRouter)
lsType - type of LSA to form the keylinkStateID - link state id to form the keyadvertisingRouter - advertising router to form the key