Add possibility to use other then default NIC per VPP patch 00/19900/2
authorJan Gelety <jgelety@cisco.com>
Thu, 30 May 2019 13:02:09 +0000 (15:02 +0200)
committerJan Gelety <jgelety@cisco.com>
Tue, 4 Jun 2019 08:03:37 +0000 (08:03 +0000)
Change-Id: I25e51022e0ec961fce444bc8f0f4413d0e95d7eb
Signed-off-by: Jan Gelety <jgelety@cisco.com>
resources/libraries/bash/function/common.sh

index 1a9089d..0daa1d3 100644 (file)
@@ -694,7 +694,11 @@ function select_tags () {
     if [[ "${TEST_CODE}" == "vpp-"* ]]; then
         # Automatic prefixing for VPP jobs to limit the NIC used and
         # traffic evaluation to MRR.
-        prefix="${prefix}mrrAND${DEFAULT_NIC}AND"
+        if [[ "${TEST_TAG_STRING-}" == *"nic_"* ]]; then
+            prefix="${prefix}mrrAND"
+        else
+            prefix="${prefix}mrrAND${DEFAULT_NIC}AND"
+        fi
     fi
     for tag in "${test_tag_array[@]}"; do
         if [[ "${tag}" == "!"* ]]; then

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.