Merge "cli: connecting over a UNIX socket"
diff --git a/src/netconf_access.cpp b/src/netconf_access.cpp
index 64e2f76..e3fbb1c 100644
--- a/src/netconf_access.cpp
+++ b/src/netconf_access.cpp
@@ -222,6 +222,16 @@
// I take the first child here, because the first element (the parent of the child()) will be the list
for (const auto& keyLeaf : instance->child()->tree_for()) {
+ // FIXME: even though we specified we only want the key leafs, Netopeer disregards that and sends more data,
+ // even lists and other stuff. We only want keys, so filter out non-leafs and non-keys
+ // https://github.com/CESNET/netopeer2/issues/825
+ if (keyLeaf->schema()->nodetype() != LYS_LEAF) {
+ continue;
+ }
+ if (!std::make_shared<libyang::Schema_Node_Leaf>(keyLeaf->schema())->is_key()) {
+ continue;
+ }
+
auto leafData = std::make_shared<libyang::Data_Node_Leaf_List>(keyLeaf);
instanceRes.insert({leafData->schema()->name(), leafValueFromNode(leafData)});
}
diff --git a/submodules/dependencies b/submodules/dependencies
index 7570525..367d638 160000
--- a/submodules/dependencies
+++ b/submodules/dependencies
@@ -1 +1 @@
-Subproject commit 7570525a6e64a4807e49d65e4515b8725989bac8
+Subproject commit 367d63857a4c3e46ca6f2acf6c0c025040fa5cda