google/dranet

Fix discovery of device, subsystem_vendor and subsystem_device

Open

#193 创建于 2025年8月15日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (26 fork)auto 404
help wanted

仓库指标

Star
 (160 star)
PR 合并指标
 (PR 指标待抓取)

描述

We're looking for these files in the wrong location:

https://github.com/google/dranet/blob/dfd866c6bcb799ee52f5593641becd78fadfea5c/pkg/inventory/sysfs.go#L185-L191

These files are located as /sys/class/net/<INTERFACE_NAME>/device/ and not at /sys/devices/<INTERFACE_NAME>/device

Also, it appears that correctly deriving these values causes some downstream issues where we fail to fetch the device from pcidb:

https://github.com/google/dranet/blob/dfd866c6bcb799ee52f5593641becd78fadfea5c/pkg/inventory/sysfs.go#L194-L199

贡献者指南