/netconf-ip-address

Configure IP Address Automatically on IOS XE using Python & Netconf

Primary LanguagePythonMIT LicenseMIT

published

netconf-ip-address

Configure IP Address Automatically on IOS XE devices using Python & NETCONF

This repository contains scripts to configure IP Address on Cisco IOS XE devices automatically using Python and NETCONF. We use the ncclient python library in this script.

Requirements

  • ncclient 0.6.3+
  • Python 2.7 or Python 3.4+
  • setuptools 0.6+
  • Paramiko 1.7+
  • lxml 3.3.0+
  • libxml2
  • libxslt

Supported Devices

  • This script tested with Cisco IOS XE devices

How To Use

  • Install the libraries listed in the requirements
  • Configure IP Address Management in the router
  • Activate NETCONF and YANG in the router using the commands netconf ssh and netconf-yang
  • Edit the inventory.yml to meet your topology
  • Run the script using the command python3 configure_ip_address.py