summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-06-09 22:52:56 +0200
committerChristian Hopps <chopps@labn.net>2023-06-12 13:22:30 +0200
commit70ff6bb80bf43e55171f328c96f0e45c634a4e1f (patch)
treef4229d3e733c7ca24dcc23d6c8bbecc339464a20 /lib/vty.c
parentMerge pull request #13762 from anlancs/doc/pthread-typo (diff)
downloadfrr-70ff6bb80bf43e55171f328c96f0e45c634a4e1f.tar.xz
frr-70ff6bb80bf43e55171f328c96f0e45c634a4e1f.zip
lib: mgmtd: simplify implicit commit code
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/vty.c b/lib/vty.c
index fedbdbb81..c2eb78852 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -3620,7 +3620,7 @@ int vty_mgmt_send_lockds_req(struct vty *vty, Mgmtd__DatastoreId ds_id,
return 0;
}
-int vty_mgmt_send_config_data(struct vty *vty)
+int vty_mgmt_send_config_data(struct vty *vty, bool implicit_commit)
{
Mgmtd__YangDataValue value[VTY_MAXCFGCHANGES];
Mgmtd__YangData cfg_data[VTY_MAXCFGCHANGES];
@@ -3628,7 +3628,6 @@ int vty_mgmt_send_config_data(struct vty *vty)
Mgmtd__YangCfgDataReq *cfgreq[VTY_MAXCFGCHANGES] = {0};
size_t indx;
int cnt;
- bool implicit_commit = false;
if (vty->type == VTY_FILE) {
/*
@@ -3702,7 +3701,6 @@ int vty_mgmt_send_config_data(struct vty *vty)
}
vty->mgmt_req_id++;
- implicit_commit = vty_needs_implicit_commit(vty);
if (cnt && mgmt_fe_send_setcfg_req(
mgmt_fe_client, vty->mgmt_session_id,
vty->mgmt_req_id, MGMTD_DS_CANDIDATE, cfgreq,