diff options
author | Christian Hopps <chopps@labn.net> | 2023-06-09 22:52:56 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2023-06-12 13:22:30 +0200 |
commit | 70ff6bb80bf43e55171f328c96f0e45c634a4e1f (patch) | |
tree | f4229d3e733c7ca24dcc23d6c8bbecc339464a20 /lib/vty.c | |
parent | Merge pull request #13762 from anlancs/doc/pthread-typo (diff) | |
download | frr-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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, |