Skip to content
jonasstenlingPublic

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages