Signed-off-by: Christian Hopps <chopps@labn.net>
{
struct mgmt_be_client_ctx *client_ctx;
+ if (!num_reg_xpaths)
+ return MGMTD_SUCCESS;
+
client_ctx = (struct mgmt_be_client_ctx *)lib_hndl;
if (!client_ctx)
return MGMTD_INVALID_PARAM;
{
struct mgmt_be_client_ctx *client_ctx;
+ if (!num_reg_xpaths)
+ return MGMTD_SUCCESS;
+
client_ctx = (struct mgmt_be_client_ctx *)lib_hndl;
if (!client_ctx)
return MGMTD_INVALID_PARAM;
}
mgmt_be_adapters_by_id[adapter->id] = adapter;
mgmt_be_adapter_cleanup_old_conn(adapter);
+
+ /* schedule INIT sequence now that it is registered */
+ mgmt_be_adapter_sched_init_event(adapter);
}
if (be_msg->subscr_req->n_xpath_reg)
MGMTD_BE_ADAPTER_DBG("Added new MGMTD Backend adapter '%s'",
adapter->name);
+#if 0 /* wait until we receive the SUBSCR_REQ registration with name */
/* Trigger resync of config with the new adapter */
mgmt_be_adapter_sched_init_event(adapter);
+#endif
return adapter->conn;
}