diff options
Diffstat (limited to 'mgmtd')
| -rw-r--r-- | mgmtd/mgmt_txn.c | 10 | ||||
| -rw-r--r-- | mgmtd/mgmt_vty.c | 6 | 
2 files changed, 6 insertions, 10 deletions
diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c index 35d67e247e..a4e0fa2169 100644 --- a/mgmtd/mgmt_txn.c +++ b/mgmtd/mgmt_txn.c @@ -821,7 +821,6 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,  	struct nb_config_change *chg;  	struct mgmt_txn_be_cfg_batch *batch;  	char *xpath = NULL, *value = NULL; -	char err_buf[1024];  	enum mgmt_be_client_id id;  	struct mgmt_be_client_adapter *adapter;  	struct mgmt_commit_cfg_req *cmtcfg_req; @@ -916,12 +915,9 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,  			num_chgs++;  		} -		if (!chg_clients) { -			snprintf(err_buf, sizeof(err_buf), -				 "No validator module found for XPATH: '%s", -				 xpath); -			__log_err("***** %s", err_buf); -		} +		if (!chg_clients) +			__log_err("No connected daemon is interested in XPATH %s", +				  xpath);  		cmtcfg_req->clients |= chg_clients; diff --git a/mgmtd/mgmt_vty.c b/mgmtd/mgmt_vty.c index 0e5c06bf83..2cd24719bc 100644 --- a/mgmtd/mgmt_vty.c +++ b/mgmtd/mgmt_vty.c @@ -610,13 +610,13 @@ void mgmt_vty_init(void)  	 * here one by one.  	 */  	zebra_cli_init(); -#if HAVE_RIPD +#ifdef HAVE_RIPD  	rip_cli_init();  #endif -#if HAVE_RIPNGD +#ifdef HAVE_RIPNGD  	ripng_cli_init();  #endif -#if HAVE_STATICD +#ifdef HAVE_STATICD  	static_vty_init();  #endif  | 
