mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-31 04:04:51 +00:00
Merge pull request #2044 from mfranczy/network-mtu
Discover MTU of physical and virtual network devices
This commit is contained in:
commit
3b5276dc66
2 changed files with 4 additions and 4 deletions
|
@ -974,10 +974,10 @@ The following features are available for matching:
|
|||
| | | **`hugepages-<page-size>`** | string | Total number of huge pages (e.g., `hugepages-1Gi=16`) |
|
||||
| **`network.device`** | instance | | | Physical (non-virtual) network interfaces present in the system |
|
||||
| | | **`name`** | string | Name of the network interface |
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs` |
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs`, `mtu` |
|
||||
| **`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`, `speed` |
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `mtu` |
|
||||
| **`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,10 +60,10 @@ var (
|
|||
|
||||
var (
|
||||
// devIfaceAttrs is the list of files under /sys/class/net/<iface> that we're reading
|
||||
devIfaceAttrs = []string{"operstate", "speed", "device/sriov_numvfs", "device/sriov_totalvfs"}
|
||||
devIfaceAttrs = []string{"operstate", "speed", "device/sriov_numvfs", "device/sriov_totalvfs", "mtu"}
|
||||
|
||||
// virtualIfaceAttrs is the list of files under /sys/class/net/<iface> that we're reading
|
||||
virtualIfaceAttrs = []string{"operstate", "speed"}
|
||||
virtualIfaceAttrs = []string{"operstate", "speed", "mtu"}
|
||||
)
|
||||
|
||||
// Name returns an identifier string for this feature source.
|
||||
|
|
Loading…
Add table
Reference in a new issue