Skip to content

Commit

Permalink
add link state enable on test
Browse files Browse the repository at this point in the history
if we run on a system where the PF is not connected to the network
we can still use it for tests but we need the link state to not be
auto.

Signed-off-by: Sebastian Sch <[email protected]>
  • Loading branch information
SchSeba committed Dec 24, 2024
1 parent eb2fa5f commit d7d2e57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/conformance/tests/test_policy_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,11 @@ var _ = Describe("[sriov] operator", Ordered, func() {
NetworkNamespace: namespaces.Test,
}}

// for real BM env we enable link state
if !cluster.VirtualCluster() {
sriovNetwork.Spec.LinkState = "enable"
}

// We need this to be able to run the connectivity checks on Mellanox cards
if intf.DeviceID == "1015" {
sriovNetwork.Spec.SpoofChk = off
Expand Down

0 comments on commit d7d2e57

Please sign in to comment.