-
Type: Bug
-
Status: Open (View Workflow)
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 1.12.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Environment:
-
Story Points:2
-
Epic Link:
Making TE DB in OSPF Protocol accessible from Application.
Aricent provides the facility to access the TEDB for the use to get the topology related information from the north bound application. This will provide the facility for north bound application developers to access the TE-DB information.
North Bound Application can access the TE-DB as the below mentioned way:
private OspfLinkTed getTeDbInfo(String key) {
/call to get the TE DB from the ONOS OSPF provider/
List<OspfProcess> listOfProcess = ospfController.getAllConfiguredProcesses();
Iterator<OspfProcess> itrProcess = listOfProcess.iterator();
/IF required need to enhance this to search the OspfLinkTed in multiple OspfArea's/
while (itrProcess.hasNext()) {
OspfProcess ospfProcess = itrProcess.next();
List<OspfArea> areaList = ospfProcess.areas();
Iterator<OspfArea> itrArea = areaList.iterator();
while (itrArea.hasNext()) {
OspfArea ospfArea = itrArea.next();
List<OspfInterface> ospfInterfaceList = ospfArea.ospfInterfaceList();
Iterator<OspfInterface> itrOspfInterface = ospfInterfaceList.iterator();
while (itrOspfInterface.hasNext()) {
OspfInterface ospfInterface = itrOspfInterface.next();
log.debug("ospfInterface :: {}", ospfInterface);
OspfLinkTed ospfLinkTed = ospfInterface.getOspfLinkTedFromMap(key);
log.debug("ospfLinkTed :: {}", ospfLinkTed);
if (null != ospfLinkTed) {
return ospfLinkTed;
}
}
}
}
return null;
}