Commit 5852fd07 authored by Petr Machata's avatar Petr Machata Committed by David S. Miller

selftests: forwarding: vxlan_bridge_1d: Add ping test

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: default avatarPetr Machata <petrm@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd64d5a2
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
export VXPORT export VXPORT
: ${ALL_TESTS:=" : ${ALL_TESTS:="
ping_ipv4
"} "}
NUM_NETIFS=6 NUM_NETIFS=6
...@@ -281,6 +282,13 @@ cleanup() ...@@ -281,6 +282,13 @@ cleanup()
vrf_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() test_all()
{ {
echo "Running tests with UDP port $VXPORT" echo "Running tests with UDP port $VXPORT"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment