]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix LLDP field type in Interface Varlink IDL
authornoxiouz <atiurin@proton.me>
Thu, 26 Feb 2026 03:31:24 +0000 (03:31 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Mar 2026 23:04:50 +0000 (00:04 +0100)
commit8d421c087035a6728421663f1b202e055dbb510b
treea212315485af84950fe0216d233c50953e5841cf
parent864c08f5758ff8376bf5a59d84790135fcce51aa
network: fix LLDP field type in Interface Varlink IDL

sd_lldp_tx_describe() returns a single object (the LLDP TX configuration),
but the IDL declared LLDP as SD_VARLINK_ARRAY|SD_VARLINK_NULLABLE. This
caused server-side validation failures ("Field 'LLDP' should be an array,
but it is of type 'object'") whenever networkctl status was called on an
interface with LLDP TX active.

Also fix the field comment: the LLDP field represents the transmit
configuration, not received neighbors.

Follow-up for dd2934d44e2c9cd1a92ae0fd6806985c4bc031e6.
src/shared/varlink-io.systemd.Network.c