blob: d82819417bfddff9f9568a57186fb274bd04f7cc [file] [log] [blame]
khenaidooabad44c2018-08-03 16:58:35 -04001syntax = "proto3";
2
3import "google/protobuf/any.proto";
khenaidoob9203542018-09-17 22:56:37 -04004import "openflow_13.proto";
5import public "logical_device.proto";
6
khenaidooabad44c2018-08-03 16:58:35 -04007
8option go_package = "github.com/opencord/voltha-go/protos/core_adapter";
9
10package voltha;
11
12message StrType {
13 string val = 1;
14}
15
16message IntType {
17 int64 val = 1;
18}
19
20message BoolType {
21 bool val = 1;
22}
23
khenaidoob9203542018-09-17 22:56:37 -040024enum ErrorCode {
25 UNSUPPORTED_REQUEST = 0;
26 INVALID_PARAMETERS = 1;
27}
28
khenaidooabad44c2018-08-03 16:58:35 -040029message Error {
khenaidoob9203542018-09-17 22:56:37 -040030 ErrorCode code = 1;
31 string reason = 2;
khenaidooabad44c2018-08-03 16:58:35 -040032}
33
34enum MessageType {
35 REQUEST = 0;
36 RESPONSE = 1;
37}
38
39message Header {
40 string id = 1;
41 MessageType type = 2;
42 string from_topic = 3;
43 string to_topic = 4;
44 int64 timestamp = 5;
45}
46
47message Argument {
48 string key = 1;
49 google.protobuf.Any value = 2;
50}
51
52message InterContainerMessage {
53 Header header = 1;
54 google.protobuf.Any body = 2;
55}
56
57message InterContainerRequestBody {
58 string rpc = 2;
59 repeated Argument args = 3;
60 bool response_required = 4;
61 string reply_to_topic = 5;
62}
63
64message InterContainerResponseBody {
65 bool success = 1;
66 google.protobuf.Any result = 3;
67}
khenaidoob9203542018-09-17 22:56:37 -040068
69message SwitchCapability {
70 openflow_13.ofp_desc desc = 1;
71 openflow_13.ofp_switch_features switch_features = 2;
72}
73
74message PortCapability {
75 LogicalPort port = 1;
76}