[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3f22af29-6bf9-58fc-9b4c-cc8696c3b163@gmail.com>
Date:   Wed, 17 Jan 2018 12:56:01 -0800
From:   David Ahern <dsahern@...il.com>
To:     Ido Schimmel <idosch@...lanox.com>, netdev@...r.kernel.org,
        linux-kselftest@...r.kernel.org
Cc:     davem@...emloft.net, shuah@...nel.org, nikolay@...ulusnetworks.com,
        roopa@...ulusnetworks.com, andy@...yhouse.net, jiri@...lanox.com,
        mlxsw@...lanox.com, saeedm@...lanox.com, tariqt@...lanox.com,
        jhs@...atatu.com, lucasb@...atatu.com, f.fainelli@...il.com,
        vivien.didelot@...oirfairelinux.com, andrew@...n.ch,
        jakub.kicinski@...ronome.com, simon.horman@...ronome.com
Subject: Re: [RFC PATCH net-next 01/12] selftests: forwarding: Add initial
 testing framework
On 1/15/18 11:18 AM, Ido Schimmel wrote:
> +### Tests ###
> +
> +ping_test()
> +{
> +	local vrf_name=$1
> +	local dip=$2
> +
> +	RET=0
> +
> +	ip vrf exec $vrf_name ping $dip -c 10 -i 0.1 -w 2 &> /dev/null
> +	check_err $?
> +	print_result "ping"
> +}
IPv6 addresses on debian need ping6:
root@...-2700-05:~/selftests# ip vrf exec vrf-h1 ping 2001:db8:2::2 -c
10 -i 0.1 -w 2
ping: unknown host 2001:db8:2::2
Powered by blists - more mailing lists