commit | c8e5ed0f37e05eeca36f5f9b7931dd523e52e420 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Wed Mar 23 12:46:54 2022 +0100 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Mar 24 13:08:13 2022 +0100 |
tree | 080cf7c72acc0870b37b271b885e052e98d8b06b | |
parent | dbb678f98e2fd98ce352d1abf8d65a5337c36f4c [diff] [blame] |
Fix input nodes not being config nodes Although I'm not sure whether they are supposed to be called config nodes, netconf-cli depends on them being "config: true". Change-Id: I2c5cba9b59f74fd5a85c70b3bde0c3217f71bda3 Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/232 Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/5606
diff --git a/src/yang_schema.cpp b/src/yang_schema.cpp index 5a31a49..1dc05db 100644 --- a/src/yang_schema.cpp +++ b/src/yang_schema.cpp
@@ -500,6 +500,10 @@ bool YangSchema::isConfig(const std::string& path) const { auto node = getSchemaNode(path.c_str()); + if (node->isInput()) { + return true; + } + try { if (node->config() == libyang::Config::True) { return true;