8. Netconf Subtree Filter Examples
The course can be purchased via the online shop.
netconf xpath filter example for get command is the topic of this section.
In the previous section, we used xpath filter for the netconf get-config command, which is used to get the configuration of network devices.
However, the netconf get command is mainly used to get the statistics of network devices.
With xpath filter it is also possible to filter the statistics in order to show only a certain section in the output.
NETCONF is one of the YANG-based network automation protocols that we will use throughout the course.
In this section we will discuss the fundamental concepts of the NETCONF protocol before moving on to the demonstration that starts in the next section.
YANG is a data model language used by NETCONF, RESTCONF, and gNMI to automate network configuration, maintenance, and troubleshooting.
However, before we use YANG with various automation protocols throughout the course, in this section we will review and explore the YANG data model to better understand it.
Network automation protocols such as NETCONF, RESTCONF, gNMI, and Ansible use XML, JSON,, YAML or Protobuf data structures as a common language for data exchange between network devices and automation controller.
In this section we will have a practical overview and comparison between XML, JSON and YAML data formats or structures. Protobuf will be discussed in gNMI section.
Table of Contents YANG based network automation using NETCONF, RESTCONF and gNMI protocols are the discussion of this course. In the first lesson of the course, we will have a review and compare these three protocols. https://youtu.be/VUNYTSq_MzY CLI-based vs YANG-based Network Automation In the previous course, “CLI based network automation using python nornir”, we have…
DetailsNornir Netbox Inventory is another solution for inventory management in Nornir based network automation.
In the previous section, we installed Netbox and added inventory information.
In this section, we read netbox inventory information through Nornir and then send monitoring commands to network devices that have already been read from the netbox inventory.
Netbox is another Nornir Inventory solution in network automation.
In this section we will install Netbox on Ubuntu 22.04 and prepare it with the minimum configuration to be used as an inventory source in Nornir-based network automation.
In the next section, we’ll use Netbox as an inventory source in the Nornir automation script.