This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

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
View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Products

    IOS XE
  • Programming Languages

    Python
  • License

    MIT License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.