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
Loading
Loading
Loading
Loading
+32 −2
Original line number Diff line number Diff line
@@ -18,6 +18,36 @@ package load_generator;
import "context.proto";

service LoadGeneratorService {
  rpc Start(context.Empty) returns (context.Empty) {}
  rpc Start    (Parameters   ) 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;
}