commit | ed4e37861a8ae35784f3536309e96bfa1f5598e9 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Wed Mar 02 23:57:33 2022 +0100 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Fri Mar 18 02:10:11 2022 +0100 |
tree | f70c729b4955b48b4d8bc3645d34313b8d9b1e24 | |
parent | 50bb3d0f78dcce7a3e23536905ec23cf2525a1c4 [diff] |
Fix working with libyang parsed info Before now, yang_schema expected that parsed info was available, however, in most cases it was not: For YangAccess, we directly manage the context, so we'll just use the flag needed. For NetconfAccess, we need to create our custom context and supply it. This context is treated by libnetconf2 as shared and it won't try to free it. We will hold a reference to this context via a new member variable inside NetconfAccess so that it stays alive for the whole netconf client session. sysrepo does not support this flag as of now. Simply patching sysrepo to always use this flag doesn't work (it gives internal errors), so it needs an upstream patch. Change-Id: Ie7e4567a779a09daa7b3a8b3923e73a3dfd6ba1d
This program provides an interactive console for working with YANG data. It can connect to NETCONF servers, and also talk to sysrepo locally.
For building, one needs:
1.75
)-DGEN_LANGUAGE_BINDINGS=ON
) for working with YANG modelsUse an exact commit of any dependencies as specified in submodules/dependencies/*
.
The build process uses CMake. A quick-and-dirty build with no fancy options can be as simple as mkdir build && cd build && cmake .. && make && make install
.
Issue reporting and feature requests are welcome via Taiga.io.
We are using Gerrit for patch submission, code review and Continuous Integration (CI). Development roadmap and planning happens over Taiga.io.
Copyright © CESNET, https://www.cesnet.cz/ . Portions copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Most of the code was written by Václav Kubernát (CESNET, formerly FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.