selftests: net: vxlan: Fix selftest regression after changes in iproute2.
authorVladimir Nikishkin <vladimir@nikishkin.pw>
Thu, 8 Jun 2023 06:44:48 +0000 (14:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jun 2023 20:05:53 +0000 (21:05 +0100)
commit26a4dd839eeba3638df8441223903baa49c6f0da
treeed226cbcd40cbfc5f700f674f3ef49cea4afd3d0
parent3334129245a93142a509112b9947609c8051f733
selftests: net: vxlan: Fix selftest regression after changes in iproute2.

The iproute2 output that eventually landed upstream is different than
the one used in this test, resulting in failures. Fix by adjusting the
test to use iproute2's JSON output, which is more stable than regular
output.

Fixes: 305c04189997 ("selftests: net: vxlan: Add tests for vxlan nolocalbypass option.")
Signed-off-by: Vladimir Nikishkin <vladimir@nikishkin.pw>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/test_vxlan_nolocalbypass.sh