Skip to content

Commit

Permalink
selftests: forwarding: vxlan_bridge_1d: Add ping test
Browse files Browse the repository at this point in the history
Test end-to-end reachability between local and remote endpoints.

Note that because learning is disabled on the VXLAN device, the ICMP
requests will end up being flooded to all remotes.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Petr Machata authored and David S. Miller committed Nov 20, 2018
1 parent fd64d5a commit 5852fd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
export VXPORT

: ${ALL_TESTS:="
ping_ipv4
"}

NUM_NETIFS=6
Expand Down Expand Up @@ -281,6 +282,13 @@ cleanup()
vrf_cleanup
}

ping_ipv4()
{
ping_test $h1 192.0.2.2 ": local->local"
ping_test $h1 192.0.2.3 ": local->remote 1"
ping_test $h1 192.0.2.4 ": local->remote 2"
}

test_all()
{
echo "Running tests with UDP port $VXPORT"
Expand Down

0 comments on commit 5852fd0

Please sign in to comment.