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 details)

Uploaded Source

Built Distribution

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

napalm25_ios_alternative_drv-0.0.4-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file napalm25-ios-alternative-drv-0.0.4.tar.gz.

File metadata

  • Download URL: napalm25-ios-alternative-drv-0.0.4.tar.gz
  • Upload date:
  • Size: 39.3 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 napalm25-ios-alternative-drv-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4fad866ad183db175f7a2a39636e568e659a803870c65b58e5eb78dbe97392b8
MD5 5c5079bdf8492c9a6f0c1b27f7810a64
BLAKE2b-256 9917823952bc333cacadc4fd62297fe4f8a4393fc11f1d1a5a373e1e95d49751

See more details on using hashes here.

File details

Details for the file napalm25_ios_alternative_drv-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: napalm25_ios_alternative_drv-0.0.4-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 napalm25_ios_alternative_drv-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6c5df7a4d6114bf3d0dff95a0c63fca8a13feadfc443f301ae11c8ef7357bc
MD5 b5bfdf754d898d0b23ec60377aed2356
BLAKE2b-256 bd117befa1e1d71b02b1e50be244df1f5d1875b5a19496cb0268fe711a5239f1

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