• In the previous lesson, you configured and managed a router using NETCONF.
    You opened an SSH session on port 830, exchanged XML messages, and used the ncclient Python library.

    But what if you could do the same thing with a simple HTTPS request?

    NETCONF using SSH on TCP 830 compared to RESTCONF using HTTPS on TCP 443

    Figure 1 – NETCONF vs RESTCONF

    Same Data, Different Transport

    RESTCONF (RFC 8040) provides a REST-like HTTP interface to access YANG-modeled data.
    It uses the same YANG models as NETCONF. The data is the same. Only the transport changes.

    Instead of SSH and XML, RESTCONF uses HTTPS and JSON.
    Instead of a dedicated library like ncclient, you can use any HTTP client: Python requests, curl, or even a web browser.

    Key Differences

    RESTCONF is stateless. There is no session, no hello exchange, no capabilities negotiation.
    Each request is independent and contains everything the device needs to process it.

    Unlike NETCONF, RESTCONF has no candidate datastore, no lock, and no commit.
    Every change is applied directly to the running datastore.

    Feature

    NETCONF

    RESTCONF

    Transport

    SSH (TCP 830)

    HTTPS (TCP 443)

    Data encoding

    XML

    JSON or XML

    Data models

    YANG

    YANG (same models)

    Session

    Stateful (hello, session-id)

    Stateless (no session)

    Candidate datastore

    Yes (lock, commit)

    No (running only)

    Python library

    ncclient

    requests (or any HTTP client)

    Table 1 – NETCONF vs RESTCONF

    Answer the question below

    What transport protocol does RESTCONF use instead of SSH?