Skip to content

Commit

Permalink
interfaces-plugin: disable IPv4 "enabled" leaf change callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo Cindrić committed Oct 6, 2022
1 parent 13d288a commit e2b4561
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ int interfaces_interface_ipv4_change_enabled(void* priv, sr_session_ctx_t* sessi
const char* node_name = LYD_NAME(change_ctx->node);
const char* node_value = lyd_get_value(change_ctx->node);

// IPv4 can be disabled by deleting all IPv4 addresses associated with the interface

SRPLG_LOG_INF(PLUGIN_NAME, "Node Name: %s; Previous Value: %s, Value: %s; Operation: %d", node_name, change_ctx->previous_value, node_value, change_ctx->operation);

switch (change_ctx->operation) {
Expand Down

0 comments on commit e2b4561

Please sign in to comment.