diff options
author | 2016-05-05 11:52:11 +0300 | |
---|---|---|
committer | 2016-05-18 19:20:22 +0300 | |
commit | 89d643b96d9a86345ef1de8e80c801d1863002e8 (patch) | |
tree | c777a0303eda44c4dd016ffc3c5dbe7050453e10 /src/rpc-server/commands | |
parent | a53f6be0617721b535086298095ad49057a7be69 (diff) |
Regression tests working. Still missing python API to parse latency json
Diffstat (limited to 'src/rpc-server/commands')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_stream.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp index d69b7d7f..736f3d02 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp @@ -115,8 +115,12 @@ TrexRpcCmdAddStream::_run(const Json::Value ¶ms, Json::Value &result) { } stream->m_rx_check.m_pg_id = parse_int(rx, "stream_id", result); - stream->m_rx_check.m_seq_enabled = parse_bool(rx, "seq_enabled", result); - stream->m_rx_check.m_latency = parse_bool(rx, "latency_enabled", result); + std::string type = parse_string(rx, "rule_type", result); + if (type == "latency") { + stream->m_rx_check.m_rule_type = TrexPlatformApi::IF_STAT_PAYLOAD; + } else { + stream->m_rx_check.m_rule_type = TrexPlatformApi::IF_STAT_IPV4_ID; + } } /* make sure this is a valid stream to add */ |