[YANGTOOLS-684] [Yang 1.1] Add support for new statement "action" Created: 07/Oct/16  Updated: 10/Apr/22  Resolved: 19/Dec/16

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Peter Kajsa Assignee: Igor Foltin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks NETCONF-298 Implement "action" operation connecte... Resolved
blocks YANGTOOLS-355 Milestone: Introduce support for YANG... Resolved
is blocked by YANGTOOLS-664 Extend yang statement parser to suppo... Resolved
is blocked by YANGTOOLS-699 Milestone: [Yang 1.1] Yang model API ... Resolved
External issue ID: 6896

 Comments   
Comment by Martin Ciglan [ 19/Oct/16 ]

RFC7950:
7.15. The "action" Statement
The "action" statement is used to define an operation connected to a
specific container or list data node. It takes one argument, which
is an identifier, followed by a block of substatements that holds
detailed action information. The argument is the name of the action.
The "action" statement defines an action node in the schema tree.
Under the action node, a schema node with the name "input" and a
schema node with the name "output" are also defined. The nodes
"input" and "output" are defined in the module’s namespace.
An action MUST NOT be defined within an rpc, another action, or a
notification, i.e., an action 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
an action somewhere in its node hierarchy is used in a notification
definition.
An action MUST NOT have any ancestor node that is a list node without
a "key" statement.
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.
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.

Comment by Igor Foltin [ 07/Nov/16 ]

API change - https://git.opendaylight.org/gerrit/#/c/48035/

Comment by Igor Foltin [ 13/Dec/16 ]

Implementation - https://git.opendaylight.org/gerrit/#/c/49320/

Generated at Wed Feb 07 20:53:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.