I have yang file as below.i would like to get a call back whenever the client tries to do the get operation for lock-state which is operational data present inside ptp-status which is a configurational container.
So how to achieve it.I have tried to find a sample example for the same. If you can provide a sample example through which I can access the operational leaf or operational list present inside the configurational list or container,will really helpful.
Nothing needs to be changed in the example and it still works.
In your situation you just indicate that lock-state is a non-config leaf and declare your callpoint that you implement in your data provider code; the same holds for other leaves or the list sources. So the part of your data model can look like this: