mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 10:14:50 +00:00
ripd: remove vty configuration lock
The vty configuration lock is used to prevent inconsistencies when multiple users are editing the configuration at the same time. The pointer stored in vty->index might become invalid if the associated configuration object is removed by another user in another CLI session. Commands converted to the new northbound model don't use vty->index, but vty->xpath_index and the vty->xpath array. The nb_cli_cfg_change() function uses the VTY_CHECK_XPATH macro to check if the configuration object being edited still exists and returns an error if it doesn't. Now that all ripd commands were converted to the new northbound model, remove the ripd vty lock because it's not necessary anymore. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
bc1bdde2f6
commit
1dde2fbf78
@ -165,6 +165,8 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
vty_config_lockless();
|
||||
|
||||
/* Prepare master thread. */
|
||||
master = frr_init();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user