Open corubba opened 7 months ago
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose
label in order to avoid having this issue closed.
This issue will be automatically closed in the specified period unless there is further activity.
Issue still reproducible on Debian "bookworm" 12.6 (Kernel 6.1.0-23-amd64), with both FRR 9.1.1 and 10.0.1 from the FRR debian mirror.
This issue will no longer be automatically closed.
Also not available in 10.1.1, nor on master@HEAD as of 20 Sep 2024, on any version. Not even the official Docker images.
It looks to me like the command isn't defined for vtysh
at all; there's no trace of it in vtysh.c
. EXTLOG_NODE
is defined, DEFPY_NOSH
for the node is in zlog_5424_cli.c
, but there's no EXTLOG_NODE
in vtysh.c
.
Describe the bug
PR #8458 added the "Extended Logging Target", which can be used for logging to syslog and/or journald among other things. As the doc for the
log syslog
option states the "Extended Logging Target" is the recommended way for logging to syslog. I was however unable to get it to work on a fresh Debian 12 installation, neither with the packages provided in the FRR Debian repo nor with self-built ones. The only configuration I changed after installing the package isfrr.conf
to the following:Starting FRR using the systemd service unit results in the following log output in journald. Note the
Unknown command
lines.These
log extended
commands are also not available when starting an interactive vtysh.I read the developer documentation and did some debugging, but couldn't figure out why this isn't working. clippy does find/show it as
log extended-syslog
, which is expected because that's what the sourcecode defines. The command matcher should still be able to correctly match it because it is still unambigious, but it doesn't. The inconsistency between doc and source exists already in the original PR. The commands are also missing from the command graph, which might indicate they are not properly registered/installed.At least I could confirm that the described upgrade to native journald using
log stdout
is working.To Reproduce
frr.conf
to include alog extended
command, like the doc suggestExpected behavior
FRR should start, and properly read and apply the "Extended Logging Target" configuration.
Versions
9.0.1-0~deb12u1
,9.1-0~deb12u1
,9.2~dev-1
built from9d8fd14b