Загрузка...

Retrieve IP Config of Router Interface using Python Napalm

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: https://www.youtube.com/playlist?list=PLc7T-rjcn-xXAJVP1HUldOncVfoH9pMgz
///
Links used in the video:
Napalm: https://napalm.readthedocs.io/en/latest/
Napalm community for Huawei on Github: https://github.com/napalm-automation-community/napalm-huawei-vrp
///
Lab setup videos:
Enable SSH on NE40E router: https://youtu.be/8uSW3QrhPYw
Networking Ubuntu Linux with Huawei Routers: https://youtu.be/NzRw9UUW3is
Install Python 3.6, Netmiko, and Paramiko: https://youtu.be/1ATNbpyTpis
///
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.html
///
Connect with me on Social Media:
Linkedin: https://www.linkedin.com/in/mohammadhamdy/
YouTube channel: https://www.youtube.com/c/mohammadhamdyelsayed/
Facebook: https://www.facebook.com/labsontrack
///
Know more about my profile and my courses on Udemy on this link:
https://www.udemy.com/user/mohammad-hamdy-el-sayed/
///
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

Видео Retrieve IP Config of Router Interface using Python Napalm канала Mohammad Hamdy El-Sayed
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять