+static void add_attrtibutes(sr_val_t **values_list, size_t *values_cnt, struct lyd_node *node)
+{
+ struct lyd_node *iter = NULL;
+
+ LY_TREE_FOR(node->child, iter) {
+ if (op_add_srval(values_list, values_cnt, iter)) {
+ printf("Could not transform libyang into sysrepo values...\n");
+ return;
+ }
+ if (iter->schema->nodetype == LYS_CONTAINER || iter->schema->nodetype == LYS_LIST)
+ {
+ add_attrtibutes(values_list, values_cnt, iter);
+ }
+ }
+}
+