commit | 1446fe135f7ba34a960cb1ec7b0b4687f056d06b | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Wed Oct 02 19:32:51 2019 +0200 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue Oct 08 17:12:23 2019 +0200 |
tree | 1d036b334b9744d4f7c67bdfa567859cbf6a70ee | |
parent | eefa75ee0b11bdf040c816ddcfbfb4802f4646d5 [diff] [blame] |
Fix Parser::availableNodes not caring about absolute paths Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/129 Change-Id: I73294b2cbd22ddfc4d5c34d4ef766279a0a5f249
diff --git a/src/static_schema.cpp b/src/static_schema.cpp index 6d28626..280f0da 100644 --- a/src/static_schema.cpp +++ b/src/static_schema.cpp
@@ -91,7 +91,8 @@ { m_nodes.at(location).emplace(name, yang::list{keys}); - m_nodes.emplace(name, std::unordered_map<std::string, NodeType>()); + std::string key = joinPaths(location, name); + m_nodes.emplace(key, std::unordered_map<std::string, NodeType>()); } bool StaticSchema::isPresenceContainer(const schemaPath_& location, const ModuleNodePair& node) const