diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2023-06-13 22:50:39 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-13 22:50:39 +0300 |
| commit | 2b21ec2c4983a3219881c3dd16b61ae9560e9b26 (patch) | |
| tree | e99a60f4d80922fb323b3ce336f10af79d68e93b /lib/vty.c | |
| parent | ea4c53412ef2957775b7739b46057aa3d2873352 (diff) | |
| parent | c9d153e5e9dc29459ec7d24640a817d3c6fcd222 (diff) | |
Merge pull request #13766 from LabNConsulting/chopps/mgmtd-cleanup
mgmtd cleanup/simplify some code
Diffstat (limited to 'lib/vty.c')
| -rw-r--r-- | lib/vty.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -3652,7 +3652,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]; @@ -3660,7 +3660,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) { /* @@ -3734,7 +3733,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, |
