Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python library for Cisco IOS-XR automation via NETCONF

Project Description

~~~ ABOUT ~~~

iosxr-eznc is a Python library to manage Cisco devices running IOS-XR using NETCONF and YANG models as per RFC 6020.


YANG models are supported exclusively through version 1.1 of NETCONF, therefore at least version 0.5.2 of ncclient is required.


version >= Python 2.6 or Python3
ncclient 0.5.2+
Install via pip:

pip install ncclient

~~ USAGE ~~~

Firstly make sure that netconf-yang is enabled on the device:

# netconf-yang agent ssh
Connect to the device:

from pprint import pprint
from iosxr_eznc import Device

dev = Device(host='edge01.bjm01', user='netconf', password='!Love105-XR')
{'description': u'ASR 9904 2 Line Card Slot Chassis with V2 AC PEM',
'domain': u'',
'fqdn': '',
'hostname': u'edge01.bjm01',
'model': u'ASR-9904-AC',
'os_version': u'6.0.1',
'personality': 'ASR',
'serial': u'FOX19W00F01',
'slots': [u'RSP0', u'RSP1'],
'uptime': 1471641.873581,
'virtual': False}

~~ LICENSE ~~~

Copyright 2016 CloudFlare, Inc.

Licensed under the Apache License, Version 2.0:

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(11.6 kB) Copy SHA256 Hash SHA256
Source None Aug 25, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting