mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
source/network: discover speed of virtual network interfaces
This commit is contained in:
parent
b3919f3e0d
commit
887f208f5d
2 changed files with 2 additions and 2 deletions
|
@ -968,7 +968,7 @@ The following features are available for matching:
|
|||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs` |
|
||||
| **`network.virtual`** | instance | | | Virtual network interfaces present in the system |
|
||||
| | | **`name`** | string | Name of the network interface |
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate` |
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed` |
|
||||
| **`pci.device`** | instance | | | PCI devices present in the system |
|
||||
| | | **`<sysfs-attribute>`** | string | Value of the sysfs device attribute, available attributes: `class`, `vendor`, `device`, `subsystem_vendor`, `subsystem_device`, `sriov_totalvfs`, `iommu_group/type`, `iommu/intel-iommu/version` |
|
||||
| **`storage.block`** | instance | | | Block storage devices present in the system |
|
||||
|
|
|
@ -60,7 +60,7 @@ var (
|
|||
devIfaceAttrs = []string{"operstate", "speed", "device/sriov_numvfs", "device/sriov_totalvfs"}
|
||||
|
||||
// virtualIfaceAttrs is the list of files under /sys/class/net/<iface> that we're reading
|
||||
virtualIfaceAttrs = []string{"operstate"}
|
||||
virtualIfaceAttrs = []string{"operstate", "speed"}
|
||||
)
|
||||
|
||||
// Name returns an identifier string for this feature source.
|
||||
|
|
Loading…
Reference in a new issue