Hi, The YANG notification-stmt is for defining your own event messages. This can be used with 5277 or 5277bis notification delivery mechanisms.
The choice of mandatory or optional (via if-feature) is model-specific. If the module functionality related to the notification is optional, the notification-stmt should be the same (have the same if-feature-stmts) If your notification is for pushing operational data that is also retrievable via <get>, then yang-push can be used instead. Andy On Wed, Jul 19, 2017 at 12:39 AM, Dhruv Dhody <[email protected]> wrote: > > Hi WG, > > As suggested by Lou, I am posting the question to the WG list with a > suggestion that perhaps such a guideline could be addressed in 6087bis. > > My question to yang doctors regarding the Notification was - > > What is the guideline for including Notification in the Yang model, now > that [I-D.ietf-netconf-yang-push] and > [I-D.ietf-netconf-subscribed-notifications] > is the preferred approach? > > Should we keep only "mandatory to implement notifications" in the Yang > model? Or just remove the notifications completely? > > A guideline to model writers would be helpful here, IMHO. > > Regards, > Dhruv > > _______________________________________________ > netmod mailing list > [email protected] > https://www.ietf.org/mailman/listinfo/netmod > >
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
