mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 02:20:54 +00:00
Merge pull request #4506 from opensourcerouting/fix-outdated-candidate
lib: fix outdated candidate configuration issue
This commit is contained in:
commit
230113cf71
@ -1053,9 +1053,16 @@ static int cmd_execute_command_real(vector vline, enum cmd_filter_type filter,
|
||||
if (matched_element->daemon)
|
||||
ret = CMD_SUCCESS_DAEMON;
|
||||
else {
|
||||
/* Clear enqueued configuration changes. */
|
||||
vty->num_cfg_changes = 0;
|
||||
memset(&vty->cfg_changes, 0, sizeof(vty->cfg_changes));
|
||||
if (vty->config) {
|
||||
/* Clear array of enqueued configuration changes. */
|
||||
vty->num_cfg_changes = 0;
|
||||
memset(&vty->cfg_changes, 0, sizeof(vty->cfg_changes));
|
||||
|
||||
/* Regenerate candidate configuration. */
|
||||
if (frr_get_cli_mode() == FRR_CLI_CLASSIC)
|
||||
nb_config_replace(vty->candidate_config,
|
||||
running_config, true);
|
||||
}
|
||||
|
||||
ret = matched_element->func(matched_element, vty, argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user