Skip to content

jonasstenling/pyskate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages