Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

The approach would be the same, but you would create an InstanceIdentifier which would target links -- not sure what the original model was, assuming it was network-topology or similar, but it should work like this:

//Look up all the nodes from MD-SAL operational data store InstanceIdentifier<links> nodesIdentifier = InstanceIdentifier.builder(Links.class).toInstance() List<link> nodes = dataService.readOperationalData(linksIdentifier).getLinks();

//Look up a specific node "node001" LinkId linkId = new LinkId("link001"); InstanceIdentifier instanceIdentifier = InstanceIdentifier.builder(Links.class).child(Link.class, new LinkKey(linkId)).toInstance(); Link link = dataService.readOperationalData(instanceIdentifier);

The specifics really depend on the model -- if you look at the base network topology model (, you will see that both nodes and links have the same kind of containment.