https://github.com/napalm-automation-community/napalm-huawei-vrp
NAPALM Driver for Huawei VRP5/VRP8 Routers and Switches
https://github.com/napalm-automation-community/napalm-huawei-vrp
ansible automation huawei napalm netmiko network-automation python vrp
Last synced: 7 months ago
JSON representation
NAPALM Driver for Huawei VRP5/VRP8 Routers and Switches
- Host: GitHub
- URL: https://github.com/napalm-automation-community/napalm-huawei-vrp
- Owner: napalm-automation-community
- License: apache-2.0
- Created: 2020-04-20T08:00:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T17:05:37.000Z (about 1 year ago)
- Last Synced: 2025-04-12T23:39:46.736Z (7 months ago)
- Topics: ansible, automation, huawei, napalm, netmiko, network-automation, python, vrp
- Language: Python
- Homepage:
- Size: 153 KB
- Stars: 88
- Watchers: 7
- Forks: 33
- Open Issues: 10
-
Metadata Files:
- Readme: README-ZH.md
- Contributing: CONTRIBUTING
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
[](https://pypi.python.org/pypi/napalm-huawei-vrp)
[](https://pypi.python.org/pypi/napalm-huawei-vrp)
# napalm-huawei-vrp [English](README.md)
NAPALM华为S系列园区网交换机驱动,支持S5700,S6700等.
## 介绍
这个驱动目前支持以下功能
* load_merge_candidate(): 加载给定的配置文件
* compare_config(): 比较加载的配置和当前运行配置
* discard_config():删除加载的配置文件
* commit_config():执行加载的配置文件到设备
* get_facts(): 获取设备基础信息
* cli(): 发送任何命令到设备中
* get_lldp_neighbors(): 获取LLDP邻居信息
* get_config(): 获取配置信息
* is_alive(): 返回连接状态的标志
* ping(): 从设备中ping远端设备
* get_arp_table(): 获取设备APR表
* get_mac_address_table(): 获取设备MAC地址表
* get_interfaces(): 获取接口信息
* get_interfaces_ip(): 获取接口IP信息
* get_interfaces_counters(): 获取接口统计信息
## 如何安装
使用PIP来安装napalm-huawei-vrp
`pip install napalm-huawei-vrp`
## 快速开始
```python
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'])
```