example BUGFIX set top-level state container
Fixes
@@ -139,7 +139,7 @@ oven_state_cb(sr_session_ctx_t *session, const char *module_name, const char *pa
(void)private_data;
sprintf(str, "%u", oven_temperature);
- lyd_new_path(*parent, NULL, "/oven:oven-state/temperature", str, 0, 0);
+ *parent = lyd_new_path(NULL, sr_get_context(sr_session_get_connection(sess)), "/oven:oven-state/temperature", str, 0, 0);
lyd_new_path(*parent, NULL, "/oven:oven-state/food-inside", food_inside ? "true" : "false", 0, 0);
return SR_ERR_OK;
