client side UPDATE follow libyang changes and cover new enums in switch
Cover new enums of anydata/anyxml format that actually cannot appear
here since they are used in case of JSON parsing which is not supported
in NETCONF. Therefore we generate internal error when these values are seen.
diff --git a/src/session_client.c b/src/session_client.c
index 31cb07c..5286e72 100644
--- a/src/session_client.c
+++ b/src/session_client.c
@@ -273,6 +273,10 @@
case LYD_ANYDATA_XML:
lyxml_print_mem(&model_data, get_schema_data->value.xml, LYXML_PRINT_SIBLINGS);
break;
+ case LYD_ANYDATA_JSON:
+ case LYD_ANYDATA_JSOND:
+ ERRINT;
+ break;
}
nc_reply_free(reply);
*free_model_data = free;