Skip to content

Commit f0ac431

Browse files
Merge pull request #29482 from trozet/fix_live_migration_again
SDN-4930: Fix live migration test detecting dualstack
2 parents e7f3f40 + c527ad7 commit f0ac431

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/extended/networking/livemigration.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ var _ = Describe("[sig-network][OCPFeatureGate:PersistentIPsForVirtualization][F
8989
Expect(err).NotTo(HaveOccurred())
9090
Expect(len(workerNodes)).To(BeNumerically(">=", 2))
9191

92-
isDualStack := getIPFamilyForCluster(f) == DualStack
92+
isDualStack := false
93+
if strings.Contains(netConfig.cidr, ",") {
94+
isDualStack = true
95+
}
9396

9497
provisionedNetConfig := createNetworkFn(netConfig)
9598

test/extended/networking/network_segmentation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,8 @@ func generateIPAMLifecycle(params *networkAttachmentConfigParams) string {
13641364
if !params.allowPersistentIPs {
13651365
return ""
13661366
}
1367-
return "ipamLifecycle: Persistent"
1367+
return `ipam:
1368+
lifecycle: Persistent`
13681369
}
13691370

13701371
func createManifest(namespace, manifest string) (func(), error) {

0 commit comments

Comments
 (0)