Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-8022

Making TE DB in OSPF Protocol accessible from Application.

    XMLWordPrintable

    Details

    • 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:

      ONOS-1.12.0

      OS: Ubuntu-14.x

      RAM-16GB

      Description

      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;
          }

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            saketbhardwajaricent saket Bhardwaj
            Reporter:
            saketbhardwajaricent saket Bhardwaj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: