Re: [Discuss] Seeking advice on net selftests netns naming method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 15, 2023 at 10:10:38AM +0100, Paolo Abeni wrote:
> > Thanks, this is a good idea. I reviewed all the test cases and it should works
> > for most of them. Only the SRv6 tests are a little complex as they use 2 id
> > number for netns name. e.g. the setup_hs() in
> > srv6_end_dt46_l3vpn_test.sh. I plan to add the tmp string between the hs/rt and
> > ids. e.g. hs-xxxxxx-t100-1, rt-xxxxxx-1. I will have a try first.
> 
> Supposing netns_init() creates a namespace named <unique>, I think the
> following (very hackish thing) would work:
> 
> # create an alias for the namespace
> ln -s /var/run/netns/<unique> /var/run/netns/hs-t${tid}-${hs}

We can't do this as the purpose of using "unique" namespace name is do
Parallel testing. If we create the soft link and run multi SRv6 tests (there
are multi SRv6 tests with same netns name) at the same time, the naming will
be conflict.

Thanks
Hangbin




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux