Netconf copy-config from candidate to running return error with “access denied”. I have enabled candidate datastore and netconf/capabilities/candidate. While the copy-config from running to candidate, edit-config on candidate, and commit to running datastore success.
Please help to confirm how to perform copy-config from candidate to running.
commit success. Want to confirm if it’s restricted that only commit can be used to write candidate configuration to running, the copy-config from candidate to running is not supported?
RFC 6241 does not restrict copy-config target/source.
Quoting from RFC 6241:
"
7.3.
Description: Create or replace an entire configuration datastore
with the contents of another complete configuration datastore. If
the target datastore exists, it is overwritten. Otherwise, a new
one is created, if allowed."
You can copy the candidate to running using with confd.conf set as @jjohansson describes. But as @nabil writes, the standard way is to commit the candidate to running.