All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] netns, make a verfication to name of virtul network interface card
@ 2015-07-08  9:20 Changsheng Liu
  2015-08-05 12:20 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Changsheng Liu @ 2015-07-08  9:20 UTC (permalink / raw)
  To: ltp-list; +Cc: wunan

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 <liuchangsheng@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] netns, make a verfication to name of virtul network interface card
  2015-07-08  9:20 [LTP] [PATCH] netns, make a verfication to name of virtul network interface card Changsheng Liu
@ 2015-08-05 12:20 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2015-08-05 12:20 UTC (permalink / raw)
  To: Changsheng Liu; +Cc: ltp-list, wunan

Hi!
> 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".

That looks suspicious, Alexey have you seen this?

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-05 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08  9:20 [LTP] [PATCH] netns, make a verfication to name of virtul network interface card Changsheng Liu
2015-08-05 12:20 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.