summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfrr.c')
-rw-r--r--lib/libfrr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index ac165f254e..d52cef3fe9 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -902,11 +902,13 @@ static int frr_config_read_in(struct thread *t)
* reading the configuration file.
*/
if (frr_get_cli_mode() == FRR_CLI_TRANSACTIONAL) {
+ struct nb_context context = {};
int ret;
- ret = nb_candidate_commit(vty_shared_candidate_config,
- NB_CLIENT_CLI, NULL, true,
- "Read configuration file", NULL);
+ context.client = NB_CLIENT_CLI;
+ ret = nb_candidate_commit(&context, vty_shared_candidate_config,
+ true, "Read configuration file",
+ NULL);
if (ret != NB_OK && ret != NB_ERR_NO_CHANGES)
zlog_err("%s: failed to read configuration file.",
__func__);