nxapi-intro:简化 NX-API 使用的 Python 模块

时间:2021-07-12 21:54:42
【文件属性】:
文件名称:nxapi-intro:简化 NX-API 使用的 Python 模块
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-12 21:54:42
Python 如何 简化 NX-API 使用的 Python 模块 switch = Device ( ip = '192.168.200.50' ) switch . open () show_command = switch . show ( 'show version' ) # optionally convert to a dictionary show_version = xmltodict . parse ( show_command [ 1 ]) # push a config push_config = switch . conf ( 'config t ; interface eth1/1 ; no shut' ) # credentials are stored in device.py - can change there or use: switch = Device ( ip
【文件预览】:
nxapi-intro-master
----device.py(809B)
----README.md(485B)
----nxapi.py(7KB)

网友评论