Hi
Ansible supports netconf-rpc module allowing RPC operations to NETCONF devices
Does Ansible also support actions to NETCONF devices?
From RFC 7950:
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.
query the node and get all of the node names or a subset of the node names
for each target node name that is returned, “execute” an action on it
if result is fail, quit (fail); otherwise go to the next action for the next node
I guess the sequence of node names that is returned in step 1 will need to be meaningful in order to ensure the right action is applied to the right node.
Alternatively, step 2 can look for a match on the first part of the node name (a string), and then execute the appropriate action for the matching prefix.