google/dranet

Fix discovery of device, subsystem_vendor and subsystem_device

Open

#193 aperta il 15 ago 2025

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Go (26 fork)auto 404
help wanted

Metriche repository

Star
 (160 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor