summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/trex_rpc_cmd.cpp
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-01-05 15:24:33 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-01-05 15:24:33 +0200
commit349d47374639465d58bac37f6e93045a1f9bb718 (patch)
treeba493401f9892105e51d3a3a6f3f7b561e2987b8 /src/rpc-server/trex_rpc_cmd.cpp
parent823b8294539f2e55db09795a7fff03d7be6b6346 (diff)
parent857bdcf05a920b99e1cf180c700176b04801da00 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/rpc-server/trex_rpc_cmd.cpp')
-rw-r--r--src/rpc-server/trex_rpc_cmd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpc-server/trex_rpc_cmd.cpp b/src/rpc-server/trex_rpc_cmd.cpp
index b5dd121c..aea7980b 100644
--- a/src/rpc-server/trex_rpc_cmd.cpp
+++ b/src/rpc-server/trex_rpc_cmd.cpp
@@ -32,7 +32,7 @@ TrexRpcCommand::run(const Json::Value &params, Json::Value &result) {
check_param_count(params, m_param_count, result);
- if (m_needs_ownership) {
+ if (m_needs_ownership && !g_test_override_ownership) {
verify_ownership(params, result);
}
@@ -372,3 +372,7 @@ TrexRpcCommand::generate_execute_err(Json::Value &result, const std::string &msg
throw (TrexRpcCommandException(TREX_RPC_CMD_EXECUTE_ERR));
}
+/**
+ * by default this is off
+ */
+bool TrexRpcCommand::g_test_override_ownership = false;