Skip to content

Commit

Permalink
Merge pull request #199 from pliurh/test
Browse files Browse the repository at this point in the history
Choose supported NIC models for conformance test
  • Loading branch information
SchSeba authored Nov 2, 2021
2 parents 3dfb500 + 6e192b7 commit 26eef0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (n *EnabledNodes) FindSriovDevices(node string) ([]*sriovv1.InterfaceExt, e
func (n *EnabledNodes) FindOneVfioSriovDevice() (string, sriovv1.InterfaceExt) {
for _, node := range n.Nodes {
for _, nic := range n.States[node].Status.Interfaces {
if nic.Vendor == intelVendorID {
if nic.Vendor == intelVendorID && sriovv1.IsSupportedModel(nic.Vendor, nic.DeviceID) {
return node, nic
}
}
Expand All @@ -158,7 +158,7 @@ func (n *EnabledNodes) FindOneMellanoxSriovDevice(node string) (*sriovv1.Interfa
}

for _, itf := range s.Status.Interfaces {
if itf.Vendor == mlxVendorID {
if itf.Vendor == mlxVendorID && sriovv1.IsSupportedModel(itf.Vendor, itf.DeviceID) {
return &itf, nil
}
}
Expand Down

0 comments on commit 26eef0d

Please sign in to comment.