What is NETCONF and RESTCONF?
NETCONF provides mechanisms to install, manipulate, and delete the configuration of network devices. YANG describes the data structures exchanged in NETCONF message (like SMIv2 describes SNMP MIBs). RESTCONF (RFC 8040) provides a subset of NETCONF functionality implemented on top of HTTP/HTTPS.
What does RESTCONF stand for?
“RESTCONF is an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in NETCONF.” Your first reaction might be that it sounds very similar to NETCONF.
What is the transport protocol for RESTCONF?
HTTP
RESTCONF allows for either JSON or XML to be used. Operations – Each of the operations are aligned to the various HTTP methods, providing the required suite of CRUD based operations (Create, Replace, Update and Delete). Transport – The transport protocol is HTTP, allowing us to use HTTPS.
Does RESTCONF use XML?
RESTCONF—Uses structured data (XML or JSON) and YANG to provide a REST-like APIs, enabling you to programmatically access different network devices.
Is RESTCONF a standard?
RESTCONF provides a programmatic interface based on standard mechanisms for accessing configuration data, state data, data-model-specific Remote Procedure Call (RPC) operations and events, defined in the YANG model.
How do you implement RESTCONF?
Task list
- Enable RESTCONF on a Cisco router. Remember, this will make the router a RESTCONF server.
- Configure the Linux device to operate as a RESTCONF client.
- Use RESTCONF to: Retrieve interface information from the router. Configure a loopback interface on the router.
What is the difference between REST and RESTCONF?
Hi, I would say that one main difference is that RESTCONF is fully standard compatible now, while our traditional REST interface is proprietary. This means that a northbound system could eventually develop a generic RESTCONF interface and use it against NSO and other RESTCONF-compatible systems.
What is the default data encoding method for RESTCONF?
json
The default is ‘json’.
What is difference between REST and RESTCONF?
I would say that one main difference is that RESTCONF is fully standard compatible now, while our traditional REST interface is proprietary. This means that a northbound system could eventually develop a generic RESTCONF interface and use it against NSO and other RESTCONF-compatible systems.
What projects use RESTCONF?
Best 8 Restconf Open Source Projects
- Python Code Samples Network. A collection of Python Code Samples for Network Management.
- Libyang. YANG data modeling language library.
- PANTHEONtech Lighty.
- Networkop Yang.
- Johann Network Device Monitoring.
- Restconf Examples.
- Network Automation Scripts Python3.
- Freeconf Yang.
Does Restconf use SSH?
To work with network devices and Postman you’ll want to use RESTCONF, which is the HTTP variation of NETCONF that uses YANG models to drive the API. RESTCONF typically will run on port 443, though this can be changed and configured. Port 22 would be for an SSH based CLI interface, and 830 would be for NETCONF over SSH.
Is REST API the same as RESTful API?
A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.