DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

function. The result of successfully running this script
looks similar to the following one:


Click here to view code image


Adding Loopback 01 with IP address 1.1.1.1/32 to
device
10.10.10.10...
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="urn:uuid:6de4444b-9193-
4b74-837b-
e3994d75a319"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>

RESTCONF


According to RFC 8040, RESTCONF is “an HTTP-based
protocol that provides a programmatic interface for
accessing data defined in YANG, using the datastore
concepts defined in the Network Configuration Protocol
(NETCONF).” Basically, RESTCONF provides a REST-
like interface to the NETCONF/YANG interface model.


Although NETCONF provides significant improvements
over SNMP, it doesn’t provide network interfaces with a
good REST API interface. Rather than developing an
entirely new protocol and data model, the IETF extended
NETCONF into RESTCONF. RESTCONF is not a
replacement for NETCONF. Rather, RESTCONF
provides an API that aligns with other web application
APIs to provide an easy entry point for developers.


Like other REST APIs, RESTCONF uses the HTTPS
protocol to encapsulate and send messages.
Authentication is accomplished using typical HTTP
authentication models, such as basic authentication,

Free download pdf