This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Library definitions | |
from netmiko import ConnectHandler | |
from getpass import getpass | |
import multiprocessing | |
from functools import partial | |
from netmiko.ssh_exception import NetMikoTimeoutException | |
from netmiko.ssh_exception import NetMikoAuthenticationException | |
import sys | |
import pandas as pd | |
import logging #for netmiko debugging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#==================================================================================== | |
#Ping function | |
def ping_func(lan_list, site, site_name_dict, net_connect, results, mgmt_ip): | |
ping_results_list = [] | |
for ip in lan_list: | |
ip_addr = ip | |
remote_site = site_name_dict[ip] | |
if site == remote_site: |