Learning paths › Automation › Managing a router with NETCONF and RESTCONF
Managing a router with NETCONF and RESTCONF
One router managed three ways: NETCONF on port 830, from the hello exchange and its capabilities through the server being enabled, sessions checked on the device, and ncclient setting a hostname and adding loopbacks; the same data over RESTCONF, walking the root to an interface and adding a loopback as JSON; and a first Ansible inventory and play that backs up a config and configures IPv6 — then an unrelated closing stretch calling a collaboration platform's APIs to find a person, list spaces and post a message. Explanation and checks; four written exercises.
Lessons
- Reach the NETCONF subsystem on port 830
- Exchange hello messages and read capabilities
- Turn on the NETCONF server on the router
- Check NETCONF sessions and statistics on the device
- Open a session from Python with ncclient
- Point the same client at a local router
- Set a hostname and add loopbacks with edit-config
- Expose YANG data over HTTP with RESTCONF
- Walk the RESTCONF root to an interface
- Read an interface with requests over HTTPS
- Add a loopback by sending JSON
- Ansible: drive devices from an inventory
- Write a play that runs tasks on hosts
- Back up a router config with a playbook
- Configure IPv6 and save the verification output
- See what the Webex APIs expose
- Authenticate and make your first Webex call
- Find a person by email with query parameters
- List spaces and create a new one
- Add a person to a team or a room
- Post a message to a space
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
- NETCONF, YANG and RESTCONF
- 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
- 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