File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,16 @@ var _ = Describe("[sig-network][OCPFeatureGate:PersistentIPsForVirtualization][F
8585
8686 f .Namespace = ns
8787 netConfig .namespace = f .Namespace .Name
88- // correctCIDRFamily makes use of the ginkgo framework so it needs to be in the testcase
89- netConfig .cidr = correctCIDRFamily (oc , cidrIPv4 , cidrIPv6 )
88+
89+ // IPv6 only supported for primaries yet, the
90+ // kubevirt bridge binding dhcp server do not
91+ // support it.
92+ if netConfig .role == "primary" {
93+ // correctCIDRFamily makes use of the ginkgo framework so it needs to be in the testcase
94+ netConfig .cidr = correctCIDRFamily (oc , cidrIPv4 , cidrIPv6 )
95+ } else {
96+ netConfig .cidr = cidrIPv4
97+ }
9098 workerNodes , err := getWorkerNodesOrdered (cs )
9199 Expect (err ).NotTo (HaveOccurred ())
92100 Expect (len (workerNodes )).To (BeNumerically (">=" , 2 ))
@@ -113,6 +121,7 @@ var _ = Describe("[sig-network][OCPFeatureGate:PersistentIPsForVirtualization][F
113121 VMNamespace : f .Namespace .Name ,
114122 FedoraContainterDiskImage : image .LocationFor ("quay.io/kubevirt/fedora-with-test-tooling-container-disk:20241024_891122a6fc" ),
115123 }
124+
116125 if netConfig .role == "primary" {
117126 vmCreationParams .NetBindingName = bindingName
118127 } else {
You can’t perform that action at this time.
0 commit comments