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_cli.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_cli.c')
| -rw-r--r-- | lib/northbound_cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c index 92d4ffb2ba..0358a0f377 100644 --- a/lib/northbound_cli.c +++ b/lib/northbound_cli.c @@ -146,9 +146,9 @@ static int nb_cli_apply_changes_internal(struct vty *vty, VTY_CHECK_XPATH; - nb_candidate_edit_config_changes( - vty->candidate_config, vty->cfg_changes, vty->num_cfg_changes, - xpath_base, buf, sizeof(buf), &error); + nb_candidate_edit_config_changes(vty->candidate_config, vty->cfg_changes, + vty->num_cfg_changes, xpath_base, + false, buf, sizeof(buf), &error); if (error) { /* * Failure to edit the candidate configuration should never |
