summaryrefslogtreecommitdiffstats
path: root/lib/northbound.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-11-11 01:13:17 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2023-11-12 19:28:08 +0100
commitb8a2efbf2f062dd5dc6ab0c660b3cba3f2f469f5 (patch)
treec04a1318de46e9a7e97214290dbc2d69308d4017 /lib/northbound.h
parentMerge pull request #14758 from LabNConsulting/fix-mgmtd-coverity (diff)
downloadfrr-b8a2efbf2f062dd5dc6ab0c660b3cba3f2f469f5.tar.xz
frr-b8a2efbf2f062dd5dc6ab0c660b3cba3f2f469f5.zip
lib, mgmtd: respect base xpath in mgmtd
`nb_cli_apply_changes` can be called with base xpath which should be prepended to xpaths of every change in a transaction. This base xpath is respected by regular northbound CLI but not by mgmtd. This commit fixes the problem. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound.h')
-rw-r--r--lib/northbound.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/northbound.h b/lib/northbound.h
index 5cf6e85b4..9c0b4d16c 100644
--- a/lib/northbound.h
+++ b/lib/northbound.h
@@ -916,12 +916,6 @@ extern bool nb_candidate_needs_update(const struct nb_config *candidate);
* xpath_base
* Base xpath for config.
*
- * curr_xpath
- * Current xpath for config.
- *
- * xpath_index
- * Index of xpath being processed.
- *
* err_buf
* Buffer to store human-readable error message in case of error.
*
@@ -933,8 +927,8 @@ extern bool nb_candidate_needs_update(const struct nb_config *candidate);
*/
extern void nb_candidate_edit_config_changes(
struct nb_config *candidate_config, struct nb_cfg_change cfg_changes[],
- size_t num_cfg_changes, const char *xpath_base, const char *curr_xpath,
- int xpath_index, char *err_buf, int err_bufsize, bool *error);
+ size_t num_cfg_changes, const char *xpath_base, char *err_buf,
+ int err_bufsize, bool *error);
/*
* Delete candidate configuration changes.