[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)
- David Barroso (dbarrosop@dravetech.com)
- Elisa Jasinska (elisa@bigwaveit.org)
- Many others, check the napalm contributors page for details.
Privilege Patches
- remingu remingu@techturn.de
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for napalm-ios-alternative-drv-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bdfc1c33e644d884713b812dd7ec8fe99c3451070281054654693111c06c321 |
|
MD5 | f895ecafe1c36afea84dbe08586ebf50 |
|
BLAKE2b-256 | 367dce0401b055780c862340847cc469bdf0aed417bc03461018b8dd64e0ad12 |
Hashes for napalm_ios_alternative_drv-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c14561022dc7de9b83771bf413217dd9906e1cc28b193f461e6eddda6463b7b |
|
MD5 | aae7db59386e6c40c2358c0051d099c1 |
|
BLAKE2b-256 | 5fc5e9ce15d214816cf04a71f5ce53949e45b18bca8204a7ddd0685aebeacc71 |