RESTCONF vs NETCONF
Compare two YANG-model-driven management protocols.
| Dimension | RESTCONF | NETCONF | What it means in practice |
|---|---|---|---|
| Transport/API style | HTTP methods/URIs and JSON/XML representations. | RPC operations over secure transport, commonly SSH. | Both depend on models/capabilities. |
| Operations | GET, PUT/PATCH, POST/DELETE where supported. | get, get-config, edit-config and datastore operations. | Transaction/datastore semantics differ. |
| Troubleshooting | HTTP auth/status/path/content type. | SSH subsystem, capabilities, XML/RPC errors. | Model/path validation is central to both. |
| Transport | HTTPS (TCP 443). | SSH (TCP 830). | Firewalls and proxies often allow HTTPS more easily. |
| Encoding | JSON or XML. | XML only. | Both use the same YANG models on the device. |
| Transactions | Per-request; no candidate datastore lock workflow. | Supports candidate datastore, lock, validate and commit. | Use NETCONF when you need multi-step changes committed together. |