From 6b7f4c3f9d9d26a5aa71be8f5976956aff387e8f Mon Sep 17 00:00:00 2001 From: masoud Date: Thu, 31 Oct 2019 18:07:18 +0100 Subject: [HICN-357] sysrepo plugin update Signed-off-by: masoud Change-Id: Idabe9d3a3b03139ad3cdb20c8c822e6dd7d4c553 --- .../hicn-plugin/plugin/model/hicn_model.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'ctrl/sysrepo-plugins/hicn-plugin/plugin/model') diff --git a/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c b/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c index b49839c53..b40293705 100644 --- a/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c +++ b/ctrl/sysrepo-plugins/hicn-plugin/plugin/model/hicn_model.c @@ -28,7 +28,7 @@ /* Hicn headers */ #include -#include +#include #include "../hicn_plugin.h" #include "../hicn_vpp_comm.h" #include "hicn_model.h" @@ -484,18 +484,6 @@ static int hicn_node_params_set_cb(sr_session_ctx_t *session, const char *xpath, new_val ? new_val->xpath : old_val->xpath, new_val->data.int32_val); msg->payload.cs_reserved_app = new_val->data.int32_val; - } else if (!strcmp(new_val->xpath, - "/hicn:hicn-conf/params/pit_dflt_lifetime_sec")) { - SRP_LOG_DBG("A change detected in '%s', op=%d", - new_val ? new_val->xpath : old_val->xpath, - new_val->data.decimal64_val); - msg->payload.pit_dflt_lifetime_sec = new_val->data.decimal64_val; - } else if (!strcmp(new_val->xpath, - "/hicn:hicn-conf/params/pit_min_lifetime_sec")) { - SRP_LOG_DBG("A change detected in '%s', op=%d", - new_val ? new_val->xpath : old_val->xpath, - new_val->data.decimal64_val); - msg->payload.pit_min_lifetime_sec = new_val->data.decimal64_val; } else if (!strcmp(new_val->xpath, "/hicn:hicn-conf/params/pit_max_lifetime_sec")) { SRP_LOG_DBG("A change detected in '%s', op=%d", @@ -1452,4 +1440,4 @@ error: SRP_LOG_ERR_MSG("Error by initialization of the hicn plugin."); sr_plugin_cleanup_cb(session, &g_vapi_ctx_instance); return rc; -} \ No newline at end of file +} -- cgit 1.2.3-korg