You need to lock the candidate configuration datastore in your NETCONF script to prevent concurrent modifications by other administrators. Which XML element accomplishes this?
The <lock> element targets the candidate datastore, granting the requesting session exclusive write access so concurrent administrators cannot commit changes. This satisfies the requirement to prevent concurrent modifications during the script's edit window, and the lock is released by <unlock> or session termination.
Why this answer
The <lock> RPC takes a target element specifying which datastore to lock, such as the candidate datastore.