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


What is ProviderContext in statistics-manager in opendaylight controller.

asked 2014-10-06 23:53:38 -0700

KushalKumar gravatar image

How can i use ProviderContext instance for get SAL service instance as shown below in my own class.

DataProviderService dataProviderService = session.getSALService(DataProviderService.class);

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-18 21:43:34 -0700

Srijit Nair gravatar image

If you are looking for usage The following code should give you a better idea : .... //session is an object of type ProviderContext DataProviderService dataProviderService = session.getSALService(DataProviderService.class); NodeId nodeId = new NodeId("node_oo1"); NodeKey nodeKey = new NodeKey(nodeId); InstanceIdentifier<node><node> nodeIdentifier = InstanceIdentifier.builder(Nodes.class). child(Node.class,nodeKey).toInstance(); Node node = (Node) dataProviderService.readOperationalData(nodeIdentifier); List<nodeconnector> nodeConnetorList = node.getNodeConnector();

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-10-06 23:53:38 -0700

Seen: 115 times

Last updated: Nov 18 '14