This repository was archived by the owner on May 6, 2026. It is now read-only.
Description We're looking for these files in the wrong location:
device , err = os .ReadFile (filepath .Join (sysdevPath , ifName , "device/device" ))
if err == nil {
subsystemVendor , err = os .ReadFile (filepath .Join (sysdevPath , ifName , "device/subsystem_vendor" ))
if err == nil {
subsystemDevice , _ = os .ReadFile (filepath .Join (sysdevPath , ifName , "device/subsystem_device" ))
}
}
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:
entry , err := pcidb .GetDevice (
strings .TrimPrefix (strings .TrimSpace (string (vendor )), "0x" ),
strings .TrimPrefix (strings .TrimSpace (string (device )), "0x" ),
strings .TrimPrefix (strings .TrimSpace (string (subsystemVendor )), "0x" ),
strings .TrimPrefix (strings .TrimSpace (string (subsystemDevice )), "0x" ),
)
Reactions are currently unavailable
We're looking for these files in the wrong location:
dranet/pkg/inventory/sysfs.go
Lines 185 to 191 in dfd866c
These files are located as
/sys/class/net/<INTERFACE_NAME>/device/and not at/sys/devices/<INTERFACE_NAME>/deviceAlso, it appears that correctly deriving these values causes some downstream issues where we fail to fetch the device from pcidb:
dranet/pkg/inventory/sysfs.go
Lines 194 to 199 in dfd866c