mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
e2e sctp support for ipv6
This commit is contained in:
parent
e36e68f5f6
commit
3eeed2f7fe
@ -4001,6 +4001,9 @@ var _ = SIGDescribe("SCTP [Feature:SCTP] [LinuxOnly]", func() {
|
|||||||
|
|
||||||
ginkgo.By("dumping iptables rules on the node")
|
ginkgo.By("dumping iptables rules on the node")
|
||||||
cmd = "sudo iptables-save"
|
cmd = "sudo iptables-save"
|
||||||
|
if framework.TestContext.ClusterIsIPv6() {
|
||||||
|
cmd = "sudo ip6tables-save"
|
||||||
|
}
|
||||||
framework.Logf("Executing cmd %q on node %v", cmd, node.Name)
|
framework.Logf("Executing cmd %q on node %v", cmd, node.Name)
|
||||||
result, err := hostExec.IssueCommandWithResult(cmd, node)
|
result, err := hostExec.IssueCommandWithResult(cmd, node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -4061,6 +4064,9 @@ var _ = SIGDescribe("SCTP [Feature:SCTP] [LinuxOnly]", func() {
|
|||||||
node, err := e2enode.GetRandomReadySchedulableNode(cs)
|
node, err := e2enode.GetRandomReadySchedulableNode(cs)
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
cmd := "sudo iptables-save"
|
cmd := "sudo iptables-save"
|
||||||
|
if framework.TestContext.ClusterIsIPv6() {
|
||||||
|
cmd = "sudo ip6tables-save"
|
||||||
|
}
|
||||||
framework.Logf("Executing cmd %q on node %v", cmd, node.Name)
|
framework.Logf("Executing cmd %q on node %v", cmd, node.Name)
|
||||||
result, err := hostExec.IssueCommandWithResult(cmd, node)
|
result, err := hostExec.IssueCommandWithResult(cmd, node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user