您好,我正在尝试使用PyEZ来创建自动化脚本。
我的目标是保存来自bgp摘要的响应,并将逻辑系统保存在变量中
这个可以用:
bgpinfo= cor1.rpc.get_bgp_summary_information但我想根据下面的juniper命令获取逻辑系统的bgp摘要:
user@COR1> show bgp summary logical-system EXTERNAL发布于 2018-04-05 18:23:32
检查下面这行代码是否正常工作:
bgpinfo= cor1.rpc.get_bgp_summary_information(logical_system='EXTERNAL')我在设备上给出了下面的命令:
reg@vj1> show bgp summary logical-system EXTERNAL | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/18.2D0/junos">
<rpc>
<get-bgp-summary-information>
<logical-system>EXTERNAL</logical-system>
</get-bgp-summary-information>
</rpc>
<cli>
<banner></banner>
</cli>
</rpc-reply>https://stackoverflow.com/questions/49665429
复制相似问题