Use it when configuring, checking or troubleshooting NETCONF in Network Automation.
NETCONF · Network Automation
client → SSH 830 → hello/capabilities → RPCs
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 Operational evidence path Verify boundary
target/transport → NETCONF hello/capabilities → datastore/model context → RPC → validation/lock/commit → reply/error → running/operational read-back → network acceptance
Healthy evidence: capabilities and model revisions match expectations, transaction semantics are explicit and committed state plus network behavior are verified.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: automation assumes candidate/commit support, ignores rpc-error detail or treats <ok/> as final service acceptance.
Step 3 Common mistakes Narrow the fault
- Ignoring candidate datastore support.
Step 4 Where it fails Narrow the fault
Where NETCONF usually goes wrong: session/datastore identity, RPC semantics, locks/commit, error-path interpretation and read-back.
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.
ssh -p 830 <user>@<dev> -s netconf— NETCONF subsystempython3 -c 'import ncclient'— ncclient library- Capabilities exchange (hello) — supported models
ReferenceWhat it is1 section · depth on demand
Core model
Keep transport/session capability negotiation, datastore selection, RPC semantics, validation/locking/commit behavior and device operational verification distinct.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
NETCONF protocol success shows the management transaction boundary, not that modeled configuration is semantically correct or traffic works.
In depth
In network automation, NETCONF is used to push and read YANG-structured configuration with transaction support: lock the datastore, edit the candidate, validate, commit, and roll back on error — all-or-nothing behaviour that CLI scripting lacks.
with manager.connect(host="r1", port=830, username=u, password=p, hostkey_verify=True) as m:
with m.locked("candidate"):
m.edit_config(target="candidate", config=payload)
m.validate(source="candidate")
m.commit(confirmed=True, timeout="120")
# verify reachability here, then:
m.commit()
Check device capabilities first (m.server_capabilities) — candidate datastore and confirmed commit are optional features.
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 Network Automation > NETCONF. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc6241 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
NETCONF Network Automation proof-boundary map
Fast intent/scope, management-operation, device-state and network-acceptance boundaries for NETCONF.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For NETCONF, rely on structured fields and stable IDs (session/datastore identity, RPC semantics, locks/commit, error-path interpretation and read-back) rather than text formatted for display.