Use this when choosing which NETCONF datastore to read or edit.
Datastores · NETCONF
NETCONF datastores are separate copies of configuration: running (active), candidate (staged changes) and startup (loaded at boot). Which ones exist depends on the device's capabilities.
1. Datastores hold configuration versions.
2. running = active config.
3. candidate = staging area (commit).
4. startup = boot config.
5. NMDA adds intended/operational.
edit → candidate/running → commit → running
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as capability mismatch, namespace drift, wrong datastore, lock contention, partial edit semantics and assuming <ok/> shows final device behavior, choosing the cases most relevant to running/candidate/startup identity, capability advertisement, edit/commit semantics and correct separation of configuration from operational state.
Step 2 Common mistakes Narrow the fault
- Writing to running when candidate is available.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- running is active, candidate is staged, startup loads at boot.
- Not every device supports candidate.
- Capabilities in hello show support.
- Supported datastores (capabilities) — running, candidate, startup
- NMDA operational datastore — state
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
NETCONF separates configuration into datastores — named copies of the configuration with different roles. Choosing the right one is what makes NETCONF changes safe.
| Datastore | Role |
|---|---|
| running | Active configuration |
| candidate | Scratch copy; changes take effect only on commit |
| startup | Configuration loaded at boot |
| operational (NMDA) | Actual state including learned values |
With a candidate datastore, a change is staged, validated and committed as a whole, so a multi-part change either fully applies or not at all. Devices advertise which datastores they support in the hello capabilities (:candidate, :startup, :writable-running); on IOS XE the candidate datastore must be enabled with netconf-yang feature candidate-datastore.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NETCONF > Datastores. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc6241 · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For running/candidate/startup identity, capability advertisement, edit/commit semantics and correct separation of configuration from operational state, prefer typed fields and stable IDs over human presentation text.