Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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.

~~ INSTALLATION ~~~

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

Requirements:

version >= Python 2.6 or Python3
ncclient 0.5.2+
pyang
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')
dev.open()
pprint(dev.facts)
{'description': u'ASR 9904 2 Line Card Slot Chassis with V2 AC PEM',
'domain': u'cloudflair.net',
'fqdn': 'edge01.bjm01.cloudflair.net',
'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}
dev.close()


~~ LICENSE ~~~

Copyright 2016 CloudFlare, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Release history Release notifications

This version
History Node

2016.8.25

History Node

2016.8.19

History Node

2016.8.4

History Node

2016.7.27dev

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
iosxr-eznc-2016.8.25.tar.gz (11.6 kB) Copy SHA256 hash SHA256 Source None Aug 25, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page