]> git.puffer.fish Git - mirror/frr.git/commit
lib: correctly exit CLI nodes on file config load 8580/head
authorDavid Lamparter <equinox@diac24.net>
Thu, 8 Apr 2021 11:35:09 +0000 (13:35 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 27 Apr 2021 20:13:25 +0000 (22:13 +0200)
commitc17df894531e740262dc65d3c1dabb40d9c4fd29
tree8d8b76247207e06146f89de0e6bd762cbc023f9b
parent84e12ac55a6049cf08ef2f9a5527737424fe1c6a
lib: correctly exit CLI nodes on file config load

The (legacy) code for reading split configs tries to execute config
commands in parent nodes, but doesn't call the node_exit function when
it goes up to a parent node.  This breaks BGP RPKI setup (and extended
syslog, which is in the next commit.)

Doing this correctly is a slight bit involved since the node_exit
callbacks should only be called if the command is actually executed on a
parent node.

Signed-off-by: David Lamparter <equinox@diac24.net>
(cherry picked from commit e3476061fe43394759668082509a2b15cf23a428)
lib/command.c
lib/command.h