selftests: A few improvements to fib_nexthops.sh
authorDavid Ahern <dsahern@gmail.com>
Wed, 22 Apr 2020 23:08:22 +0000 (17:08 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 02:59:57 +0000 (19:59 -0700)
commit493f3cc7ee020a4c5da02f6502743d9ae7be50d6
tree238d3fd49ec19b69aefa62c2e1d200fc06921bea
parent250562aff7963bc7459edcc4cc7d0f803758caf2
selftests: A few improvements to fib_nexthops.sh

Add nodad when adding IPv6 addresses and remove the sleep.

A recent change to iproute2 moved the 'pref medium' to the prefix
(where it belongs). Change the expected route check to strip
'pref medium' to be compatible with old and new iproute2.

Add IPv4 runtime test with an IPv6 address as the gateway in
the default route.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh