From d7d2e577caad3133c3ca128b52393c8a7e5722d7 Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Mon, 23 Dec 2024 20:32:30 +0200 Subject: [PATCH] add link state enable on test 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 --- test/conformance/tests/test_policy_configuration.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/conformance/tests/test_policy_configuration.go b/test/conformance/tests/test_policy_configuration.go index 35a079ff2..6d5d8b259 100644 --- a/test/conformance/tests/test_policy_configuration.go +++ b/test/conformance/tests/test_policy_configuration.go @@ -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