• I want to get the interface Gig2 with RESTCONF using Curl. -v is verbose so we can see the logs.-k is for certificate -H is for header and with +json we define the format of the data. Restconf is also enabled on the router. Using postman we can do the same thing easy. We just…

  • In this example I want to connect to a router in cisco sandbox and get the interface gig1 data. If we want to use the Python we should install ncclient library at first with pip install ncclient. on the router netconf ans ssh in enabled. I would also use xmltodict library in order to be…

  • YANG (Yet Another Next Generation) is a data modeling language used to describe the structure and configuration of network devices. A data model is a well understood and agreed upon method to describe something. Data models may describe some aspect of a network device, or a network service. Network servies like Interface, vlan,OSPF.. and Network…

  • Jinja2 is a template processing toolkit which allows us to create and render text templates.It is a text based templating system. It renders a template using variable replacement, tags (conditional, lopping, inheritance, macros) and filters. In this example, I will use Jinja2 to automatically generate a network switch configuration file. Folder and file Structure Jinja2…

  • XML (eXtensible Markup Language) is a data format used to store and exchange structured data. Unlike JSON and YAML, XML uses tags to define data. It also works with YANG models. XML Syntax XML uses opening and closing tags to describe data. Basic Rules: Data is stored between tags Every tag must have a closing…