Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.02 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.02 KB

Python Netconf abstraction layer for Cisco IOS XE devices

This is a python library that makes it easy as pie to talk Netconf to any IOS XE device that supports netconf.

Install

Option 1

sudo pip install pyskate

Using pip also installs xmltodict and ncclient that are required.

Option 2

Clone this repository, modify your PYTHONPATH, and do all that fun stuff!

User guide

Connecting to device

>>> 
>>> from pyskate.iosxe_netconf import IOSXEDevice
>>> 
>>> router = IOSXEDevice('hostname','username','password')
>>> router.connect()

Disconnecting from device

>>> router.disconnect()

Retrieving running configuration

>>> config = router.get_config()

Editing running configuration

>>> router.edit_config("interface Gi1\ndescription spam")

Saving running configuration to startup configuration

>>> router.save_config()

Executing command

>>> cmd_output = router.exec_command("show interface")