How To Access Data In MD-SAL From MountPoint

Posted by Kanika

MD-SAL provides three different APIs to access data in the common data store:

Java generated DTOs – Binding Aware

DOM APIs – Binding Independent

HTTP Restconf APIs

In this post we will see how to access data in MD-SAL using each of this method. For first two, we need to get MountService from Provider context and then get the MountInstance for inventory path to the device so that we can read configuration data, invoke RPCs and so on.

Let’s say we have an instance of node “node_001” in MD-SAL and we want to get the mount instance of this node.