Uploaded image for project: 'l2switch'
  1. l2switch
  2. L2SWITCH-25

L2switch sample fails to handle topology updates, uses deprecated APIs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 2263

    Description

      When updated and original data are equal, but new data nodes are created ... TopologyDataChangeHandler's onDataChanged doesn't properly schedule a topology update.

      if(linkOriginalData != null && linkUpdatedData != null
      && (linkOriginalData.size() != 0 || linkUpdatedData.size() != 0)
      && !networkGraphRefreshScheduled) {
      networkGraphRefreshScheduled = linkOriginalData.size() != linkUpdatedData.size();
      if(networkGraphRefreshScheduled)

      { networkGraphRefreshScheduler.schedule(new NetworkGraphRefresher(), graphRefreshDelayInSec, TimeUnit.SECONDS); }
      }

      This needs to be modified to use change.getCreatedOperationalData() and handle the case where only created nodes exist.


      Map<InstanceIdentifier<?>, DataObject> linkCreatedData = dataChangeEvent.getCreatedOperationalData();
      // change this logic, once MD-SAL start populating DeletedOperationData Set
      if(linkOriginalData != null && linkUpdatedData != null && linkCreatedData != null
      && (linkOriginalData.size() != 0 || linkUpdatedData.size() != 0 || linkCreatedData.size() != 0)
      && !networkGraphRefreshScheduled) {
      networkGraphRefreshScheduled = true;
      if(networkGraphRefreshScheduled) { networkGraphRefreshScheduler.schedule(new NetworkGraphRefresher(), graphRefreshDelayInSec, TimeUnit.SECONDS); }

      }

      Attachments

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

        Activity

          People

            jameshall03885@gmail.com James Gregory Hall
            jameshall03885@gmail.com James Gregory Hall
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: