diff options
| author | Christian Hopps <chopps@labn.net> | 2024-01-18 04:17:35 +0000 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-01-19 15:27:24 +0000 | 
| commit | 9e34d817fcccd29115c2fef0c9199cca24b631fd (patch) | |
| tree | 94858491e75cc5019fa149eca76cbf51e65a8c99 /lib/northbound_sysrepo.c | |
| parent | f05a4e3b577b50f20b85ae95e53222c133bc7b1f (diff) | |
lib: better conditionalize leaf-list predicate xpath addition
If we're in the backend we already have the predicate added by mgmtd -- don't
add it again.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound_sysrepo.c')
| -rw-r--r-- | lib/northbound_sysrepo.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_sysrepo.c b/lib/northbound_sysrepo.c index 198d96e381..050477af91 100644 --- a/lib/northbound_sysrepo.c +++ b/lib/northbound_sysrepo.c @@ -219,7 +219,7 @@ static int frr_sr_process_change(struct nb_config *candidate,  	sr_val_to_buff(sr_data, value_str, sizeof(value_str));  	data = yang_data_new(xpath, value_str); -	ret = nb_candidate_edit(candidate, nb_node, nb_op, xpath, NULL, data); +	ret = nb_candidate_edit(candidate, nb_node, nb_op, xpath, false, NULL, data);  	yang_data_free(data);  	if (ret != NB_OK) {  		flog_warn(  | 
