Add some parameters while adding VxLAN virtual interfaces such as: l2miss, l3miss, norsc, nolearning, noproxy, ttl, tos, gbp.
Signed-off-by: Alexey Kodanev <alexey.koda...@oracle.com> --- testcases/network/virt/vxlan01.sh | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/testcases/network/virt/vxlan01.sh b/testcases/network/virt/vxlan01.sh index 6673d7e..63a52d0 100755 --- a/testcases/network/virt/vxlan01.sh +++ b/testcases/network/virt/vxlan01.sh @@ -24,11 +24,31 @@ TST_TOTAL=1 virt_type="vxlan" start_id=16700000 -virt_count=5000 . test_net.sh . virt_lib.sh -virt_multiple_add_test "group 239.1.1.1" +opts="l2miss l3miss,norsc nolearning noproxy,ttl 0x01 tos 0x01,ttl 0xff tos 0xff,gbp" + +start_id=1 +virt_count=1000 + +for n in $(seq 1 5); do + params="$(echo $opts | cut -d',' -f$n)" + + tst_resm TINFO "add $virt_type with '$params'" + + virt_add ltp_v0 id 0 $params > /dev/null 2>&1 + if [ $? -ne 0 ]; then + tst_resm TCONF "iproute or kernel doesn't support '$params'" + params="" + else + ROD_SILENT "ip li delete ltp_v0" + fi + + virt_multiple_add_test "$params" + + start_id=$(($start_id + $virt_count)) +done tst_exit -- 1.7.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