Skip to content

Commit a091f10

Browse files
committed
kv, e2e: Test nftables is blocking RAs
At VM startup the default gw should have only one path after the nftables change at the network namespace Signed-off-by: Enrique Llorente <[email protected]>
1 parent a1fdce2 commit a091f10

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/e2e/kubevirt.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,20 @@ runcmd:
16831683
nodeIPs := e2enode.CollectAddresses(nodes, v1.NodeInternalIP)
16841684

16851685
if td.role == "primary" {
1686+
if isIPv6Supported() && isInterconnectEnabled() {
1687+
step = by(vmi.Name, fmt.Sprintf("Checking IPv6 gateway before %s %s", td.resource.description, td.test.description))
1688+
1689+
nodeRunningVMI, err := fr.ClientSet.CoreV1().Nodes().Get(context.Background(), vmi.Status.NodeName, metav1.GetOptions{})
1690+
Expect(err).NotTo(HaveOccurred(), step)
1691+
1692+
expectedIPv6GatewayPath, err := kubevirt.GenerateGatewayIPv6RouterLLA(nodeRunningVMI, netConfig.networkName)
1693+
Expect(err).NotTo(HaveOccurred())
1694+
Eventually(kubevirt.RetrieveIPv6Gateways).
1695+
WithArguments(vmi).
1696+
WithTimeout(5*time.Second).
1697+
WithPolling(time.Second).
1698+
Should(Equal([]string{expectedIPv6GatewayPath}), "should filter remote ipv6 gateway nexthop")
1699+
}
16861700
step = by(vmi.Name, fmt.Sprintf("Check north/south traffic before %s %s", td.resource.description, td.test.description))
16871701
startNorthSouthIngressIperfTraffic(externalContainerName, nodeIPs, svc.Spec.Ports[0].NodePort, step)
16881702
checkNorthSouthIngressIperfTraffic(externalContainerName, nodeIPs, svc.Spec.Ports[0].NodePort, step)

0 commit comments

Comments
 (0)