Skip to content

Commit

Permalink
Modify the README and add README-ZH
Browse files Browse the repository at this point in the history
  • Loading branch information
tkspuk committed Apr 25, 2020
1 parent df2247a commit 804c6b6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
43 changes: 43 additions & 0 deletions README-ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[![PyPI](https://img.shields.io/pypi/v/napalm-huawei-vrp.svg)](https://pypi.python.org/pypi/napalm-huawei-vrp)
[![PyPI](https://img.shields.io/pypi/dm/napalm-huawei-vrp.svg)](https://pypi.python.org/pypi/napalm-huawei-vrp)

# napalm-huawei-vrp [English](README.md)

NAPALM华为S系列园区网交换机驱动,支持S5700,S6700等.


## 介绍

这个驱动目前支持以下功能

* get_facts(): 获取设备基础信息
* cli(): 发送任何命令到设备中
* get_lldp_neighbors(): 获取LLDP邻居信息
* get_config(): 获取配置信息
* is_active(): 设备是否可用
* 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 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'])
```
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# napalm-huawei-vrp
[![PyPI](https://img.shields.io/pypi/v/napalm-huawei-vrp.svg)](https://pypi.python.org/pypi/napalm-huawei-vrp)
[![PyPI](https://img.shields.io/pypi/dm/napalm-huawei-vrp.svg)](https://pypi.python.org/pypi/napalm-huawei-vrp)

# napalm-huawei-vrp [中文版](README-ZH.md)

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

Expand All @@ -15,7 +18,8 @@ The driver is functional and can be used to poll status information:
* ping(): Ping remote ip
* get_arp_table(): Get device ARP table
* get_mac_address_table(): Get mac table of connected devices
* get_interfaces_ip(): Get interface IP
* get_interfaces(): Get interface information
* get_interfaces_ip(): Get interface IP information
* get_interfaces_counters(): Get interface counters

## How to Install
Expand Down

0 comments on commit 804c6b6

Please sign in to comment.