📜  凝固汽油弹 cli - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:46.488000             🧑  作者: Mango

代码示例1
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)