The current ltp version get name of virtul network interface card with "veth62@veth63" in the newest kernel version, But we need a file name with "veth62".
Signed-off-by: Changsheng Liu <liuchangsh...@inspur.com> --- testcases/kernel/containers/netns/netns_paripv6.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/containers/netns/netns_paripv6.sh b/testcases/kernel/containers/netns/netns_paripv6.sh index 9f2270a..6d2f48d 100755 --- a/testcases/kernel/containers/netns/netns_paripv6.sh +++ b/testcases/kernel/containers/netns/netns_paripv6.sh @@ -47,8 +47,8 @@ status=0 echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/conf/$netdev/proxy_arp create_veth - vnet0=$dev0 - vnet1=$dev1 + vnet0=$(echo $dev0 | awk -F'@' '{ print $1}') + vnet1=$(echo $dev1 | awk -F'@' '{ print $1}') if [ -z "$vnet0" -o -z "$vnet1" ] ; then tst_resm TFAIL "Error: unable to create veth pair" exit 1 -- 1.9.1 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list