commit | 7d82da7bfee43ad175032a0d0eeecea317c0d3e8 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Thu Apr 11 15:16:38 2019 +0200 |
committer | Jan Kundrát <kundrat@cesnet.cz> | Thu Apr 11 18:20:04 2019 +0100 |
tree | 7bc52f95d7375607857e7850ca1b1fb766d8ae8e | |
parent | 9d799ac662666255d48ba5e65aea6bd6b3a84251 [diff] [blame] |
Fix groupings not being properly resolved Change-Id: I878ea328acd4e01ec5ea2a7d5a28b22350bb11bd Bug: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/116 Bug: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/95
diff --git a/src/yang_schema.cpp b/src/yang_schema.cpp index bab4715..3512baf 100644 --- a/src/yang_schema.cpp +++ b/src/yang_schema.cpp
@@ -284,9 +284,7 @@ const auto absolutePath = "/" + pathToAbsoluteSchemaString(path); const auto set = m_context->find_path(absolutePath.c_str()); const auto schemaSet = set->schema(); - for (auto it = (*schemaSet.begin())->child(); it; it = it->next()) { - nodes.push_back(it); - } + nodes = (*schemaSet.begin())->child_instantiables(0); } for (const auto node : nodes) {