Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

NETCONF · Network Automation

Direct answer

NETCONF in Network Automation is the model-driven management interface used to retrieve and edit YANG-modeled configuration and state over a capability-negotiated session.

When to use this

Use it when configuring, checking or troubleshooting NETCONF in Network Automation.

First 30 seconds

1. NETCONF: XML RPCs over SSH (830) with datastores and transactions.

2. Candidate/commit/confirmed-commit where supported.

3. Locking.

4. YANG models.

5. ncclient for Python.

Operational verification

client → SSH 830 → hello/capabilities → RPCs

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
network automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformnetwork automation · This Topic owns NETCONF as part of Network Automation. The top-level Automation → NETCONF branch owns deeper RPC/datastore/locking semantics.
Scope / prerequisiteUse it when configuring, checking or troubleshooting NETCONF in Network Automation.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • NETCONF session established ≠ requested capability supported.
  • RPC <ok/> ≠ end-to-end network behavior correct.
  • Candidate edited ≠ running configuration changed until commit semantics complete.
  • YANG-valid configuration ≠ operationally safe configuration.
Key checks
  • ssh -p 830 <user>@<dev> -s netconf — NETCONF subsystem
  • python3 -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docnetwork automation current

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%
Terminology layer

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.

Aliases that resolve here
netconf automationnetwork netconfmodel driven netconf
Embedded reference data

Quick lookup tables

NETCONF Network Automation proof-boundary map

Fast intent/scope, management-operation, device-state and network-acceptance boundaries for NETCONF.

BoundaryHealthy evidenceSuspicious evidence
Intent / scopeSource revision and exact targets are explicitStale inventory, hidden selector or wrong variables change scope
Management operationTransport/model/payload and per-device response are traceableAuth/capability/parser differences hide partial or wrong execution
Device stateEffective and persistent state are read backAccepted config/API result is mistaken for convergence
Network proofOriginal control/data-plane or service test passesAutomation summary substitutes for actual network acceptance
Depth when you need it

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.

Confirmation

Confirm action

Continue?