Skip to content

Commit

Permalink
interfaces-plugin: use libyang conversion API to load data into the r…
Browse files Browse the repository at this point in the history
…unning datastore
  • Loading branch information
zinccyy committed Dec 8, 2022
1 parent c7c0f12 commit 8b276b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/src/plugin/startup/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int interfaces_startup_load(interfaces_ctx_t* ctx, sr_session_ctx_t* session)
/* enable or disable storing into startup, use for testing */
#define INTERFACES_PLUGIN_LOAD_STARTUP
/* disable for now */
#undef INTERFACES_PLUGIN_LOAD_STARTUP
// #undef INTERFACES_PLUGIN_LOAD_STARTUP
#ifdef INTERFACES_PLUGIN_LOAD_STARTUP
error = sr_edit_batch(session, root_node, "merge");
if (error != SR_ERR_OK) {
Expand Down Expand Up @@ -91,7 +91,7 @@ static int interfaces_startup_load_interface(void* priv, sr_session_ctx_t* sessi
SRPC_SAFE_CALL_ERR(error, interfaces_interface_hash_to_ly(ly_ctx, interface_hash, &parent_node), error_out);

// print created tree
lyd_print_file(stdout, parent_node, LYD_XML, 0);
// lyd_print_file(stdout, parent_node, LYD_XML, 0);

goto out;

Expand Down

0 comments on commit 8b276b1

Please sign in to comment.