Configure Cisco IOS XE Static Route using NETCONF
This repository contains scripts to configure Static Route on Cisco IOS XE devices automatically using Python and NETCONF. Before using this repository, please refer to https://github.com/arrosid/netconf-ip-address to configure IP Address on IOS XE using NETCONF.
This is the topology that we use in this repository. This is the same topology that we used in the https://github.com/arrosid/netconf-ip-address- Python 2.7 or Python 3.4+
- ncclient 0.6.3 or later
- This script tested with Cisco IOS XE devices
- If you don't have any IOS XE in your environments, you can use Always On IOS XE Cisco Sandbox provided by Cisco DevNet.
- Host: ios-xe-mgmt.cisco.com
- SSH Port: 8181
- NETCONF Port: 10000
- Username: root
- Password: D_Vay!_10&
- Install the libraries listed in the requirements
- Configure IP Address Management in the router
- Configure IP Address on all of the router interfaces. Please refer to https://github.com/arrosid/netconf-ip-address.
- Activate NETCONF and YANG in the router using these commands
- netconf ssh
- netconf-yang
- Edit the inventory.yml to adjust to your topology
- Run the script using the command python3 configure_static_route.py