[LTP] [RFC PATCH v7 07/11] lib/test_net.sh: Add function reset_ltp_netspace()

Alexey Kodanev alexey.kodanev@oracle.com
Wed Jul 26 17:00:40 CEST 2017


On 26.07.2017 17:55, Petr Vorel wrote:
> Hi Alexey,
>
>>>  	pid="$(echo $(readlink /var/run/netns/ltp_ns) | cut -f3 -d'/')"
>>> -	export LTP_NETNS="${LTP_NETNS:-ns_exec $pid net,mnt}"
>>> +	export LTP_NETNS="ns_exec $pid net,mnt"
>> It is better to reset LTP_NETNS variable before calling
>> init_ltp_netspace in reset_ltp_netspace().
> OK, I'll do it :-). I wonder what is a real usage for LTP_NETNS configured by user...

e.g. to use 'ip' command instead.

Thanks,
Alexey

>
> Thanks for your review!
>
> Kind regards,
> Petr




More information about the ltp mailing list