summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-02-23 11:23:38 -0500
committerYaroslav Brustinov <ybrustin@cisco.com>2016-02-23 11:23:38 -0500
commit275a53b9cc7ce4effc5d450861b390ec618a310e (patch)
treeac800fee256a28ee9a843b48fffc274b2ed6fb83 /src
parent301d6ca6e36efdc5a1534615d57f3527560befad (diff)
parent0e70a929c610f07cda2271313cb5f4c1bac4f148 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_stream.cpp7
-rw-r--r--src/rpc-server/commands/trex_rpc_cmds.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
index 50295c7c..d08c79b5 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
@@ -588,8 +588,6 @@ TrexRpcCmdGetAllStreams::_run(const Json::Value &params, Json::Value &result) {
uint8_t port_id = parse_port(params, result);
TrexStatelessPort *port = get_stateless_obj()->get_port_by_id(port_id);
- bool get_pkt = parse_bool(params, "get_pkt", result);
-
std::vector <TrexStream *> streams;
port->get_object_list(streams);
@@ -598,11 +596,6 @@ TrexRpcCmdGetAllStreams::_run(const Json::Value &params, Json::Value &result) {
Json::Value j = stream->get_stream_json();
- /* should we include the packet as well ? */
- if (!get_pkt) {
- j.removeMember("packet");
- }
-
std::stringstream ss;
ss << stream->m_stream_id;
diff --git a/src/rpc-server/commands/trex_rpc_cmds.h b/src/rpc-server/commands/trex_rpc_cmds.h
index d90d880e..9545e585 100644
--- a/src/rpc-server/commands/trex_rpc_cmds.h
+++ b/src/rpc-server/commands/trex_rpc_cmds.h
@@ -107,7 +107,7 @@ void parse_vm_instr_write_mask_flow_var(const Json::Value &inst, std::unique_ptr
TREX_RPC_CMD_DEFINE(TrexRpcCmdGetStreamList, "get_stream_list", 1, false);
-TREX_RPC_CMD_DEFINE(TrexRpcCmdGetAllStreams, "get_all_streams", 2, false);
+TREX_RPC_CMD_DEFINE(TrexRpcCmdGetAllStreams, "get_all_streams", 1, false);
TREX_RPC_CMD_DEFINE(TrexRpcCmdGetStream, "get_stream", 3, false);