Skip to main content

Network Automation and Programmability Abstraction Layer with Multi-vendor support,Driver for Huawei Campus Network Switch,VRP OS

Project description

PyPI PyPI

napalm-huawei-vrp 中文版

NAPALM driver for HUAWEI Campus Network Switch, support the S5700,S6700 etc.

This repository is reference NAPALM-CE and Cisco IOS code, thanks for thdDaniel's contribution

Instructions

The driver is under development and iteration.

Supported

API Description
load_merge_candidate() Load config
compare_config() A string showing the difference between the running configuration and the candidate configuration
discard_config() Discards the configuration loaded into the candidate
commit_config() Commits the changes requested by the method load_replace_candidate or load_merge_candidate
cli() Send any cli commands
get_facts() Return general device information
get_lldp_neighbors() Fetch LLDP neighbor information
get_config() Read config
is_active() get devices active status
ping() Ping remote ip
get_arp_table() Get device ARP table
get_mac_address_table() Get mac table of connected devices
get_interfaces() Get interface information
get_interfaces_ip() Get interface IP information
get_interfaces_counters() Get interface counters

Plans to develop

  • get_environment()
  • get_lldp_neighbors_detail()
  • get_snmp_information()
  • get_users()

How to Install

You can install napalm-huawei-vrp with pip:

pip install napalm-huawei-vrp

That will install napalm and huawei_vrp driver currently available.

How to upgrade

You can upgrade napalm-huawei-vrp with pip once the new version released:

pip install --upgrade napalm-huawei-vrp

Quick start

from napalm import get_network_driver
driver = get_network_driver('huawei_vrp')
device = driver(hostname='192.168.76.10', username='admin', password='this_is_not_a_secure_password')
device.open()

get_facts = device.get_facts()
print(get_facts)

send_command = device.cli(['dis ver', 'dis cu'])

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-huawei-vrp-1.0.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

napalm_huawei_vrp-1.0.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file napalm-huawei-vrp-1.0.0.tar.gz.

File metadata

  • Download URL: napalm-huawei-vrp-1.0.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for napalm-huawei-vrp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9469a656033b021d37e12dcab17dfe2aef0c71f23e48f012ef41529f42ec8109
MD5 50c3ddb6672696f828fc4710cad0ae5e
BLAKE2b-256 404bb8287d53fb2a8055fbf3e2add9e70ef37446ca4fb1ef454efa096d0a13e5

See more details on using hashes here.

File details

Details for the file napalm_huawei_vrp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: napalm_huawei_vrp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for napalm_huawei_vrp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adecafa153ce643c098632d01516426c1f6a82990173c7ec846ce4b1f6c7f89f
MD5 de00b708179a1b189ff6286d3260aa62
BLAKE2b-256 11ded07aa5054e6c52ddde30323259db5e8339af820a75bcecf8aeef874944fb

See more details on using hashes here.

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