public class DefaultIsisLsdb extends Object implements org.onosproject.isis.controller.IsisLsdb
| Constructor and Description |
|---|
DefaultIsisLsdb()
Creates an instance of ISIS LSDB.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLsp(org.onosproject.isis.controller.IsisMessage isisMessage,
boolean isSelfOriginated,
org.onosproject.isis.controller.IsisInterface isisInterface)
Installs a new self-originated LSP.
|
List<org.onosproject.isis.controller.LspWrapper> |
allLspHeaders(boolean excludeMaxAgeLsp)
Returns all LSPs (L1 and L2).
|
void |
deleteLsp(org.onosproject.isis.controller.IsisMessage lspMessage)
Deletes the given LSP.
|
org.onosproject.isis.controller.LspWrapper |
findLsp(org.onosproject.isis.controller.IsisPduType pduType,
String lspId)
Finds the LSP from appropriate maps L1 or L2 based on type.
|
Map<String,org.onosproject.isis.controller.LspWrapper> |
getL1Db()
Returns the neighbor L1 database information.
|
Map<String,org.onosproject.isis.controller.LspWrapper> |
getL2Db()
Returns the neighbor L2 database information.
|
void |
initializeDb()
Initializes the link state database.
|
org.onosproject.isis.controller.IsisLsdb |
isisLsdb()
Returns the LSDB instance.
|
String |
isNewerOrSameLsp(org.onosproject.isis.controller.IsisMessage lsp1,
org.onosproject.isis.controller.IsisMessage lsp2)
Returns new ,latest or old according to the type of ISIS message received.
|
String |
lspKey(String systemId)
Returns the LSDB LSP key.
|
int |
lsSequenceNumber(org.onosproject.isis.controller.IsisPduType lspType)
Returns the sequence number.
|
void |
removeLspFromBin(org.onosproject.isis.controller.LspWrapper lsaWrapper)
Removes LSP from Bin.
|
void |
removeTopology(org.onosproject.isis.controller.IsisNeighbor neighbor,
org.onosproject.isis.controller.IsisInterface isisInterface)
Removes topology information when neighbor down.
|
void |
setController(Controller controller)
Sets the controller instance.
|
void |
setIsisInterface(List<org.onosproject.isis.controller.IsisInterface> isisInterfaceList)
Sets the list of IsisInterface instance.
|
void |
setL1LspSeqNo(int l1LspSeqNo)
Sets the level 1 link state sequence number.
|
void |
setL2LspSeqNo(int l2LspSeqNo)
Sets the level 2 link state sequence number.
|
public void setController(Controller controller)
controller - controller instancepublic void setIsisInterface(List<org.onosproject.isis.controller.IsisInterface> isisInterfaceList)
isisInterfaceList - isisInterface instancepublic void initializeDb()
initializeDb in interface org.onosproject.isis.controller.IsisLsdbpublic void setL1LspSeqNo(int l1LspSeqNo)
setL1LspSeqNo in interface org.onosproject.isis.controller.IsisLsdbl1LspSeqNo - link state sequence numberpublic void setL2LspSeqNo(int l2LspSeqNo)
setL2LspSeqNo in interface org.onosproject.isis.controller.IsisLsdbl2LspSeqNo - link state sequence numberpublic String lspKey(String systemId)
lspKey in interface org.onosproject.isis.controller.IsisLsdbsystemId - system IDpublic Map<String,org.onosproject.isis.controller.LspWrapper> getL1Db()
getL1Db in interface org.onosproject.isis.controller.IsisLsdbpublic Map<String,org.onosproject.isis.controller.LspWrapper> getL2Db()
getL2Db in interface org.onosproject.isis.controller.IsisLsdbpublic org.onosproject.isis.controller.IsisLsdb isisLsdb()
isisLsdb in interface org.onosproject.isis.controller.IsisLsdbpublic List<org.onosproject.isis.controller.LspWrapper> allLspHeaders(boolean excludeMaxAgeLsp)
allLspHeaders in interface org.onosproject.isis.controller.IsisLsdbexcludeMaxAgeLsp - exclude the max age LSPspublic org.onosproject.isis.controller.LspWrapper findLsp(org.onosproject.isis.controller.IsisPduType pduType,
String lspId)
findLsp in interface org.onosproject.isis.controller.IsisLsdbpduType - L1 or L2 LSPlspId - LSP IDpublic boolean addLsp(org.onosproject.isis.controller.IsisMessage isisMessage,
boolean isSelfOriginated,
org.onosproject.isis.controller.IsisInterface isisInterface)
addLsp in interface org.onosproject.isis.controller.IsisLsdbpublic void removeLspFromBin(org.onosproject.isis.controller.LspWrapper lsaWrapper)
lsaWrapper - LSP wrapper instancepublic String isNewerOrSameLsp(org.onosproject.isis.controller.IsisMessage lsp1, org.onosproject.isis.controller.IsisMessage lsp2)
isNewerOrSameLsp in interface org.onosproject.isis.controller.IsisLsdblsp1 - LSP instancelsp2 - LSP instancepublic int lsSequenceNumber(org.onosproject.isis.controller.IsisPduType lspType)
lsSequenceNumber in interface org.onosproject.isis.controller.IsisLsdblspType - type of LSPpublic void deleteLsp(org.onosproject.isis.controller.IsisMessage lspMessage)
deleteLsp in interface org.onosproject.isis.controller.IsisLsdblspMessage - LSP instancepublic void removeTopology(org.onosproject.isis.controller.IsisNeighbor neighbor,
org.onosproject.isis.controller.IsisInterface isisInterface)
removeTopology in interface org.onosproject.isis.controller.IsisLsdbneighbor - ISIS neighbor instanceisisInterface - ISIS interface instanceCopyright © 2016. All rights reserved.