Skip to content

Commit 540420e

Browse files
author
Frans Fürst
committed
16916 FIX ip_addresses_snmp: dropped parsed data leads to empty HW/SW inventory
CMK-33345 Change-Id: I38037c01ad26754a84a288a7d3cafd38fc560a1e
1 parent d3700a7 commit 540420e

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.werks/16916.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[//]: # (werk v3)
2+
# ip_addresses_snmp: dropped parsed data leads to empty HW/SW inventory
3+
4+
key | value
5+
---------- | ---
6+
date | 2026-04-09T05:40:20+00:00
7+
version | 2.5.0b4
8+
class | fix
9+
edition | community
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
`parse_ip_addresses()` used for SNMP based network topology features like host labels and network adapter and IP address inventory had been turned into a (single use) generator, resulting data not being propagated to the HW/SW inventory.
15+
16+
This change makes `parse_ip_addresses()` return a list and thus feeding the inventory functions again.

cmk/plugins/network/agent_based/ip_addresses_snmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def parse_ip_addresses(string_table: Sequence[StringByteTable]) -> Section:
174174
elif interface_ip.version == 6:
175175
adapter.inet6.append(interface_ip)
176176

177-
yield from result.values()
177+
return list(result.values())
178178

179179

180180
def host_labels_if_snmp(section: Section) -> HostLabelGenerator:

0 commit comments

Comments
 (0)