Learning paths › Automation › NETCONF, YANG and RESTCONF
NETCONF, YANG and RESTCONF
NETCONF and RESTCONF as two carriers for the same YANG data: edit-config setting a hostname, addressing a keyed list entry and creating then deleting a user, a vendor RPC sent through dispatch, replies pretty-printed and reparsed, and models browsed before a request is built — then RESTCONF over HTTPS, proven in a client first and its status checked, with replace, create, merge and delete each scoped deliberately and the change persisted — closing on a controller's site hierarchy, credentials and discovery, and NX-API switched on. Explanation and checks; four written exercises.
Lessons
- Set the hostname with edit_config
- Address an interface list entry by name
- Create and delete a keyed user entry
- Save config with a vendor RPC via dispatch
- Pretty-print a reply to a file
- Parse a saved reply like a live one
- YANG Suite: browse models and try RPCs
- Build a device profile and explore its models
- RESTCONF: YANG data over HTTPS
- Prove the request in Postman first
- Check the status before trusting the JSON
- Retrieve the native config tree as JSON
- Replace a resource and know its scope
- Create a child entry and handle conflicts
- Merge one entry without touching the rest
- Delete one keyed interface, not the collection
- Persist the change after the write
- Build a site hierarchy from YAML
- Create CLI and SNMP credentials on the controller
- Discover devices in a range and assign them
- Turn on NX-API on a Nexus switch
- Send a JSON-RPC request to NX-API
- Try the NX-API call in Postman
- Ask NX-API for structured JSON output
More in Automation
- First scripts that configure devices
- NAPALM: structured data across vendors
- Concurrency, and the Python types device output returns
- Parsing show output and testing conditions
- Readable code, branching and loops
- Build the workstation and the toolchain
- Files, CSV, JSON and pickle
- Paramiko: SSH to devices from Python
- Netmiko at fleet scale
- Tuples, sets and dictionaries for device records
- Exceptions and your first classes
- Plan and build the automation lab
- Files, formatting and regular expressions
- Addresses, functions, modules and classes
- CSV inventories, logging and scheduling
- Netmiko, SCP and structured parsing
- Agents, async and model-driven workflows
- NX-API, pyATS and Genie
- A small GenAI app, end to end
- macOS, Linux and the virtual lab
- Agile delivery and Python fundamentals
- REST APIs, authentication and requests
- Flask, Docker and Jenkins
- Managing a router with NETCONF and RESTCONF
- Ansible: inventory, ad-hoc commands and first playbooks
- Roles and zero-touch provisioning for Linux switches
- Installing the controller and applying a project
- Setting up Python 3
- The Ansible lab and the controller
- Vault, variables and config changes
- Parsing output and knowing which variable wins
- Jinja filters and PAN-OS automation
- Loops, callbacks, strategy and run control
- Roles, imports and writing your own module
- Running playbooks from AWX