I have yang file having notifications for alarms as below:
So i am not getting when i will receive one alarm, how I can generate an event for that. So that I can poll and process accordingly.
I have gone through a sample example where confd_notification_register_stream which does the confd registration. Then through the stdin its generating an event, which is getting polled and then takes necessary action.
I have few doubts:
1.While doing confd_notification_register_stream,its not doing subscription to any leaf or node as we map the action point for rpc data or call point for transactional data.How to segregate in the case of notification.Because we have multiple yang files and in that, we have multiple notifications.
2.what is the best way to design, which can work as notification framework.
3.I have gone through the linucfg code and using that i have created framework of rpc & transactional data.But i am not able to create for notification.
4.I couldn’t understand the usecase of streamname,replay member of confd_notification_stream_cbs.
If you can help me in designing the same then it will be really helpful for me.