commit | 654303ff861abbfdb48cd5a0f6d8a73a662d1e4d | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Fri Jul 31 13:16:54 2020 +0200 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Fri Oct 23 10:23:05 2020 +0200 |
tree | 71f749c3c037591714098dc605ab6b00ae0beebc | |
parent | d2cd30a304e8a6b909a903829f8ca391ce62d47e [diff] |
Migrate to new NETCONF stack Changes from old sysrepo: - sysrepod and sysrepo-plugind are no longer required, so references to those were removed. - New Netopeer now uses NACM - the tests neeeded to be changed, so that they disable NACM. - Some TSan suppressions needed to be added, because of https://github.com/sysrepo/sysrepo/issues/2123 - sysrepo now provides easy access to a libyang context with all modules, which means we no longer have manually fetch them to fill out YangSchema - sysrepo now uses a different datastore model (https://tools.ietf.org/html/rfc8342). This changes the way sysrepo behaves in the datastore tests, especially that running config is no longer reset, when closing subscriptions. Because of that, the running config is always reset at the start of a test. Also, getItems had to be changed to use the "operational" datastore so that state data is still fetched. - sysrepo is now more parallelized and uses non-blocking mechanisms to defer some actions. The most notable example is committing changes (the new function is called `apply_changes()`). It is still possible to mimic the old behavior, because all the "defer-able" functions have a `wait` argument. - As sysrepo now uses libyang internally, data can be fetched as libyang nodes. I replaced the `sr_val_t` (and friends) to this mechanism. This also unifies some stuff in datastore_access test (mainly the containers, that had to be #ifdef'd). - Inside RPC callbacks, libyang context is available. Use this context to do libyang stuff, instead of injecting a YangSchema. Depends-on: https://cesnet-gerrit-czechlight/c/CzechLight/dependencies/+/2884 Depends-on: https://cesnet-gerrit-public/c/CzechLight/dependencies/+/2884 Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/2884 Change-Id: Iaf4281bc3bd6cda64ab7d8727c28b9b9d132050a
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:
Use 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.