VxLAN test networks with the same multicast group might overlap with each other because the test has static VxLAN IP addresses and VNI.
Signed-off-by: Alexey Kodanev <alexey.koda...@oracle.com> --- testcases/network/vxlan/vxlan_lib.sh | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/testcases/network/vxlan/vxlan_lib.sh b/testcases/network/vxlan/vxlan_lib.sh index e8970a9..c374b43 100644 --- a/testcases/network/vxlan/vxlan_lib.sh +++ b/testcases/network/vxlan/vxlan_lib.sh @@ -142,8 +142,17 @@ vxlan_setup_subnet_uni() vxlan_setup_subnet_multi() { + tst_check_cmds "od" + local b1=$(($(od -An -d -N1 /dev/urandom) % 254 + 1)) + local b2=$(($(od -An -d -N1 /dev/urandom) % 254 + 1)) + local b3=$(($(od -An -d -N1 /dev/urandom) % 254 + 1)) + local opt= - [ "$TST_IPV6" ] && opt="group ff05::111" || opt="group 239.1.1.1" + if [ "$TST_IPV6" ]; then + opt="group ff05::$(printf '%x:%x%x' $b1 $b2 $b3)" + else + opt="group 239.$b1.$b2.$b3" + fi tst_resm TINFO "setup VxLANv$ipver with multicast address: '$opt'" -- 1.7.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list