一只蟒蛇
netconf-client的Python项目详细描述
[![构建状态](https://travis-ci.org/adtran/netconf_client.svg?branch=master)(https://travis ci.org/adtran/netconf_客户端)
[![PYPI版本](https://badge.fury.io/py/netconf client.svg)(https://badge.fury.io/py/netconf client)
[![文档状态](https://readthedocs.org/projects/netconf-client/badge/?版本=最新](https://netconf-client.readthedocs.io/en/latest/?
>一个netconf客户端,用于python 2.7和3+。
基本用法
`` python
``从netconf-client.netconf-client.connect-import-connect-connect-ssh
conclient import-manager
session=connect-ssh(host=“localhost”,port=830,username=“admin”,username=“admin”,password=“password”,port=adm”;
mgr=manager=manager(s)manager(s)manager(s我是说,超时=120)
<;/config>;“”“
打印(mgr.get(filter)”“<;filter>;……<;/filter>;“”。数据XML)
```
被绕过,它可以解决lxml
中断名称空间的问题,例如identityrefs
-对tls会话的支持
和一些缺点:
-对不符合rfc的设备的支持并没有真正包括在
`netconf_client`
-`netconf_client`中,它很少进行错误检查,并且假设您发送的是有效的发送到服务器的消息(但是这对于测试服务器的边缘案例行为很有用)
[用户指南]:https://netconf client.readthedocs.io/en/latest/
[![PYPI版本](https://badge.fury.io/py/netconf client.svg)(https://badge.fury.io/py/netconf client)
[![文档状态](https://readthedocs.org/projects/netconf-client/badge/?版本=最新](https://netconf-client.readthedocs.io/en/latest/?
>一个netconf客户端,用于python 2.7和3+。
基本用法
`` python
``从netconf-client.netconf-client.connect-import-connect-connect-ssh
conclient import-manager
session=connect-ssh(host=“localhost”,port=830,username=“admin”,username=“admin”,password=“password”,port=adm”;
mgr=manager=manager(s)manager(s)manager(s我是说,超时=120)
<;/config>;“”“
打印(mgr.get(filter)”“<;filter>;……<;/filter>;“”。数据XML)
```
被绕过,它可以解决lxml
中断名称空间的问题,例如identityrefs
-对tls会话的支持
和一些缺点:
-对不符合rfc的设备的支持并没有真正包括在
`netconf_client`
-`netconf_client`中,它很少进行错误检查,并且假设您发送的是有效的发送到服务器的消息(但是这对于测试服务器的边缘案例行为很有用)
[用户指南]:https://netconf client.readthedocs.io/en/latest/