Skip to content

Commit

Permalink
interfaces-plugin: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo Cindrić committed Sep 9, 2022
1 parent 1569398 commit 45a97d5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/interfaces/src/plugin/api/interfaces/interface/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ int interfaces_interface_change_enabled(void* priv, sr_session_ctx_t* session, c
SRPLG_LOG_INF(PLUGIN_NAME, "Current link status: %d", rtnl_link_get_operstate(current_link));
SRPLG_LOG_INF(PLUGIN_NAME, "Changed link status: %d", rtnl_link_get_operstate(request_link));

// error = rtnl_link_change(mod_ctx->socket, current_link, request_link, NLM_F_REPLACE);
// if (error) {
// SRPLG_LOG_ERR(PLUGIN_NAME, "rtnl_link_change() error (%d) : %s", error, nl_geterror(error));
// goto error_out;
// }

// apply changes
SRPC_SAFE_CALL_ERR(error, rtnl_link_change(mod_ctx->socket, current_link, request_link, NLM_F_REPLACE), error_out);

Expand Down Expand Up @@ -241,7 +235,7 @@ int interfaces_interface_change_type(void* priv, sr_session_ctx_t* session, cons
}

if (!type_set) {
SRPLG_LOG_ERR(PLUGIN_NAME, "Unsupported interface type (%s)", node_value);
SRPLG_LOG_ERR(PLUGIN_NAME, "Unsupported interface type %s", node_value);
goto error_out;
}

Expand Down

0 comments on commit 45a97d5

Please sign in to comment.