问题描述
我正在使用napalm的get_interfaces()getter方法来管理Cisco IOS交换机,代码非常简单,如下所示
from napalm import get_network_driver
import json
driver = get_network_driver('ios')
SW1 = driver('x.x.x.x','xxx','xxx')
SW1.open()
output = SW1.get_interfaces()
print (json.dumps(output,indent=2))
有时运行EXACT SAME脚本后仍然无法正常工作,如下所示:
为什么会这样?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)