]> git.proxmox.com Git - mirror_frr.git/commit - lib/command.h
lib: correctly exit CLI nodes on file config load
authorDavid Lamparter <equinox@diac24.net>
Thu, 8 Apr 2021 11:35:09 +0000 (13:35 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 21 Apr 2021 14:25:38 +0000 (16:25 +0200)
commite3476061fe43394759668082509a2b15cf23a428
treec29b384d3d6b5a0895b28020890e969c7d30feed
parentdb2baed166581081db692fab0214752dbb121ed3
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>
lib/command.c
lib/command.h