Skip to content

Commit

Permalink
ARP
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed Dec 3, 2024
1 parent c8afb97 commit ec1823f
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions test/conformance/tests/test_policy_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,13 @@ var _ = Describe("[sriov] operator", Ordered, func() {
})

Context("MTU", func() {
var intf *sriovv1.InterfaceExt

BeforeEach(func() {

var node string
resourceName := "mturesource"
var numVfs int
var intf *sriovv1.InterfaceExt
var err error

if discovery.Enabled() {
Expand Down Expand Up @@ -610,7 +611,7 @@ var _ = Describe("[sriov] operator", Ordered, func() {
},
Spec: sriovv1.SriovNetworkSpec{
ResourceName: resourceName,
IPAM: `{"type":"host-local","subnet":"10.10.10.0/24","rangeStart":"10.10.10.171","rangeEnd":"10.10.10.181","routes":[{"dst":"10.10.10.0/24"}],"gateway":"10.10.10.1"}`,
IPAM: `{"type":"host-local","subnet":"10.10.10.0/24","rangeStart":"10.10.10.171","rangeEnd":"10.10.10.181","routes":[{"dst":"10.10.10.0/24"}],"gateway":"0.0.0.0"}`,
NetworkNamespace: namespaces.Test,
LogLevel: "debug",
}}
Expand Down Expand Up @@ -703,7 +704,7 @@ var _ = Describe("[sriov] operator", Ordered, func() {
fmt.Println(stderr)
fmt.Println(err)

stdout, stderr, err = runCommandOnConfigDaemon(sriovInfos.Nodes[0], []string{"ip", "link"}...)
stdout, stderr, err = runCommandOnConfigDaemon(sriovInfos.Nodes[0], []string{"chroot", "/host", "ip", "link"}...)
fmt.Println(stdout)
fmt.Println(stderr)
fmt.Println(err)
Expand All @@ -718,6 +719,19 @@ var _ = Describe("[sriov] operator", Ordered, func() {
fmt.Println(stderr)
fmt.Println(err)

fmt.Println("ARP first")
stdout, stderr, err = pod.ExecCommand(clients, firstPod, []string{"cat", "/proc/net/arp"}...)
fmt.Println(stdout)
fmt.Println(stderr)
fmt.Println(err)

fmt.Println("ARP second")
stdout, stderr, err = pod.ExecCommand(clients, secondPod, []string{"cat", "/proc/net/arp"}...)
fmt.Println(stdout)
fmt.Println(stderr)
fmt.Println(err)


Check failure on line 734 in test/conformance/tests/test_policy_configuration.go

View workflow job for this annotation

GitHub Actions / Golangci-lint

File is not `gofmt`-ed with `-s` (gofmt)
pingCommand := []string{"ping", firstPodIPs[0], "-s", "8972", "-M", "do", "-c", "2"}
stdout, stderr, err = pod.ExecCommand(clients, secondPod, pingCommand...)
Expect(err).ToNot(HaveOccurred(), "Failed to ping first pod. cmd%v stdout[%s] stderr[%s]", pingCommand, stdout, stderr)
Expand Down

0 comments on commit ec1823f

Please sign in to comment.