Retrieve IP Config of Router Interface using Python Napalm
Автор: Labs On Track
Загружено: 2021-09-10
Просмотров: 892
A python script with the support of Napalm library and get interfaces IP API is built on Linux ubuntu desktop to connect to Huawei NE40E router, and get the output which returns IP interfaces of the router and information about them like IP address and subnet mask.
///
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-...
///
Lab setup 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 ...
///
My website: https://www.mohammadhamdy.com
mohammadhamdy.com is an on-demand IT and Datacom Networks learning platform where you can choose your course matching your requirements, start, and end it any time at your own pace with lifetime access.
See list of courses from here: https://www.mohammadhamdy.com/courses...
///
Connect with me on Social Media:
Linkedin: / mohammadhamdy
YouTube channel: / mohammadhamdyelsayed
Facebook: / labsontrack
///
Know more about my profile and my courses on Udemy on this link:
https://www.udemy.com/user/mohammad-h...
///
Know more about me on this link: https://www.mohammadhamdy.com/about.html
///
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_interfaces_ip = device.get_interfaces_ip()
pprint.pprint(get_interfaces_ip)
Video key moments:
00:26 Definition of Napalm
00:46 Napalm API - get_interfaces_ip()
01:11 Lab intro
02:15 Writing the script
06:55 Running the script
///
Huawei NE40E
Python
Python 3
Napalm
Ubuntu Linux
Huawei IP Networks
Huawei Datacom
Huawei Datacom
///
#networkautomation #python #ubuntulinux #hcie #hcip #huawei #ip #network #networks #router #routers #datacom #python3
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: