𝗙𝗼𝗿 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗣𝘆𝘁𝗵𝗼𝗻 𝗙𝗼𝗿 𝗡𝗲𝘁𝘄𝗼𝗿𝗸 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿𝘀 𝗖𝗼𝘂𝗿𝘀𝗲:
𝗘𝗻𝗿𝗼𝗹𝗹 𝗳𝗼𝗿 𝗯𝗲𝗹𝗼𝘄 𝗨𝗱𝗲𝗺𝘆 𝗖𝗹𝗮𝘀𝘀: 𝟐𝟎𝟐𝟐 𝐕𝐞𝐫𝐬𝐢𝐨𝐧
𝑫𝒊𝒔𝒄𝒐𝒖𝒏𝒕𝒆𝒅 𝑹𝒆𝒇𝒆𝒓𝒓𝒂𝒍 𝑳𝒊𝒏𝒌:
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 without registration, duration hours minute second in high quality. This video was added by user NetworkEvolution 12 December 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,435 once and liked it 52 people.