diff options
author | imarom <imarom@cisco.com> | 2015-09-17 16:27:47 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-09-17 16:27:47 +0300 |
commit | 96765d2bf2c416f652da904cf7524ff75b678aee (patch) | |
tree | adaffcbd4782207e03198814cd288b66b07d7b36 /src/rpc-server/trex_rpc_cmd_api.h | |
parent | 1e723ff84bb6cdf6dd3a58650af059b6814b5331 (diff) |
moved 'owning states' to port granularity instead of machine
Diffstat (limited to 'src/rpc-server/trex_rpc_cmd_api.h')
-rw-r--r-- | src/rpc-server/trex_rpc_cmd_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rpc-server/trex_rpc_cmd_api.h b/src/rpc-server/trex_rpc_cmd_api.h index cab50cfd..3c718eaa 100644 --- a/src/rpc-server/trex_rpc_cmd_api.h +++ b/src/rpc-server/trex_rpc_cmd_api.h @@ -125,6 +125,12 @@ protected: void verify_ownership(const Json::Value ¶ms, Json::Value &result); /** + * validate port id + * + */ + void validate_port_id(uint8_t port_id, Json::Value &result); + + /** * parse functions * */ @@ -146,6 +152,9 @@ protected: const Json::Value & parse_object(const Json::Value &parent, int index, Json::Value &result); const Json::Value & parse_array(const Json::Value &parent, int index, Json::Value &result); + /* shortcut for parsing port id */ + uint8_t parse_port(const Json::Value ¶ms, Json::Value &result); + /** * parse a field from choices * |