blob: 5896f137b031bd15f39a80b6a27a8178dbcf949c [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
William Kurkiandaa6bb22019-03-07 12:26:28 -05008option go_package = "github.com/opencord/voltha-protos/go/inter_container";
khenaidooabad44c2018-08-03 16:58:35 -04009
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
khenaidoofdbad6e2018-11-06 22:26:38 -050024message Packet {
25 bytes payload = 1;
26}
27
28message ErrorCode {
29 enum codes {
khenaidoob9203542018-09-17 22:56:37 -040030 UNSUPPORTED_REQUEST = 0;
31 INVALID_PARAMETERS = 1;
khenaidoofdbad6e2018-11-06 22:26:38 -050032 }
khenaidoob9203542018-09-17 22:56:37 -040033}
34
khenaidooabad44c2018-08-03 16:58:35 -040035message Error {
khenaidoob9203542018-09-17 22:56:37 -040036 ErrorCode code = 1;
37 string reason = 2;
khenaidooabad44c2018-08-03 16:58:35 -040038}
39
40enum MessageType {
41 REQUEST = 0;
42 RESPONSE = 1;
khenaidoo79232702018-12-04 11:00:41 -050043 DEVICE_DISCOVERED=2;
khenaidooabad44c2018-08-03 16:58:35 -040044}
45
46message Header {
47 string id = 1;
48 MessageType type = 2;
49 string from_topic = 3;
50 string to_topic = 4;
William Kurkiandaa6bb22019-03-07 12:26:28 -050051 int64 timestamp = 5;
khenaidooabad44c2018-08-03 16:58:35 -040052}
53
54message Argument {
55 string key = 1;
56 google.protobuf.Any value = 2;
57}
58
59message InterContainerMessage {
60 Header header = 1;
61 google.protobuf.Any body = 2;
62}
63
64message InterContainerRequestBody {
65 string rpc = 2;
66 repeated Argument args = 3;
67 bool response_required = 4;
68 string reply_to_topic = 5;
69}
70
71message InterContainerResponseBody {
72 bool success = 1;
73 google.protobuf.Any result = 3;
74}
khenaidoob9203542018-09-17 22:56:37 -040075
76message SwitchCapability {
77 openflow_13.ofp_desc desc = 1;
78 openflow_13.ofp_switch_features switch_features = 2;
79}
80
81message PortCapability {
82 LogicalPort port = 1;
khenaidoo6fdf0ba2018-11-02 14:38:33 -040083}
84
khenaidoo79232702018-12-04 11:00:41 -050085message DeviceDiscovered {
86 string id = 1;
87 string parent_id = 2;
88 string device_type = 3;
khenaidoo19374072018-12-11 11:05:15 -050089 string publisher = 4;
khenaidoo79232702018-12-04 11:00:41 -050090}
91
khenaidoo6fdf0ba2018-11-02 14:38:33 -040092message InterAdapterMessageType {
93 enum Types {
94 FLOW_REQUEST = 0;
95 FLOW_RESPONSE = 1;
96 OMCI_REQUEST = 2;
97 OMCI_RESPONSE = 3;
98 METRICS_REQUEST = 4;
99 METRICS_RESPONSE = 5;
100 }
101}
102
103message InterAdapterHeader {
104 string id = 1;
105 InterAdapterMessageType.Types type = 2;
106 string from_topic = 3;
107 string to_topic = 4;
108 string to_device_id = 5;
109 string proxy_device_id = 6;
110 int64 timestamp = 7;
111}
112
113message InterAdapterResponseBody {
khenaidoo91ecfd62018-11-04 17:13:42 -0500114 bool status = 1;
115 google.protobuf.Any body = 2;
khenaidoo6fdf0ba2018-11-02 14:38:33 -0400116}
117
118message InterAdapterMessage {
119 InterAdapterHeader header = 1;
120 google.protobuf.Any body = 2;
khenaidoob9203542018-09-17 22:56:37 -0400121}