I don’t know the history on this but the intent is to have action tied to a data node.
https://tools.ietf.org/html/rfc7950#section-7.15 The difference between an action and an rpc is that an action is tied to a node in the datastore, whereas an rpc is not. When an action is invoked, the node in the datastore is specified along with the name of the action and the input parameters. Regards, Reshad. From: netmod <netmod-boun...@ietf.org> on behalf of "Sterne, Jason (Nokia - CA/Ottawa)" <jason.ste...@nokia.com> Date: Thursday, April 30, 2020 at 11:08 AM To: "netmod@ietf.org" <netmod@ietf.org> Subject: [netmod] YANG action not allowed at root? Hi all, I was a bit surprised to find this in section 7.15 of 7950 recently: Since an action cannot be defined at the top level of a module or in a "case" statement, it is an error if a grouping that contains an action at the top of its node hierarchy is used at the top level of a module or in a case definition. I realize that actions can be placed down in a schema tree (i.e. sit in the context of a container or list), but why is it phrased that they *must* be in a container? RPCs are limited to being at the root. I would have thought actions could be anywhere (root or down in the tree). Jason
_______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod