From the course: Cisco DevNet Associate (200-901) Cert Prep 5: Infrastructure and Automation

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Compare RESTCONF vs. NETCONF query results

Compare RESTCONF vs. NETCONF query results

From the course: Cisco DevNet Associate (200-901) Cert Prep 5: Infrastructure and Automation

Start my 1-month free trial

Compare RESTCONF vs. NETCONF query results

- [Tutor] As more network devices offer API structured data in RESTCONF or NETCONF, let's see how we can interpret the query results. In our example, we will use the free iOS XC lap device offered by DEVNET. No reservation is required, and we could find the latest access information on the lab page. This IOS should be included in the accommodated text file with this course. If we just scroll down, then we could find the latest access information for the port number, username and password. We have two Python scripts prepared. Both of them have the same purpose of making a request to the iOS XC device to request the configuration of the management interface, which is Gigabit Ethernet 1. And we'll parse out the IP address of this particular interface. The difference is one script is using NETCONF with the XML structure while the other is using RESTCONF with adjacent structure. Let's execute them both and see the results…

Contents