Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh
NAPALM driver for H3C Comware V7, over SSH
https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh
comware comware-automation napalm netdevops
Last synced: about 2 months ago
JSON representation
NAPALM driver for H3C Comware V7, over SSH
- Host: GitHub
- URL: https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh
- Owner: napalm-automation-community
- License: apache-2.0
- Created: 2022-01-31T14:14:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-14T16:21:02.000Z (over 2 years ago)
- Last Synced: 2024-11-06T12:56:42.965Z (about 2 months ago)
- Topics: comware, comware-automation, napalm, netdevops
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 22
- Watchers: 6
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
# napalm-h3c-cw7-ssh
![](https://img.shields.io/pypi/v/napalm-h3c-comware?style=flat-square)
![](https://img.shields.io/pypi/pyversions/napalm-h3c-comware?style=flat-square)
![](https://img.shields.io/pypi/dm/napalm-h3c-comware?style=flat-square)[English](README.md) | [中文](README_CN.md)
This repository is published in https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh
## NAPALM
[NAPALM](https://github.com/napalm-automation/napalm) (Network Automation and Programmability Abstraction Layer with Multivendor support) is a Python library that implements a set of functions to interact with different router vendor devices using a unified API.
NAPALM supports several methods to connect to the devices, to manipulate configurations or to retrieve data.
## napalm-h3c-cw7-ssh
NAPALM driver for H3C Comware V7 network devices, over ssh.
# Supported devices
S5100、S5500、S6800、S12500 Series Data Center Switches.
Some methods may work on Routers.
Looking forward to your testing and feedback :).
# Supported functions
- :white_check_mark: is_alive()
- :white_check_mark: get_facts()
- :white_check_mark: get_interfaces()
- :white_check_mark: get_interfaces_ip()
- ~~:white_check_mark: get_interfaces_counters():x:needs to be rewritten~~
- :white_check_mark: get_lldp_neighbors()
- :white_check_mark: get_lldp_neighbors_detail()
- :white_check_mark: get_environment()
- :white_check_mark: cli()
- :white_check_mark: get_arp_table()
- :white_check_mark: get_mac_address_move_table()
- :white_check_mark: get_mac_address_table()
- :white_check_mark: get_vlans()
- :white_check_mark: get_config()
- :white_check_mark: get_irf_config()
- :white_check_mark: is_irf()# Getting Started
## Install
```shell
pip install napalm-h3c-comware
```## Upgrading
```shell
pip install napalm-h3c-comware -U
```## Use
You can use this driver like this:
```python
from napalm import get_network_driverdriver = get_network_driver("h3c_comware")
driver = driver("192.168.56.20", "netdevops", "NetDevops@01",)
driver.open()
ret = driver.is_alive()
print(ret)
```If you want to custom some connection parameter, example: the port connected to the device, you should use `optional_args`, it is exactly the same as `netmiko.BaseConnection.__init__`:
```python
from napalm import get_network_driverdriver = get_network_driver("h3c_comware")
conn_args = {
"port": 2222
}
driver = driver("192.168.56.21", "netdevops", "NetDevops@01",optional_args=conn_args)
driver.open()
ret = driver.is_alive()
print(ret)
```Sometimes you want to execute raw command via netmiko, you can use `send_command`, it is exactly the same as `netmiko.send_command`:
```python
from napalm import get_network_driverdriver = get_network_driver("h3c_comware")
driver = driver("192.168.56.20", "netdevops", "NetDevops@01",)
driver.open()
# you can use any options that supported by netmiko.send_command
ret = driver.send_command("display clock", use_textfsm=True)
print(ret)
```