]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/yang_translator.c
lib: make it possible to create YANG data nodes containing state data
[mirror_frr.git] / lib / yang_translator.c
index 27b92a0e6bf8878e60798a0e4736e1e457ccdd89..c41a8f3eeacf7ee2d7f72da1f8367f07df3301e1 100644 (file)
@@ -351,7 +351,7 @@ int yang_translate_dnode(const struct yang_translator *translator, int dir,
                ly_ctx = ly_native_ctx;
        else
                ly_ctx = translator->ly_ctx;
-       new = yang_dnode_new(ly_ctx);
+       new = yang_dnode_new(ly_ctx, false);
 
        /* Iterate over all nodes from the data tree. */
        LY_TREE_FOR (*dnode, root) {