Automation · NETCONF
edit-config
Cheat sheet · https://pcornel.dk/topic.php?topic=5613
Answer
edit-config changes a datastore with an XML payload, using operations like merge, replace, create, delete and remove on specific nodes of the YANG data tree.
Remember
- Operations: merge, replace, create, delete.
- Payload must follow YANG.
- Target datastore matters.
First checks
- <edit-config> with operation=merge/replace/create/delete — semantics
- default-operation setting — behaviour
- test-option/error-option — validation and rollback
Verify in this order
payload + operation → datastore
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5613