Skip to content

Commit

Permalink
Merge pull request #2034 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1856-to-release-0.16

[release-0.16] source/network: Ignore bonding_masters interface during scanning
  • Loading branch information
k8s-ci-robot authored Jan 29, 2025
2 parents 372aff5 + eb6ac23 commit eaa6284
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"fmt"
"os"
"path/filepath"
"slices"
"strconv"
"strings"
"syscall"
Expand Down Expand Up @@ -129,6 +130,10 @@ func detectNetDevices() ([]nfdv1alpha1.InstanceFeature, []nfdv1alpha1.InstanceFe
return nil, nil, fmt.Errorf("failed to list network interfaces: %w", err)
}

ifaces = slices.DeleteFunc(ifaces, func(iface os.DirEntry) bool {
return iface.Name() == "bonding_masters"
})

// Iterate over devices
devIfacesinfo := make([]nfdv1alpha1.InstanceFeature, 0, len(ifaces))
virtualIfacesinfo := make([]nfdv1alpha1.InstanceFeature, 0, len(ifaces))
Expand Down

0 comments on commit eaa6284

Please # to comment.