All_About_Netconf

 



Transport-level keepalive

  • NETCONF over SSH (most common)  Uses SSH keepalive
  • NETCONF over TLS Uses TLS keepalive / TCP keepalive
  • NETCONF over TCP Relies on TCP keepalive
  • Application-level “soft keepalive” (common practice)**Although not mandated, many clients periodically send lightweight RPCs:


Hello-Message Exchange 'Capabilities'

  1. base:1.0
  2. base:1.1
  3. candidate -Enables candidate → commit workflow, Safer than editing running directly
  4. writable-running -Allows editing running directly
  5. confirmed-commit   - Auto-rollback if device becomes unreachable
  6. rollback-on-error  - Roll back changes if any error occurs in <edit-config>
  7. lock  -Prevents concurrent config edits
  8. xpath  - Filtering & Query Critical for large YANG models
  9. notification - Enables event subscriptions
  10. validate - Validate config before commit

1️.Standard NETCONF Datastores (RFC 6241)
These are the core datastores defined by NETCONF.
🔹 running
Active configuration
Always present
🔹 candidate
Staged configuration
Optional
🔹 startup
Boot-time configuration


Optional

2️.Operational Datastore (<operational> / <state>)
🔹 Operational / State datastore
Read-only
Holds runtime state, not configuration

Examples:
Interface counters
Routing table
BGP neighbors
CPU / memory
Accessed via:
<get/>
Often called:
state
operational
running-state (vendor term)
Not editable

3️.Ephemeral Datastore (RFC 8072)
🔹 ephemeral
Temporary configuration
Lost on:
Reboot
Session end
Used for:
Dynamic policies
Temporary ACLs
SDN controller pushes
Capability:
urn:ietf:params:netconf:capability:ephemeral:1.0
Rare but important in modern controllers

4.Intended Datastore (RFC 8342)
🔹 intended
Describes desired configuration
Used in model-driven telemetry
Helps detect config drift
Read-only
Mostly conceptual but increasingly supported

5️.Dynamic Datastores (Advanced / Vendor-Specific)
🔹 dynamic
Generated from multiple sources
Used internally by device
Read-only
📌 Vendor-defined (not standard)

6️.Vendor-Specific Datastores (Common in real devices)
Examples:
factory-default
golden-config
rollback-1, rollback-2
baseline
Not standardized
Exposed via vendor YANG models

Comments

Popular posts from this blog

gNMI_with_grafana on containerlabs

EVPN Route type-1 & type-4 in action

Network Automation with ROBOT Framework