Ask Your Question

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


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

Seen: 96 times

Last updated: Nov 18 '14