napalm-h3c-cw7-ssh
This repository is published in https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh
NAPALM
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
- ✅ is_alive()
- ✅ get_facts()
- ✅ get_interfaces()
- ✅ get_interfaces_ip()
✅ get_interfaces_counters()❌needs to be rewritten- ✅ get_lldp_neighbors()
- ✅ get_lldp_neighbors_detail()
- ✅ get_environment()
- ✅ cli()
- ✅ get_arp_table()
- ✅ get_mac_address_move_table()
- ✅ get_mac_address_table()
- ✅ get_vlans()
- ✅ get_config()
- ✅ get_irf_config()
- ✅ is_irf()
Getting Started
Install
pip install napalm-h3c-comware
Upgrading
pip install napalm-h3c-comware -U
Use
You can use this driver like this:
from napalm import get_network_driver
driver = 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__:
from napalm import get_network_driver
driver = 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:
from napalm import get_network_driver
driver = 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)
Metadata
Release files for napalm-h3c-comware 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| napalm-h3c-comware-0.1.5.tar.gz | 18.0 kB | Without provenance | Details for napalm-h3c-comware-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| napalm_h3c_comware-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for napalm_h3c_comware-0.1.5-py3-none-any.whl |
Total release size: 40.7 kB
Release files / napalm-h3c-comware-0.1.5.tar.gz
| Download URL | napalm-h3c-comware-0.1.5.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29d0353b7f410d3e8352924f741003c573de8acdace34d387fcc844121215d5e
|
|
BLAKE2b-256 checksum How to use checksums |
15d4b576aa56349af3a85b30e8c17bffb3307a2087e1867133b94686e895f103
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / napalm_h3c_comware-0.1.5-py3-none-any.whl
| Download URL | napalm_h3c_comware-0.1.5-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f63872b6b6d53b794a0c3c16ed234aa373ccc8eb7d7caa9c9cfca43b8a0da5e
|
|
BLAKE2b-256 checksum How to use checksums |
03d78cff44772f08c8d76ad98b77f1adcbdef3b2259010a502a40b51f97efee6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for napalm-h3c-comware 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.