diff options
author | David Lamparter <equinox@diac24.net> | 2021-04-08 13:35:09 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-04-21 16:25:38 +0200 |
commit | e3476061fe43394759668082509a2b15cf23a428 (patch) | |
tree | c29b384d3d6b5a0895b28020890e969c7d30feed /lib/command.h | |
parent | lib: fix possible assert() fail in zlog_fd() (diff) | |
download | frr-e3476061fe43394759668082509a2b15cf23a428.tar.xz frr-e3476061fe43394759668082509a2b15cf23a428.zip |
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>
Diffstat (limited to 'lib/command.h')
-rw-r--r-- | lib/command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index 14e51486e..7e135dbcf 100644 --- a/lib/command.h +++ b/lib/command.h @@ -223,6 +223,7 @@ struct cmd_node { #define CMD_SUSPEND 12 #define CMD_WARNING_CONFIG_FAILED 13 #define CMD_NOT_MY_INSTANCE 14 +#define CMD_NO_LEVEL_UP 15 /* Argc max counts. */ #define CMD_ARGC_MAX 256 |