Newer
Older
import "google/protobuf/empty.proto";
option go_package = "gitlab.fbi.h-da.de/cocsn/gosdn";
option java_multiple_files = true;
option java_package = "de.h-da.fbi.gosdn.cliInterface";
option java_outer_classname = "cliInterface";
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {}
// Shutdown goSDN
rpc Shutdown (ShutdownRequest) returns (ShutdownReply) {}
// creates a stream to receive goSDN logs
rpc CreateLogStream(google.protobuf.Empty) returns (stream LogReply) {}
// By now solely TAPI specific calls can be issued from the grpc-cli
// TAPIGetEdge
rpc TAPIGetEdge (TAPIRequest) returns (TAPIReply) {}
//TAPIGetEdgeNode
rpc TAPIGetEdgeNode (TAPIRequest) returns (TAPIReply) {}
// TAPIGetLink
rpc TAPIGetLink (TAPIRequest) returns (TAPIReply) {}
// CreatePND
rpc CreatePND (PNDRequest) returns (PNDReply) {}
}
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings
message HelloReply {
string message = 1;
// Request to shutdown goSDN
message ShutdownRequest {
string name = 1;
}
// The response message containing some shutdown notes of goSDN
message ShutdownReply {
string message = 1;
}
// Request with no meaning by now
message TAPIRequest {
string name = 1;
}
// The response message containing a string with no meaning by now
message TAPIReply {
string message = 1;
}
//
message PNDRequest {
string name = 1;
string description = 2;
string sbi = 3;
}
//
message PNDReply {
string message = 1;
}
// The response message containing a string with a goSDN log
message LogReply {
string log = 1;
}