From bd9065dfbcf480ae853842c658c569add3f62d3f Mon Sep 17 00:00:00 2001 From: Gaurav Ghildiyal Date: Thu, 25 Sep 2025 06:57:06 +0000 Subject: [PATCH] feat: Publish the complete Address (IP+Mask) for IPv4 and IPv6 addresses --- pkg/inventory/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/inventory/db.go b/pkg/inventory/db.go index 199fa2f0..810496be 100644 --- a/pkg/inventory/db.go +++ b/pkg/inventory/db.go @@ -305,9 +305,9 @@ func addLinkAttributes(device *resourceapi.Device, link netlink.Link) { } if address.IP.To4() == nil && address.IP.To16() != nil { - v6.Insert(address.IP.String()) + v6.Insert(address.IPNet.String()) } else if address.IP.To4() != nil { - v4.Insert(address.IP.String()) + v4.Insert(address.IPNet.String()) } } if v4.Len() > 0 {