Nornir Python Example Cisco device: Send configuration from text file

Published: 12 December 2019
on channel: NetworkEvolution
3,435
52

𝗙𝗼𝗿 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗣𝘆𝘁𝗵𝗼𝗻 𝗙𝗼𝗿 𝗡𝗲𝘁𝘄𝗼𝗿𝗸 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿𝘀 𝗖𝗼𝘂𝗿𝘀𝗲:
𝗘𝗻𝗿𝗼𝗹𝗹 𝗳𝗼𝗿 𝗯𝗲𝗹𝗼𝘄 𝗨𝗱𝗲𝗺𝘆 𝗖𝗹𝗮𝘀𝘀: 𝟐𝟎𝟐𝟐 𝐕𝐞𝐫𝐬𝐢𝐨𝐧
𝑫𝒊𝒔𝒄𝒐𝒖𝒏𝒕𝒆𝒅 𝑹𝒆𝒇𝒆𝒓𝒓𝒂𝒍 𝑳𝒊𝒏𝒌:
https://www.udemy.com/course/python-f... #NORNIR #CiscoNORNIRPython #NORNIRExample

This video demostrates how to send Cisco device configuration from text file using Python Nornir.
How to configure Cisco device using nornir library, with NETMIKO send command.

from nornir import InitNornir
from nornir.plugins.tasks.networking import netmiko_send_command
from nornir.plugins.tasks.networking import netmiko_send_config
from nornir.plugins.functions.text import print_result, print_title

nr = InitNornir()

def lb_creation(task):
task.run(
task=netmiko_send_config,
config_file = '03_config')

task.run(
task=netmiko_send_command,
command_string= 'show ip interface brief'
)
result = nr.run(task = lb_creation)

print_title("Playbook to configure the network")
print_result(result)


Watch video Nornir Python Example Cisco device: Send configuration from text file online, duration hours minute second in high quality that is uploaded to the channel NetworkEvolution 12 December 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,435 times and liked it 52 visitors.