Skip to main content

PyPI PyPI

NAPALM Huawei VRP

It's a NAPALM Community Driver for Huawei VRP5/VRP8 Enterprise/Service Provider Routers and Switches.

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

Supported Huawei Network Devices

  • NE Series:
    • 40E, 8000
  • AR Series:
    • 2200
  • ATN 900 Series:
    • 910B, 910C and 910D
  • S Switch Series:
    • S5700, S6700

This driver is not limited to these models and series, these are just devices where the driver have been tested.

Instructions

The driver is under development and iteration.

Get info

API Description
get_facts() Return general device information
get_config() Read config
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
get_lldp_neighbors() Fetch LLDP neighbor information

Config

API Description
cli() Send any cli commands
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

Other tools

API Description
is_active() get devices active status
ping() Ping remote ip

Plans to develop

  • get_bgp_config
  • get_bgp_neighbors
  • get_bgp_neighbors_detail
  • get_environment
  • get_ipv6_neighbors_table
  • get_lldp_neighbors_detail
  • get_network_instances
  • get_ntp_peers
  • get_ntp_servers
  • get_ntp_stats
  • get_optics
  • get_route_to
  • get_snmp_information
  • get_users
  • get_vlans

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

check the package version.

pip list | grep 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()

# Send Any CLI command
send_command = device.cli(['dis version'])

#  Return general device information
get_facts = device.get_facts()
print(get_facts)

# other API
device.get_config()
device.get_arp_table()
device.get_mac_address_table()
device.get_interfaces()
device.get_interfaces_ip()
device.get_interfaces_counters()
device.get_lldp_neighbors()

Contact

Slack

Slack is probably the easiest way to get help with NAPALM. You can find us in the channel napalm on the network.toCode() team.

News

YouTube Videos

Metadata

Release files for napalm-huawei-vrp 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napalm-huawei-vrp 1.2.0
File Size Uploaded
napalm-huawei-vrp-1.2.0.tar.gz 26.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napalm-huawei-vrp 1.2.0
File Interpreter ABI Platform
napalm_huawei_vrp-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 52.4 kB

Release files / napalm-huawei-vrp-1.2.0.tar.gz

Download URL napalm-huawei-vrp-1.2.0.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
171f1d4154ec9242e9ec3ee30a9323503050b6af44defebe66686a59946e6bb7
BLAKE2b-256 checksum
How to use checksums
0f368f900464b6478cc4e2a14f08600bf11e120c480f037d089eebd8ebea576f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / napalm_huawei_vrp-1.2.0-py3-none-any.whl

Download URL napalm_huawei_vrp-1.2.0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11f5eaaeed7633785994c10389ac1266b6f98697ce0562955b5c94e65f3bef0d
BLAKE2b-256 checksum
How to use checksums
ba5a023ee0654db05a5366b61ef8d23d11f764dd73789ac1be00c36cfb2f03df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page