mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 04:57:56 +00:00
Merge pull request #814 from marquiz/devel/network
source/network: ignore interface operational state
This commit is contained in:
commit
7c4a74f55b
1 changed files with 0 additions and 3 deletions
|
@ -70,9 +70,6 @@ func (s *networkSource) GetLabels() (source.FeatureLabels, error) {
|
||||||
|
|
||||||
for _, dev := range features.Instances[DeviceFeature].Elements {
|
for _, dev := range features.Instances[DeviceFeature].Elements {
|
||||||
attrs := dev.Attributes
|
attrs := dev.Attributes
|
||||||
if attrs["operstate"] != "up" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
for attr, feature := range map[string]string{
|
for attr, feature := range map[string]string{
|
||||||
"sriov_totalvfs": "sriov.capable",
|
"sriov_totalvfs": "sriov.capable",
|
||||||
"sriov_numvfs": "sriov.configured"} {
|
"sriov_numvfs": "sriov.configured"} {
|
||||||
|
|
Loading…
Add table
Reference in a new issue