From: noxiouz Date: Thu, 26 Feb 2026 03:31:24 +0000 (+0000) Subject: network: fix LLDP field type in Interface Varlink IDL X-Git-Tag: v260-rc2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d421c087035a6728421663f1b202e055dbb510b;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/varlink-io.systemd.Network.c b/src/shared/varlink-io.systemd.Network.c index c67b857f12d..9ae737714fb 100644 --- a/src/shared/varlink-io.systemd.Network.c +++ b/src/shared/varlink-io.systemd.Network.c @@ -532,8 +532,8 @@ static SD_VARLINK_DEFINE_STRUCT_TYPE( SD_VARLINK_DEFINE_FIELD(DHCPv4Client, SD_VARLINK_OBJECT, SD_VARLINK_NULLABLE), SD_VARLINK_FIELD_COMMENT("DHCPv6 client configuration and lease information"), SD_VARLINK_DEFINE_FIELD_BY_TYPE(DHCPv6Client, DHCPv6Client, SD_VARLINK_NULLABLE), - SD_VARLINK_FIELD_COMMENT("LLDP neighbors discovered on this interface"), - SD_VARLINK_DEFINE_FIELD_BY_TYPE(LLDP, LLDPNeighbor, SD_VARLINK_ARRAY|SD_VARLINK_NULLABLE)); + SD_VARLINK_FIELD_COMMENT("LLDP transmit configuration for this interface"), + SD_VARLINK_DEFINE_FIELD_BY_TYPE(LLDP, LLDPNeighbor, SD_VARLINK_NULLABLE)); static SD_VARLINK_DEFINE_METHOD( Describe,