Skip to content

Commit

Permalink
Add support for netconf subtree leaf-list queries
Browse files Browse the repository at this point in the history
Currently a netconf subtree filter request for a leaf list results
in a crash. This change adds support for leaf-list queries.
  • Loading branch information
gcampbell512 authored and carlgsmith committed Sep 12, 2023
1 parent 0c5be6c commit a61ff94
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,16 @@ _sch_xml_to_gnode (_sch_xml_to_gnode_parms *_parms, sch_node * schema, xmlNs *ns
}

/* LIST */
if (sch_is_list (schema))
if (sch_is_leaf_list (schema))
{
DEBUG (_parms->in_flags, "%*s%s%s\n", depth * 2, " ", depth ? "" : "/", name);
tree = APTERYX_NODE (NULL, g_strdup (name));
node = APTERYX_NODE (tree, g_strdup ("*"));
schema = sch_node_child_first (schema);
if (rschema)
*rschema = schema;
}
else if (sch_is_list (schema))
{
char *old_xpath = new_xpath;
char *key_value;
Expand Down

0 comments on commit a61ff94

Please sign in to comment.