commit | 39f83f5248a0994fc058600c5cb43db12bcea0d2 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Fri Feb 19 02:52:08 2021 +0100 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Mon Feb 22 01:23:00 2021 +0100 |
tree | 9ce3b4a6308ad3155a7c2095ffcbcfcb155b1717 | |
parent | 6cc2f91002daf84a69aa1259d66769e7941f40fa [diff] |
Get rid of trailing slash saving This m_trailingSlash was the source of bugs, so I got rid of it. A caveat is that I lose this information if I want to recreate the path back, but it isn't really too useful. The actual bug was about conversion of the parsed path back to a string. The problem was when the input had a trailing slash, the result string would also have that trailing slash, which is undesirable (libyang cannot deal with it). This patch completely removes the information about the trailing slash, so converting a *Path_ structure back to a string can't result with a path that has a trailing slash. However, I do think that there should be at least some sort of a test, so the `cd` test converts paths back to strings and asserts that they don't have trailing slashes. Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/212 Change-Id: I08e02401580ce31c1e0412a5798cea20e7802ab4
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.