NAPALM driver for HUAWEI Campus Network Switch, support the S5700,S6700 etc.
This repository is reference NAPALM-CE and Cisco IOS code, thanks for thdDaniel's contribution
The driver is under development and iteration.
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 |
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 |
API | Description |
---|---|
is_active() | get devices active status |
ping() | Ping remote ip |
- get_environment()
- get_lldp_neighbors_detail()
- get_snmp_information()
- get_users()
You can install napalm-huawei-vrp with pip:
pip install napalm-huawei-vrp
That will install napalm and huawei_vrp driver currently available.
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
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()