Discover the YANG models of your Cisco router

Lab 2 of 2 published in this path

PREMIUM LAB · LAB-PY-002

This lab is part of Lab Access

Ask three Cisco IOS XE routers for their RESTCONF root, capabilities and YANG library with curl and Python, save a module inventory and turn a CLI line into a RESTCONF path and JSON body.

Level
Beginner
Time
45–60 min
Environment
CML · Ubuntu + 3 × C8000V
You will end with
A YANG inventory of three routers
LAB-PY-002 topology in Cisco CML, 192.0.2.0/24: Ubuntu Python control node ens3 192.0.2.10/24, unmanaged switch SW1, and Catalyst 8000V routers R1, R2 and R3 on GigabitEthernet1 192.0.2.11, .12 and .13/24, reached over HTTPS TCP 443 (RESTCONF).
Lab topology

What the lab includes

  • Every step with the exact commands and the expected output
  • Commented solution and troubleshooting guide
  • All premium labs of every path, including past seasons
  • On Pro: the lab kit, with PDFs (EN/PT-BR), CML topology and full code

Lab Access · US$ 19/month

Unlock with PatreonSee the plans