Skip to content

Commit c5cd366

Browse files
committed
metal: network interface: bus, vendor and model info
1 parent 1ce24d2 commit c5cd366

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

metal/responses.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,12 @@ type NetInterfaceInfo struct {
212212
MAC string `json:"mac"` // The network's MAC address
213213
MTU uint16 `json:"mtu"` // The network's maximum transmission unit
214214
LinkSpeedMbs uint `json:"link_speed_Mbs"`
215-
Link bool `json:"link"`
215+
Link bool `json:"link"` // true when the link status is up
216+
VendorId string `json:"vendor_id"` // the link device Vendor ID (from e.g PCI info)
217+
DeviceId string `json:"device_id"` // the link device ID (from e.g PCI info)
218+
Vendor string `json:"vendor"` // the link device vendor (name)
219+
Device string `json:"device"` // the link device (name)
220+
BusInfo string `json:"bus_info"` // the link bus info/address (from e.g PCI info)
216221
}
217222

218223
// BcacheInfo is the information we can get for a single bcache device.

0 commit comments

Comments
 (0)