5 # see license for license details
8 import vstf.common.constants as cst
10 LOG = logging.getLogger(__name__)
13 def check_case_params(protocol, typ, tool):
14 if "throughput" == typ:
15 return False, "Not support 'throughput' at this version"
17 if tool in ["pktgen", "netmap"]:
18 return False, "%s cant support tcp test" % tool
19 if "qperf" == tool and "latency" != typ:
20 return False, "qperf support latency test only, cant support %s" % typ
21 if "latency" == typ and tool not in ["netperf", "qperf"]:
22 return False, "%s cant support latency test" % tool
23 return True, "support successfully"