This RPC is used to perform operations with a configuration from multiple source paths to a single target path.
RPC input contains the following:
type of operation: merge or replace
type of source datastore: CONFIGURATION or OPERATIONAL
type of target datastore: CONFIGURATION or OPERATIONAL
list of source paths in RFC-8040 URI format
target path in RFC-8040 URI format (target path denotes parent entities under which the configuration is copied)
Target datastore is an optional input field. By default, it is the same as source datastore. All other input fields are mandatory.
RPC output describes the result of the operation. If one path fails, the entire operation fails and the datastore is not modified (i.e., all modifications are performed in a single atomic transaction).
This example demonstrates the execution of the copy-many-to-one RPC with three (3) source paths.
Data described by these source paths (snmp, access, and ntp containers under three different nodes) are copied under the root system:system container (dev04 node).
{"errors":{"error":[{"error-type":"protocol","error-tag":"unknown-element","error-message":"Cannot parse input path 'network-topology:network-topology/topology=uniconfig/node=dev01/configuration/invalid:invalid' - Failed to lookup for module with name 'invalid'."}]}}