Skip to main content

[obsolete with Napalm3] alternative driver plugin for cisco ios

Project description

alternative unofficial napalm ios driver

Due the purpose of NAPALM the included IOS Drivers are designed to require Privilege Exec Mode(aka Privilege Level 15) to ensure the full feature-set is always available.
If this privilege level is not available the driver will not work.
This limits its use for certain purposes where priv exec is not required. (like using the getters() or sending show commands)

This driver is a fork of the original driver, it changes the behavior of the driver and implements privilege level checking. It will allow to connect without privilege level 15 and instead raise permission-errors whenever a function is called and the required privilege level is not available.
It will neither change function arguments or return values nor implement new functions.

install

pip install napalm-ios-alternative-drv

usage

without secret:

#!/usr/bin/env python3
from napalm import get_network_driver
driver = get_network_driver('ios_ad')      
device = driver('1.1.1.1', 'username', 'password')
device.open()    
vals = device.get_facts()   
print(vals)    
device.close()

with secret:

#!/usr/bin/env python3
from napalm import get_network_driver
optional_args = { 'secret': '<enable_secret>'}
driver = get_network_driver('ios_ad')      
device = driver('1.1.1.1', 'username', 'password', optional_args=optional_args)
device.open()    
vals = device.get_facts()   
print(vals)    
device.close()

Authors:

The largest part of the codebase is sync'd from and belongs to the NAPALM Project.
Privilege Patches are done by me.

Original Authors(NAPALM Project)

Privilege Patches

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for napalm-ios-alternative-drv, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size napalm_ios_alternative_drv-0.0.5-py3-none-any.whl (42.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size napalm-ios-alternative-drv-0.0.5.tar.gz (40.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page