📅  最后修改于: 2022-03-11 14:45:46.488000             🧑  作者: Mango
import napalm
driver = napalm.get_network_driver('ios')
device = driver(hostname='127.0.0.1', username='vagrant',password='vagrant')
print('Opening ...')
device.open()
commands = ['show run']
res = device.cli(commands)
print(res)