from napalm_base import get_network_driver junos_driver = get_network_driver('junos') junos_device = {'username': 'root', 'password': 'Juniper!1', 'hostname': '172.30.95.177'} with junos_driver(**junos_device) as junos: print junos.get_config()