diff options
| author | Christian Hopps <chopps@labn.net> | 2023-06-09 16:52:56 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-06-12 07:22:30 -0400 |
| commit | 70ff6bb80bf43e55171f328c96f0e45c634a4e1f (patch) | |
| tree | f4229d3e733c7ca24dcc23d6c8bbecc339464a20 /mgmtd/mgmt_vty.c | |
| parent | 3895ea777b05c05d8b20d7eb8e3b3033c02c991e (diff) | |
lib: mgmtd: simplify implicit commit code
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_vty.c')
| -rw-r--r-- | mgmtd/mgmt_vty.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mgmtd/mgmt_vty.c b/mgmtd/mgmt_vty.c index 93c5145d71..6a6f32353d 100644 --- a/mgmtd/mgmt_vty.c +++ b/mgmtd/mgmt_vty.c @@ -157,9 +157,7 @@ DEFPY(mgmt_set_config_data, mgmt_set_config_data_cmd, vty->cfg_changes[0].operation = NB_OP_CREATE; vty->num_cfg_changes = 1; - vty->no_implicit_commit = true; - vty_mgmt_send_config_data(vty); - vty->no_implicit_commit = false; + vty_mgmt_send_config_data(vty, false); return CMD_SUCCESS; } @@ -176,9 +174,7 @@ DEFPY(mgmt_delete_config_data, mgmt_delete_config_data_cmd, vty->cfg_changes[0].operation = NB_OP_DESTROY; vty->num_cfg_changes = 1; - vty->no_implicit_commit = true; - vty_mgmt_send_config_data(vty); - vty->no_implicit_commit = false; + vty_mgmt_send_config_data(vty, false); return CMD_SUCCESS; } |
