iosxr-eznc 2016.8.25
pip install iosxr-eznc==2016.8.25
Latest version
Released:
Python library for Cisco IOS-XR automation via NETCONF
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache 2.0)
- Author: Mircea Ulinic
- Tags network , automation , NETCONF , IOS-XR , IOSXR , Cisco
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
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
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache 2.0)
- Author: Mircea Ulinic
- Tags network , automation , NETCONF , IOS-XR , IOSXR , Cisco
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file iosxr-eznc-2016.8.25.tar.gz
.
File metadata
- Download URL: iosxr-eznc-2016.8.25.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c4a78c1334d735b60b45410b441a8cc5ae234e127307a1f8d4e70bbc9704821a
|
|
MD5 |
8e788dc1c12354357d5df8c2770e2e20
|
|
BLAKE2b-256 |
d07fc93b920cac9ce8ab5d543211a3497063c4b5d030c8815f22c5eb5a65606c
|