A Python NETCONF client
Project description
netconf_client
A NETCONF client for Python 3.6+.
Basic Usage
from netconf_client.connect import connect_ssh
from netconf_client.ncclient import Manager
session = connect_ssh(host="localhost", port=830, username="admin", password="password")
mgr = Manager(session, timeout=120)
mgr.edit_config(config="""<config> ... </config>""")
print(mgr.get(filter="""<filter> ... </filter>""").data_xml)
More complete documentation can be found in the User Guide
Comparison with ncclient
Compared to ncclient,
netconf_client
has several advantages:
- It's simpler (at the time of writing: 789 LoC vs 2889 LoC)
- lxml can be bypassed, which can work around issues where lxml breaks namespaces of e.g. identityrefs
- Support for TLS sessions
And a few disadvantages:
- Support for non-RFC-compliant devices isn't really included in
netconf_client
netconf_client
does a lot less error checking and assumes you're sending valid messages to the server (however this can be useful for testing edge-case behavior of a server)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netconf_client-2.0.0.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for netconf_client-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c2e8dd3343c4f49ab084382ce1960b9235c8d09d6295546ca06819fb5e0034 |
|
MD5 | 4008686f5d779984f5fe6dfbd1dc29fb |
|
BLAKE2b-256 | e51056f637384e31e3e87a7998053215f6bf139ca8698783cc26ef69126ed99c |