Skip to content
Snippets Groups Projects
Commit d78a15f1 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Proto:

- implemented enhanced methods to control load generator form WebUI
parent 643ae39a
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!64Slice Grouping
...@@ -18,6 +18,36 @@ package load_generator; ...@@ -18,6 +18,36 @@ package load_generator;
import "context.proto"; import "context.proto";
service LoadGeneratorService { service LoadGeneratorService {
rpc Start(context.Empty) returns (context.Empty) {} rpc Start (Parameters ) returns (context.Empty) {}
rpc Stop (context.Empty) returns (context.Empty) {} rpc GetStatus(context.Empty) returns (Status ) {}
rpc Stop (context.Empty) returns (context.Empty) {}
}
enum RequestTypeEnum {
REQUESTTYPE_UNDEFINED = 0;
REQUESTTYPE_SERVICE_L2NM = 1;
REQUESTTYPE_SERVICE_L3NM = 2;
REQUESTTYPE_SERVICE_MW = 3;
REQUESTTYPE_SERVICE_TAPI = 4;
REQUESTTYPE_SLICE_L2NM = 5;
REQUESTTYPE_SLICE_L3NM = 6;
}
message Parameters {
uint64 num_requests = 1; // if == 0, generate infinite requests
repeated RequestTypeEnum request_types = 2;
float offered_load = 3;
float holding_time = 4;
float inter_arrival_time = 5;
bool do_teardown = 6;
bool dry_mode = 7;
bool record_to_dlt = 8;
string dlt_domain_id = 9;
}
message Status {
Parameters parameters = 1;
uint64 num_generated = 2;
bool infinite_loop = 3;
bool running = 4;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment