Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-77

DataChangeScope.ONE does not work in registerDataChangeListener

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 2912
    • High

    Description

      if I register a listener like this:
      dataProvider.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION, InstanceIdentifier.builder(Nodes.class).child(Node.class).build(), new NodesConfigListener(), DataChangeScope.ONE)

      and I PUT data to DS:
      http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/node-connector/com:nodeconnector
      {
      "opendaylight-inventory:node-connector": [

      { "id": "com:nodeconnector" }

      ]
      }

      the listener does not get a data change event.

      btw, If I do GET on node "openflow:1" I can see the node connector "com:nodeconnector" is in datastore.

      Attachments

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

        Activity

          People

            colindixon Colin Dixon
            msunal@cisco.com Martin Sunal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: