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

napalm-ios-alternative-drv-0.0.5.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napalm_ios_alternative_drv-0.0.5-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file napalm-ios-alternative-drv-0.0.5.tar.gz.

File metadata

  • Download URL: napalm-ios-alternative-drv-0.0.5.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for napalm-ios-alternative-drv-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2bdfc1c33e644d884713b812dd7ec8fe99c3451070281054654693111c06c321
MD5 f895ecafe1c36afea84dbe08586ebf50
BLAKE2b-256 367dce0401b055780c862340847cc469bdf0aed417bc03461018b8dd64e0ad12

See more details on using hashes here.

File details

Details for the file napalm_ios_alternative_drv-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: napalm_ios_alternative_drv-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 42.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for napalm_ios_alternative_drv-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3c14561022dc7de9b83771bf413217dd9906e1cc28b193f461e6eddda6463b7b
MD5 aae7db59386e6c40c2358c0051d099c1
BLAKE2b-256 5fc5e9ce15d214816cf04a71f5ce53949e45b18bca8204a7ddd0685aebeacc71

See more details on using hashes here.

Supported by

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