summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands/trex_rpc_cmd_test.cpp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-08-31 17:26:08 +0300
committerimarom <imarom@cisco.com>2015-08-31 17:26:08 +0300
commit40461a9752437ee541d797f76d2fba77cad9d0e2 (patch)
tree4ff731920ccd25a0fa5080a4553f0300d49db7a8 /src/rpc-server/commands/trex_rpc_cmd_test.cpp
parent499b4d6221c023d656663fe441bbf5d194886efb (diff)
...draft...
Diffstat (limited to 'src/rpc-server/commands/trex_rpc_cmd_test.cpp')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_test.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_test.cpp b/src/rpc-server/commands/trex_rpc_cmd_test.cpp
index 473cbb70..382279ba 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_test.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_test.cpp
@@ -35,8 +35,6 @@ TrexRpcCmdTestAdd::_run(const Json::Value &params, Json::Value &result) {
const Json::Value &x = params["x"];
const Json::Value &y = params["y"];
- check_param_count(params, 2, result);
-
result["result"] = parse_int(params, "x", result) + parse_int(params, "y", result);
return (TREX_RPC_CMD_OK);
@@ -53,8 +51,6 @@ TrexRpcCmdTestSub::_run(const Json::Value &params, Json::Value &result) {
const Json::Value &x = params["x"];
const Json::Value &y = params["y"];
- check_param_count(params, 2, result);
-
result["result"] = parse_int(params, "x", result) - parse_int(params, "y", result);
return (TREX_RPC_CMD_OK);
@@ -66,9 +62,6 @@ TrexRpcCmdTestSub::_run(const Json::Value &params, Json::Value &result) {
trex_rpc_cmd_rc_e
TrexRpcCmdPing::_run(const Json::Value &params, Json::Value &result) {
- /* validate count */
- check_param_count(params, 0, result);
-
result["result"] = "ACK";
return (TREX_RPC_CMD_OK);
}
@@ -80,9 +73,6 @@ trex_rpc_cmd_rc_e
TrexRpcCmdGetReg::_run(const Json::Value &params, Json::Value &result) {
vector<string> cmds;
- /* validate count */
- check_param_count(params, 0, result);
-
TrexRpcCommandsTable::get_instance().query(cmds);
Json::Value test = Json::arrayValue;