Chapter 8: Configuring Devices Using RESTCONF and requests

In Chapter 5, Model-Driven Programmability with NETCONF and ncclient, we already saw how you can use Yet Another Next Generation (YANG) modules to model a network device's configuration and then use the network configuration (NETCONF) protocol to either retrieve or change the configuration of your device. The aim of NETCONF was to provide a unified interface for these operations. However, one major drawback of NETCONF is its rather unmodern reliance on Extensible Markup Language (XML) as the language of choice for describing the data as well as the operations you want to carry out. To solve this, the Internet Engineering Task Force (IETF) came up with the concept of REpresentational ...

Get Python Network Programming Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.