From dee97eb5272df11c6aa2bf31bf885240bdf3b816 Mon Sep 17 00:00:00 2001 From: Mateo Cindric Date: Mon, 31 Oct 2022 11:18:10 +0000 Subject: [PATCH] interfaces-plugin: remove sr_copy_config() call from interface change subscription SR_EV_DONE event --- src/interfaces/src/plugin/subscription/change.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/interfaces/src/plugin/subscription/change.c b/src/interfaces/src/plugin/subscription/change.c index 5643f899..f3312256 100644 --- a/src/interfaces/src/plugin/subscription/change.c +++ b/src/interfaces/src/plugin/subscription/change.c @@ -26,9 +26,6 @@ int interfaces_subscription_change_interfaces_interface(sr_session_ctx_t* sessio if (event == SR_EV_ABORT) { SRPLG_LOG_ERR(PLUGIN_NAME, "Aborting changes for %s", xpath); goto error_out; - } else if (event == SR_EV_DONE) { - // when all changes processed - copy running DS contents to startup - SRPC_SAFE_CALL_ERR(error, sr_copy_config(ctx->startup_session, IETF_INTERFACES_YANG_MODULE, SR_DS_RUNNING, 0), error_out); } else if (event == SR_EV_CHANGE) { // name SRPC_SAFE_CALL_ERR_COND(rc, rc < 0, snprintf(change_xpath_buffer, sizeof(change_xpath_buffer), "%s/name", xpath), error_out);