public interface IsisLsdb
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLsp(IsisMessage lsPdu,
boolean isSelfOriginated,
IsisInterface isisInterface)
Installs a new self-originated LSA in LSDB.
|
List<LspWrapper> |
allLspHeaders(boolean excludeMaxAgeLsp)
Returns all LSPs (L1 and L2).
|
void |
deleteLsp(IsisMessage lsp)
Deletes the given LSP.
|
LspWrapper |
findLsp(IsisPduType pduType,
String lspId)
Finds the LSP from LSDB.
|
Map<String,LspWrapper> |
getL1Db()
Gets the neighbor database information.
|
Map<String,LspWrapper> |
getL2Db()
Gets the neighbor database information.
|
void |
initializeDb()
Initializes LSDB.
|
IsisLsdb |
isisLsdb()
Returns the ISIS LSDB.
|
String |
isNewerOrSameLsp(IsisMessage receivedLsp,
IsisMessage lspFromDb)
Checks received LSP is latest, same or old.
|
String |
lspKey(String systemId)
Returns the LSDB LSP key.
|
int |
lsSequenceNumber(IsisPduType lspType)
Returns the sequence number.
|
void |
removeTopology(IsisNeighbor neighbor,
IsisInterface isisInterface)
Removes topology information when neighbor down.
|
void |
setL1LspSeqNo(int l1LspSeqNo)
Sets the level 1 link state sequence number.
|
void |
setL2LspSeqNo(int l2LspSeqNo)
Sets the level 2 link state sequence number.
|
IsisLsdb isisLsdb()
void initializeDb()
String lspKey(String systemId)
systemId - system IDint lsSequenceNumber(IsisPduType lspType)
lspType - L1 or L2 LSPLspWrapper findLsp(IsisPduType pduType, String lspId)
pduType - L1 or L2 LSPlspId - LSP IDboolean addLsp(IsisMessage lsPdu, boolean isSelfOriginated, IsisInterface isisInterface)
lsPdu - PDU instanceisSelfOriginated - true if self originated else falseisisInterface - ISIS interface instanceString isNewerOrSameLsp(IsisMessage receivedLsp, IsisMessage lspFromDb)
receivedLsp - received LSPlspFromDb - existing LSPList<LspWrapper> allLspHeaders(boolean excludeMaxAgeLsp)
excludeMaxAgeLsp - exclude the max age LSPsvoid deleteLsp(IsisMessage lsp)
lsp - LSP instanceMap<String,LspWrapper> getL1Db()
Map<String,LspWrapper> getL2Db()
void setL1LspSeqNo(int l1LspSeqNo)
l1LspSeqNo - link state sequence numbervoid setL2LspSeqNo(int l2LspSeqNo)
l2LspSeqNo - link state sequence numbervoid removeTopology(IsisNeighbor neighbor, IsisInterface isisInterface)
neighbor - ISIS neighbor instanceisisInterface - ISIS interface instance