]> git.proxmox.com Git - mirror_frr.git/commit
ripd: remove vty configuration lock
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 28 May 2018 13:18:37 +0000 (10:18 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 27 Oct 2018 18:16:12 +0000 (16:16 -0200)
commit1dde2fbf7893670c0b44abab261c74f4ef7636ae
tree0733f0d9c5260467f700b5775d10f2a49cc27c22
parentbc1bdde2f678b5ae21735461f724f1ed12da712e
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>
ripd/rip_main.c