Skip to content

Commit

Permalink
UDN: Use managedTap instead passt
Browse files Browse the repository at this point in the history
Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval committed Oct 14, 2024
1 parent 16a6a77 commit 03d7144
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions test/e2e/persistentips_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ var _ = DescribeTableSubtree("Persistent IPs", func(params testParams) {
testParams{
role: rolePrimary,
ipsFrom: defaultNetworkStatusAnnotationIPs,
vmi: vmiWithPasst,
vmi: vmiWithManagedTap,
}),
)

Expand Down Expand Up @@ -378,22 +378,15 @@ func vmiWithMultus(namespace string) *kubevirtv1.VirtualMachineInstance {
)
}

func vmiWithPasst(namespace string) *kubevirtv1.VirtualMachineInstance {
const (
interfaceName = "passtnet"
cloudInitNetworkData = `
version: 2
ethernets:
eth0:
dhcp4: true`
)
func vmiWithManagedTap(namespace string) *kubevirtv1.VirtualMachineInstance {
const interfaceName = "pod"
return testenv.NewVirtualMachineInstance(
namespace,
testenv.WithMemory("2048Mi"),
testenv.WithMemory("1024Mi"),
testenv.WithInterface(kubevirtv1.Interface{
Name: interfaceName,
Binding: &kubevirtv1.PluginBinding{
Name: "passt",
Name: "managedTap",
},
}),
testenv.WithNetwork(kubevirtv1.Network{
Expand All @@ -402,6 +395,5 @@ ethernets:
Pod: &kubevirtv1.PodNetwork{},
},
}),
testenv.WithCloudInitNoCloudVolume(cloudInitNetworkData),
)
}

0 comments on commit 03d7144

Please sign in to comment.