libyang FEATURE new flags for schema nodes in operations

Fixes #1372
diff --git a/src/printer_lyb.c b/src/printer_lyb.c
index 3b5b901..83730f8 100644
--- a/src/printer_lyb.c
+++ b/src/printer_lyb.c
@@ -129,7 +129,7 @@
     LY_CHECK_ERR_RET(!ht, LOGMEM(sibling->module->ctx), LY_EMEM);
 
     getnext_opts = 0;
-    if (sibling->flags & LYS_CONFIG_R) {
+    if (sibling->flags & LYS_IS_OUTPUT) {
         getnext_opts = LYS_GETNEXT_OUTPUT;
     }
 
@@ -853,7 +853,7 @@
     if (!*sibling_ht) {
         /* get first schema data sibling */
         first_sibling = (struct lysc_node *)lys_getnext(NULL, lysc_data_parent(schema), schema->module->compiled,
-                (schema->flags & LYS_CONFIG_R) ? LYS_GETNEXT_OUTPUT : 0);
+                (schema->flags & LYS_IS_OUTPUT) ? LYS_GETNEXT_OUTPUT : 0);
         LY_ARRAY_FOR(lybctx->sib_hts, u) {
             if (lybctx->sib_hts[u].first_sibling == first_sibling) {
                 /* we have already created a hash table for these siblings */