THEORY · PATH

Python, NETCONF & RESTCONF

7 free theory pages, in reading order. Each one ends with the labs of this path.

AUTOCOR 1.3, 1.4, 1.6, 2.7 · CCIE 1.1.c, 2.5, 2.6

  1. TH-REST-00114 min readNewYANG for network engineers: reading a data modelEvery RESTCONF URI, NETCONF filter, Ansible restconf_config body and Terraform IOS XE resource you will write is derived from a YANG model. If you can read the model, you can build the request without…AUTOCOR 1.3 · 2.7CCIE 2.5 · 2.6
  2. TH-REST-00213 min readNewFrom YANG to data: JSON, XML and YAML instancesTopic 2.7 of the AUTOCOR asks you to construct a YAML or JSON representation of a network configuration given a YANG-based data model. The model alone does not tell you how to write the…AUTOCOR 2.7CCIE 2.5
  3. TH-REST-00313 min readNewRESTCONF on IOS XE: resources, URIs and methodsRESTCONF is HTTP applied to YANG data. Each node in a YANG model becomes a resource with its own URI, and the usual HTTP methods read and change it. Topic 1.3 of the AUTOCOR…AUTOCOR 1.3CCIE 2.5 · 2.6
  4. TH-REST-00411 min readNewRESTCONF in practice: interfaces, VLANs, OSPF, ACLs and inventoryTopic 1.3 of the AUTOCOR names five things to manage with RESTCONF, given the YANG model: VLANs, OSPF, asset management, interface settings and ACLs. This page does each one end to end on IOS…AUTOCOR 1.3CCIE 2.6 · 3.2
  5. TH-REST-00516 min readNewNETCONF on IOS XE: operations, datastores and XPath filtersNETCONF is the protocol YANG was originally designed for. RESTCONF gives you HTTP and JSON. NETCONF gives you what large changes need: a candidate datastore to stage changes, a commit that rolls back on…AUTOCOR 1.3CCIE 2.5 · 2.6
  6. TH-REST-00610 min readNewYANG tooling and troubleshooting on IOS XEThe first five pages of this series explained models, encodings, RESTCONF and NETCONF. This one is about the moment something does not work: a path that returns 404, a payload rejected with no clear…AUTOCOR 1.3 · 2.7CCIE 2.6
  7. TH-REST-00716 min readNewRESTCONF and NETCONF in practice: static routes, BGP and routing tablesTopic 3.2 of the CCIE Automation v1.2 lists seven things to automate on IOS XE. TH-REST-004 covered four of them: interfaces, VLANs, ACLs and OSPF neighbors. This page covers the rest:AUTOCOR 1.3CCIE 2.5 · 2.6 · 3.2