A python code with Napalm library is built on Linux ubuntu desktop to connect to Huawei NE40 router, and get the output of get_facts API of Napalm which returns general information about the router.
///
Huawei Network Automation Playlist: • Huawei Network Automation (Python 3 and An...
///
Links used in the video:
Napalm: https://napalm.readthedocs.io/en/latest/
Napalm community for Huawei on Github: https://github.com/napalm-automation-...
///
Additional Lab videos:
Enable SSH on NE40E router: • Network Login to Huawei router (Telnet and...
Networking Ubuntu Linux with Huawei Routers: • Networking Ubuntu Linux with Huawei Router...
Install Python 3.6, Netmiko, and Paramiko: • Install Python 3.6 and Netmiko for Ubuntu ...
///
Our website: https://labsontrack.com/
We’re building IT and Datacom Network Digital Platform to explore new skills, deepen your hands-on experience, we deliver effective, efficient and quality training paired with real and rich experience to help you reach your learning goals.
See list of courses from here: https://labsontrack.com/all-courses/
///
Know more about us on this link: https://labsontrack.com/about/
///
Python script code:
#!/usr/bin/env python
from napalm import get_network_driver
import pprint
driver = get_network_driver('huawei_vrp')
device = driver(hostname='10.1.1.2', username='huawei', password = 'Hamdy@123')
device.open()
get_facts = device.get_facts()
pprint.pprint(get_facts)
print(get_facts['hostname'])
///
Video key moments:
00:04 Definition of Napalm
01:02 Lab Intro
01:49 Writing the python script
06:13 Running the script
07:01 Pprint
08:03: Separately Printing an item of a dictionary (hostname item)
///
Huawei NE40E
Router
Python 3
Napalm
Napalm get_facts()
Python dictionaries
Ubuntu Linux
Huawei IP Networks
Huawei Datacom
///
#networkautomation #python #ubuntulinux #hcie #hcip #huawei #router #routers #ip #network #networks #datacom
Auf dieser Seite können Sie das Online-Video Retrieve Router Facts Info using Python Napalm mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Labs On Track 04 September 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 643 Mal angesehen und es wurde von like den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!