diff options
| author | Christian Hopps <chopps@labn.net> | 2023-05-15 00:13:25 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-05-28 05:13:22 -0400 | 
| commit | 43f7196f3a61c67c530ec2c23f8977a7b5678bf8 (patch) | |
| tree | e28c7deca4b66329b6fc96795ea333e906c41136 /staticd | |
| parent | 218625aa439071cb4aac7cd08e0f85eb1163134f (diff) | |
staticd: remove connect notify function, not needed
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'staticd')
| -rw-r--r-- | staticd/static_main.c | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/staticd/static_main.c b/staticd/static_main.c index 5aa4566ce2..464c42ecab 100644 --- a/staticd/static_main.c +++ b/staticd/static_main.c @@ -106,6 +106,7 @@ struct frr_signal_t static_signals[] = {  	},  }; +#if 0  static void static_mgmt_be_client_connect(uintptr_t lib_hndl,  					  uintptr_t usr_data, bool connected)  { @@ -117,11 +118,11 @@ static void static_mgmt_be_client_connect(uintptr_t lib_hndl,  		   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, @@ -147,8 +148,12 @@ static_mgmt_txn_notify(uintptr_t lib_hndl, uintptr_t usr_data,  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[] = {  | 
