[CONTROLLER-614] If a node extension has a list and a datachange is registered on the node extension then onDataChange gets the child list and not the node extension Created: 08/Jul/14  Updated: 15/Jul/14  Resolved: 15/Jul/14

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Ramkumar Gowrishankar Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 1333

 Description   

Hi,
I created a node extension to use a group that contains a list.

When I registered for dataChangeListener using the Node Extension and then look at what nodes I get in the onDataChanged call back, I get the list node and not the extension node.
If I remove the list, then I get a node from which I can get to the node extension.
I have created a gerrit change with sample files. I will upload the gerrit the id to this bug soon.



 Comments   
Comment by Ramkumar Gowrishankar [ 08/Jul/14 ]

The code can be found at: https://git.opendaylight.org/gerrit/#/c/8804/

I am using the new framework for the dataChangeListener registration.

Comment by Tony Tkacik [ 08/Jul/14 ]

If you register for /foo/augmentation using DataBrokerService
you will get notificagtion for any changed nested items,
not only top-level container. One of this items is also your /foo/augmentation.

Comment by Ramkumar Gowrishankar [ 09/Jul/14 ]

Tony, I am getting only the nested items and not the top level container. I am iterating through the items returned by
Map<InstanceIdentifier<?>, DataObject> created = change.getCreatedData();
in the onDataChanged function call. Is the top level container returned in a different call?

Comment by Tony Tkacik [ 11/Jul/14 ]

https://git.opendaylight.org/gerrit/#/c/8935/

Generated at Wed Feb 07 19:53:27 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.