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.

Source Distribution

napalm25-ios-alternative-drv-0.0.4.tar.gz (39.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page