},
};
+#if 0
static void static_mgmt_be_client_connect(uintptr_t lib_hndl,
uintptr_t usr_data, bool connected)
{
connected ? "connected" : "disconnected",
connected ? "to" : "from");
+ /* unless we are subscribing to xpaths we don't need to do this */
if (connected)
(void)mgmt_be_subscribe_yang_data(mgmt_lib_hndl, NULL, 0);
}
-#if 0
static void
static_mgmt_txn_notify(uintptr_t lib_hndl, uintptr_t usr_data,
struct mgmt_be_client_txn_ctx *txn_ctx,
static struct mgmt_be_client_params mgmt_params = {
.name = "staticd",
.conn_retry_intvl_sec = 3,
- .client_connect_notify = static_mgmt_be_client_connect,
- .txn_notify = NULL, /* static_mgmt_txn_notify */
+ /*
+ * instead of a connect routine maybe just put xpaths to subcribe to
+ * here
+ */
+ .client_connect_notify = NULL, /* static_mgmt_be_client_connect, */
+ .txn_notify = NULL, /* static_mgmt_txn_notify */
};
static const struct frr_yang_module_info *const staticd_yang_modules[] = {