|
RFC7950:
7.16. The "notification" Statement
The "notification" statement is used to define a notification. It
takes one argument, which is an identifier, followed by a block of
substatements that holds detailed notification information. The
"notification" statement defines a notification node in the schema
tree.
A notification can be defined at the top level of a module, or
connected to a specific container or list data node in the schema
tree.
A notification MUST NOT be defined within an rpc, action, or another
notification, i.e., a notification node MUST NOT have an rpc, action,
or a notification node as one of its ancestors in the schema tree.
For example, this means that it is an error if a grouping that
contains a notification somewhere in its node hierarchy is used in an
rpc definition.
A notification MUST NOT have any ancestor node that is a list node
without a "key" statement.
|