blob: 6b525cee8ff7c893b6267a93e2893ce7574068c1 [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001// Copyright (c) 2018 Open Networking Foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at:
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
William Kurkian7c151592019-03-27 09:36:15 -040016
Matteo Scandolob3c08ae2020-10-14 13:15:43 -070017option go_package = "github.com/opencord/voltha-protos/v4/go/openolt";
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030018option java_package = "org.opencord.voltha.openolt";
19option java_outer_classname = "VolthaOpenOLT";
William Kurkian7c151592019-03-27 09:36:15 -040020
Zack Williams52209662019-02-07 10:15:31 -070021package openolt;
22import "google/api/annotations.proto";
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -040023import public "voltha_protos/tech_profile.proto";
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -080024import public "voltha_protos/common.proto";
dpaul2b52e712020-06-23 13:02:28 +053025import "voltha_protos/ext_config.proto";
Zack Williams52209662019-02-07 10:15:31 -070026
27service Openolt {
28
29 rpc DisableOlt(Empty) returns (Empty) {
30 option (google.api.http) = {
31 post: "/v1/Disable"
32 body: "*"
33 };
34 }
35
36 rpc ReenableOlt(Empty) returns (Empty) {
37 option (google.api.http) = {
38 post: "/v1/Reenable"
39 body: "*"
40 };
41 }
42
43 rpc ActivateOnu(Onu) returns (Empty) {
44 option (google.api.http) = {
45 post: "/v1/EnableOnu"
46 body: "*"
47 };
48 }
49
50 rpc DeactivateOnu(Onu) returns (Empty) {
51 option (google.api.http) = {
52 post: "/v1/DisableOnu"
53 body: "*"
54 };
55 }
56
57 rpc DeleteOnu(Onu) returns (Empty) {
58 option (google.api.http) = {
59 post: "/v1/DeleteOnu"
60 body: "*"
61 };
62 }
63
64 rpc OmciMsgOut(OmciMsg) returns (Empty) {
65 option (google.api.http) = {
66 post: "/v1/OmciMsgOut"
67 body: "*"
68 };
69 }
70
71 rpc OnuPacketOut(OnuPacket) returns (Empty) {
72 option (google.api.http) = {
73 post: "/v1/OnuPacketOut"
74 body: "*"
75 };
76 }
77
78 rpc UplinkPacketOut(UplinkPacket) returns (Empty) {
79 option (google.api.http) = {
80 post: "/v1/UplinkPacketOut"
81 body: "*"
82 };
83 }
84
85 rpc FlowAdd(Flow) returns (Empty) {
86 option (google.api.http) = {
87 post: "/v1/FlowAdd"
88 body: "*"
89 };
90 }
91
92 rpc FlowRemove(Flow) returns (Empty) {
93 option (google.api.http) = {
94 post: "/v1/FlowRemove"
95 body: "*"
96 };
97 }
98
99 rpc HeartbeatCheck(Empty) returns (Heartbeat) {
100 option (google.api.http) = {
101 post: "/v1/HeartbeatCheck"
102 body: "*"
103 };
104 }
105
106 rpc EnablePonIf(Interface) returns (Empty) {
107 option (google.api.http) = {
108 post: "/v1/EnablePonIf"
109 body: "*"
110 };
111 }
112
113 rpc DisablePonIf(Interface) returns (Empty) {
114 option (google.api.http) = {
115 post: "/v1/DisablePonIf"
116 body: "*"
117 };
118 }
119
120 rpc GetDeviceInfo(Empty) returns (DeviceInfo) {
121 option (google.api.http) = {
122 post: "/v1/GetDeviceInfo"
123 body: "*"
124 };
125 }
126
127 rpc Reboot(Empty) returns (Empty) {
128 option (google.api.http) = {
129 post: "/v1/Reboot"
130 body: "*"
131 };
132 }
133
134 rpc CollectStatistics(Empty) returns (Empty) {
135 option (google.api.http) = {
136 post: "/v1/CollectStatistics"
137 body: "*"
138 };
139 }
140
Gamze Abaka66fe96f2020-12-17 13:27:27 +0000141 rpc GetOnuStatistics(Onu) returns (OnuStatistics) {
142 option (google.api.http) = {
143 post: "/v1/GetOnuStatistics"
144 body: "*"
145 };
146 }
147
148 rpc GetGemPortStatistics(OnuPacket) returns (GemPortStatistics) {
149 option (google.api.http) = {
150 post: "/v1/GetGemPortStatistics"
151 body: "*"
152 };
153 }
154
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400155 rpc CreateTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) {
Zack Williams52209662019-02-07 10:15:31 -0700156 option (google.api.http) = {
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400157 post: "/v1/CreateTrafficSchedulers"
Zack Williams52209662019-02-07 10:15:31 -0700158 body: "*"
159 };
160 }
161
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400162 rpc RemoveTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) {
Zack Williams52209662019-02-07 10:15:31 -0700163 option (google.api.http) = {
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400164 post: "/v1/RemoveTrafficSchedulers"
165 body: "*"
166 };
167 }
168
169 rpc CreateTrafficQueues(tech_profile.TrafficQueues) returns (Empty) {
170 option (google.api.http) = {
171 post: "/v1/CreateTrafficQueues"
172 body: "*"
173 };
174 }
175
176 rpc RemoveTrafficQueues(tech_profile.TrafficQueues) returns (Empty) {
177 option (google.api.http) = {
178 post: "/v1/RemoveTrafficQueues"
Zack Williams52209662019-02-07 10:15:31 -0700179 body: "*"
180 };
181 }
182
183 rpc EnableIndication(Empty) returns (stream Indication) {}
Burak Gurdag402dd952019-12-10 20:31:11 +0000184
185 rpc PerformGroupOperation(Group) returns (Empty) {
186 option (google.api.http) = {
187 post: "/v1/PerformGroupOperation"
188 body: "*"
189 };
190 }
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800191
Burak Gurdagaadbcc02020-05-18 14:22:38 +0000192 rpc DeleteGroup(Group) returns (Empty) {
193 option (google.api.http) = {
194 post: "/v1/DeleteGroup"
195 body: "*"
196 };
197 }
198
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800199 rpc GetExtValue(ValueParam) returns (common.ReturnValues) {
200 option (google.api.http) = {
201 post: "/v1/GetExtValue"
202 body: "*"
203 };
204 }
205
dpaul2b52e712020-06-23 13:02:28 +0530206 rpc OnuItuPonAlarmSet(config.OnuItuPonAlarm) returns (Empty) {
Jason Huang55ee29d2020-03-11 23:43:29 +0800207 option (google.api.http) = {
208 post: "/v1/OnuItuPonAlarmSet"
209 body: "*"
210 };
211 }
Jason Huang4f8a9372020-06-03 18:09:35 +0800212
213 rpc GetLogicalOnuDistanceZero(Onu) returns (OnuLogicalDistance) {
214 option (google.api.http) = {
215 post: "/v1/GetLogicalOnuDistanceZero"
216 body: "*"
217 };
218 }
219
220 rpc GetLogicalOnuDistance(Onu) returns (OnuLogicalDistance) {
221 option (google.api.http) = {
222 post: "/v1/GetLogicalOnuDistance"
223 body: "*"
224 };
225 }
Zack Williams52209662019-02-07 10:15:31 -0700226}
227
228message Indication {
229 oneof data {
230 OltIndication olt_ind = 1;
231 IntfIndication intf_ind = 2;
232 IntfOperIndication intf_oper_ind = 3;
233 OnuDiscIndication onu_disc_ind = 4;
234 OnuIndication onu_ind = 5;
235 OmciIndication omci_ind = 6;
236 PacketIndication pkt_ind = 7;
237 PortStatistics port_stats = 8;
238 FlowStatistics flow_stats = 9;
239 AlarmIndication alarm_ind= 10;
240 }
241}
242
243message AlarmIndication {
244 oneof data {
245 LosIndication los_ind = 1;
246 DyingGaspIndication dying_gasp_ind = 2;
247 OnuAlarmIndication onu_alarm_ind = 3;
248 OnuStartupFailureIndication onu_startup_fail_ind = 4;
249 OnuSignalDegradeIndication onu_signal_degrade_ind = 5;
250 OnuDriftOfWindowIndication onu_drift_of_window_ind = 6;
251 OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7;
252 OnuSignalsFailureIndication onu_signals_fail_ind = 8;
253 OnuTransmissionInterferenceWarning onu_tiwi_ind = 9;
254 OnuActivationFailureIndication onu_activation_fail_ind = 10;
255 OnuProcessingErrorIndication onu_processing_error_ind = 11;
Naga Manjunath0a734252019-11-21 19:00:23 +0530256 OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12;
257 OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13;
Devmalya Paulea6eb472020-02-04 20:41:01 -0500258 OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14;
Devmalya Paulb0c12472020-02-18 20:08:53 -0500259 OnuRemoteDefectIndication onu_remote_defect_ind = 15;
Devmalya Paul82957962020-03-01 18:49:37 -0500260 OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16;
261 OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17;
262 OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18;
Devmalya Paul342bf9d2020-03-19 02:42:56 -0400263 OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19;
Zack Williams52209662019-02-07 10:15:31 -0700264 }
265}
266
267message OltIndication {
268 string oper_state = 1; // up, down
269}
270
271message IntfIndication {
272 fixed32 intf_id = 1;
273 string oper_state = 2; // up, down
274}
275
276message OnuDiscIndication {
277 fixed32 intf_id = 1;
278 SerialNumber serial_number = 2;
279}
280
281message OnuIndication {
282 fixed32 intf_id = 1;
283 fixed32 onu_id = 2;
284 string oper_state = 3; // up, down
285 string admin_state = 5; // up, down
286 SerialNumber serial_number = 4;
kesavandd1a8bca2020-08-27 19:24:07 +0530287 /** activation fail reason. */
288 enum ActivationFailReason
289 {
290 ONU_ACTIVATION_FAIL_REASON_NONE = 0;
291 ONU_ACTIVATION_FAIL_REASON_RANGING = 1; //Ranging Failure
292 ONU_ACTIVATION_FAIL_REASON_PASSWORD_AUTHENTICATION = 2; //Password authentication
293 ONU_ACTIVATION_FAIL_REASON_LOS = 3; //LOS
294 ONU_ACTIVATION_FAIL_ONU_ALARM = 4; // ONU Alarm
295 ONU_ACTIVATION_FAIL_SWITCH_OVER = 5; //protection switch over
296 }
297 ActivationFailReason fail_reason = 6;
298
Zack Williams52209662019-02-07 10:15:31 -0700299}
300
301message IntfOperIndication {
302 string type = 1; // nni, pon
303 fixed32 intf_id = 2;
304 string oper_state = 3; // up, down
305}
306
307message OmciIndication {
308 fixed32 intf_id = 1;
309 fixed32 onu_id = 2;
310 bytes pkt = 3;
311}
312
313message PacketIndication {
314 string intf_type = 5; // nni, pon, unknown
315 fixed32 intf_id = 1;
316 fixed32 gemport_id = 2;
317 fixed32 flow_id = 3;
318 fixed32 port_no = 6;
319 fixed64 cookie = 7;
320 bytes pkt = 4;
321}
322
323message Interface {
324 fixed32 intf_id = 1;
325}
326
327message Heartbeat {
328 fixed32 heartbeat_signature = 1;
329}
330
331message Onu {
332 fixed32 intf_id = 1;
333 fixed32 onu_id = 2;
334 SerialNumber serial_number = 3;
335 fixed32 pir = 4; // peak information rate assigned to onu
kesavand66bade72020-08-05 06:16:34 +0200336 bool omcc_encryption = 5;
Zack Williams52209662019-02-07 10:15:31 -0700337}
338
Jason Huang4f8a9372020-06-03 18:09:35 +0800339message OnuLogicalDistance {
340 fixed32 intf_id = 1;
341 fixed32 onu_id = 2;
342 fixed32 logical_onu_distance_zero = 3; //0km logical distance
343 fixed32 logical_onu_distance = 4;
344}
345
Zack Williams52209662019-02-07 10:15:31 -0700346message OmciMsg {
347 fixed32 intf_id = 1;
348 fixed32 onu_id = 2;
349 bytes pkt = 3;
350}
351
352message OnuPacket {
353 fixed32 intf_id = 1;
354 fixed32 onu_id = 2;
355 fixed32 port_no = 4;
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400356 fixed32 gemport_id = 5;
Zack Williams52209662019-02-07 10:15:31 -0700357 bytes pkt = 3;
358}
359
360message UplinkPacket {
361 fixed32 intf_id = 1;
362 bytes pkt = 2;
363}
364
365message DeviceInfo {
366 string vendor = 1;
367 string model = 2;
368 string hardware_version = 3;
369 string firmware_version = 4;
370 string device_id = 16;
371 string device_serial_number = 17;
Gamze Abaka7a0d3942021-03-11 11:41:36 +0000372 bool previously_connected = 19; // used to indicate agent reconcile status
Zack Williams52209662019-02-07 10:15:31 -0700373
374 // Total number of pon intf ports on the device
375 fixed32 pon_ports = 12;
376
377 // If using global per-device technology profile. To be deprecated
378 string technology = 5;
379 fixed32 onu_id_start = 6;
380 fixed32 onu_id_end = 7;
381 fixed32 alloc_id_start = 8;
382 fixed32 alloc_id_end = 9;
383 fixed32 gemport_id_start = 10;
384 fixed32 gemport_id_end = 11;
385 fixed32 flow_id_start = 13;
386 fixed32 flow_id_end = 14;
387
388 message DeviceResourceRanges {
389
390 // List of 0 or more intf_ids that use the same technology and pools.
391 // If 0 intf_ids supplied, it implies ALL interfaces
392 repeated fixed32 intf_ids = 1;
393
394 // Technology profile for this pool
395 string technology = 2;
396
397 message Pool {
398 enum PoolType {
399 ONU_ID = 0;
400 ALLOC_ID = 1;
401 GEMPORT_ID = 2;
402 FLOW_ID = 3;
403 }
404
405 enum SharingType {
406 DEDICATED_PER_INTF = 0;
407 SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges
408 SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range
409 }
410
411 PoolType type = 1;
412 SharingType sharing = 2;
413 fixed32 start = 3; // lower bound on IDs allocated from this pool
414 fixed32 end = 4; // upper bound on IDs allocated from this pool
415 }
416 repeated Pool pools = 3;
417 }
418 repeated DeviceResourceRanges ranges = 15;
419}
420
421message Classifier {
422 fixed32 o_tpid = 1;
423 fixed32 o_vid = 2;
424 fixed32 i_tpid = 3;
425 fixed32 i_vid = 4;
426 fixed32 o_pbits = 5;
427 fixed32 i_pbits = 6;
428 fixed32 eth_type = 7;
429 bytes dst_mac = 8;
430 bytes src_mac = 9;
431 fixed32 ip_proto = 10;
432 fixed32 dst_ip = 11;
433 fixed32 src_ip = 12;
434 fixed32 src_port = 13;
435 fixed32 dst_port = 14;
436 string pkt_tag_type = 15; // untagged, single_tag, double_tag
437}
438
439message ActionCmd {
440 bool add_outer_tag = 1;
441 bool remove_outer_tag = 2;
442 bool trap_to_host = 3;
Burak Gurdag402dd952019-12-10 20:31:11 +0000443 bool remark_outer_pbits = 4;
444 bool remark_inner_pbits = 5;
445 bool add_inner_tag = 6;
446 bool remove_inner_tag = 7;
447 bool translate_inner_tag = 8;
448 bool translate_outer_tag = 9;
Zack Williams52209662019-02-07 10:15:31 -0700449}
450
451message Action {
452 ActionCmd cmd = 1;
453 fixed32 o_vid = 2;
454 fixed32 o_pbits = 3;
455 fixed32 o_tpid = 4;
456 fixed32 i_vid = 5;
457 fixed32 i_pbits = 6;
458 fixed32 i_tpid = 7;
459}
460
461message Flow {
462 sfixed32 access_intf_id = 1;
463 sfixed32 onu_id = 2;
464 sfixed32 uni_id = 11;
Girish Gowdrab152d9f2020-08-17 11:37:50 -0700465
466 fixed64 flow_id = 3; // voltha flow-id. 0 is not a valid flow_id
467 fixed64 symmetric_flow_id = 18; // symmetric voltha flow-id, if applicable. All data path flows generally have a symmetric flow,
468 // but trap-to-controller flows do not have a symmetric flow
469 // Broadcom BAL requires that symmetric flows use the same BAL flow-id
470
471 string flow_type = 4; // upstream, downstream, broadcast, multicast
Zack Williams52209662019-02-07 10:15:31 -0700472 sfixed32 alloc_id = 10;
473 sfixed32 network_intf_id = 5;
Girish Gowdrab152d9f2020-08-17 11:37:50 -0700474 sfixed32 gemport_id = 6; // When 'replicate_flow' field is true, this field is obsolete.
Zack Williams52209662019-02-07 10:15:31 -0700475 Classifier classifier = 7;
476 Action action = 8;
477 sfixed32 priority = 9;
478 fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication
479 fixed32 port_no = 13; // must be provided for any flow with trap_to_host action. Returned in PacketIndication
Burak Gurdag402dd952019-12-10 20:31:11 +0000480 fixed32 group_id = 14;
Burak Gurdagce064352020-04-20 20:11:18 +0000481 fixed32 tech_profile_id = 15;
Girish Gowdrab152d9f2020-08-17 11:37:50 -0700482
483 bool replicate_flow = 16; // When this field is true, use pbitToGemPortID to know which p-bit needs to be classfied to which gem port.
484 map<fixed32, fixed32> pbit_to_gemport = 17; // Map of p-bit to gem port ID
Gamze Abakad8caefa2021-02-26 10:31:15 +0000485 map<fixed32, bool> gemport_to_aes = 19; // Map of gem port ID to aes encryption
Zack Williams52209662019-02-07 10:15:31 -0700486}
487
488message SerialNumber {
489 bytes vendor_id = 1;
490 bytes vendor_specific = 2;
491}
492
493message PortStatistics {
494 fixed32 intf_id = 1;
495 fixed64 rx_bytes = 2;
496 fixed64 rx_packets = 3;
497 fixed64 rx_ucast_packets = 4;
498 fixed64 rx_mcast_packets = 5;
499 fixed64 rx_bcast_packets = 6;
500 fixed64 rx_error_packets = 7;
Jason Huangc9243f12020-10-21 17:56:05 +0800501 fixed64 rx_frames = 17;
502 fixed64 rx_frames_64 = 18;
503 fixed64 rx_frames_65_127 = 19;
504 fixed64 rx_frames_128_255 = 20;
505 fixed64 rx_frames_256_511 = 21;
506 fixed64 rx_frames_512_1023 = 22;
507 fixed64 rx_frames_1024_1518 = 23;
508 fixed64 rx_frames_1519_2047 = 24;
509 fixed64 rx_frames_2048_4095 = 25;
510 fixed64 rx_frames_4096_9216 = 26;
511 fixed64 rx_frames_9217_16383 = 27;
512 fixed64 rx_crc_errors = 14;
513
Zack Williams52209662019-02-07 10:15:31 -0700514 fixed64 tx_bytes = 8;
515 fixed64 tx_packets = 9;
516 fixed64 tx_ucast_packets = 10;
517 fixed64 tx_mcast_packets = 11;
518 fixed64 tx_bcast_packets = 12;
519 fixed64 tx_error_packets = 13;
Jason Huangc9243f12020-10-21 17:56:05 +0800520 fixed64 tx_frames = 28;
521 fixed64 tx_frames_64 = 29;
522 fixed64 tx_frames_65_127 = 30;
523 fixed64 tx_frames_128_255 = 31;
524 fixed64 tx_frames_256_511 = 32;
525 fixed64 tx_frames_512_1023 = 33;
526 fixed64 tx_frames_1024_1518 = 34;
527 fixed64 tx_frames_1519_2047 = 35;
528 fixed64 tx_frames_2048_4095 = 36;
529 fixed64 tx_frames_4096_9216 = 37;
530 fixed64 tx_frames_9217_16383 = 38;
531
Zack Williams52209662019-02-07 10:15:31 -0700532 fixed64 bip_errors = 15;
533 fixed32 timestamp = 16;
534}
535
Gamze Abaka66fe96f2020-12-17 13:27:27 +0000536message OnuStatistics {
537 fixed32 intf_id = 1;
538 fixed32 onu_id = 2;
539 fixed64 positive_drift = 3;
540 fixed64 negative_drift = 4;
541 fixed64 delimiter_miss_detection = 5;
542 fixed64 bip_errors = 6;
543 fixed64 bip_units = 7;
544 fixed64 fec_corrected_symbols = 8;
545 fixed64 fec_codewords_corrected = 9;
546 fixed64 fec_codewords_uncorrectable = 10;
547 fixed64 fec_codewords = 11;
548 fixed64 fec_corrected_units = 12;
549 fixed64 xgem_key_errors = 13;
550 fixed64 xgem_loss = 14;
551 fixed64 rx_ploams_error = 15;
552 fixed64 rx_ploams_non_idle = 16;
553 fixed64 rx_omci = 17;
554 fixed64 rx_omci_packets_crc_error = 18;
555 fixed64 rx_bytes = 19;
556 fixed64 rx_packets = 20;
557 fixed64 tx_bytes = 21;
558 fixed64 tx_packets = 22;
559 fixed64 ber_reported = 23;
560 fixed64 lcdg_errors = 24;
561 fixed64 rdi_errors = 25;
562 fixed32 timestamp = 26;
563}
564
565message GemPortStatistics {
566 fixed32 intf_id = 1;
567 fixed32 gemport_id = 2;
568 fixed64 rx_packets = 3;
569 fixed64 rx_bytes = 4;
570 fixed64 tx_packets = 5;
571 fixed64 tx_bytes = 6;
572 fixed32 timestamp = 26;
573}
574
Zack Williams52209662019-02-07 10:15:31 -0700575message FlowStatistics {
576 fixed32 flow_id = 1;
577 fixed64 rx_bytes = 2;
578 fixed64 rx_packets = 3;
579 fixed64 tx_bytes = 8;
580 fixed64 tx_packets = 9;
581 fixed32 timestamp = 16;
582}
583
584message LosIndication {
585 fixed32 intf_id = 1;
586 string status = 2;
587}
588
589message DyingGaspIndication {
590 fixed32 intf_id = 1;
591 fixed32 onu_id = 2;
592 string status = 3;
593}
594
595message OnuAlarmIndication {
596 fixed32 intf_id = 1;
597 fixed32 onu_id = 2;
598 string los_status = 3;
599 string lob_status = 4;
600 string lopc_miss_status = 5;
601 string lopc_mic_error_status = 6;
Naga Manjunath0a734252019-11-21 19:00:23 +0530602 string lofi_status = 7;
603 string loami_status = 8;
Zack Williams52209662019-02-07 10:15:31 -0700604}
605
606message OnuStartupFailureIndication {
607 fixed32 intf_id = 1;
608 fixed32 onu_id = 2;
609 string status = 3;
610}
611
612message OnuSignalDegradeIndication {
613 fixed32 intf_id = 1;
614 fixed32 onu_id = 2;
615 string status = 3;
616 fixed32 inverse_bit_error_rate = 4;
617}
618
619message OnuDriftOfWindowIndication {
620 fixed32 intf_id = 1;
621 fixed32 onu_id = 2;
622 string status = 3;
623 fixed32 drift = 4;
624 fixed32 new_eqd = 5;
625}
626
627message OnuLossOfOmciChannelIndication {
628 fixed32 intf_id = 1;
629 fixed32 onu_id = 2;
630 string status = 3;
631}
632
633message OnuSignalsFailureIndication {
634 fixed32 intf_id = 1;
635 fixed32 onu_id = 2;
636 string status = 3;
637 fixed32 inverse_bit_error_rate = 4;
638}
639
640message OnuTransmissionInterferenceWarning {
641 fixed32 intf_id = 1;
642 fixed32 onu_id = 2;
643 string status = 3;
644 fixed32 drift = 4;
645}
646
647message OnuActivationFailureIndication {
648 fixed32 intf_id = 1;
649 fixed32 onu_id = 2;
Naga Manjunath0a734252019-11-21 19:00:23 +0530650 fixed32 fail_reason = 3;
651}
652
653message OnuLossOfKeySyncFailureIndication {
654 fixed32 intf_id = 1;
655 fixed32 onu_id = 2;
656 string status = 3;
657}
658
Girish Gowdra5192ea82020-05-06 20:49:11 -0700659message RdiErrorIndication {
660 fixed64 rdi_error_count = 1; // RDI Error count
661 string status = 2; // on/off based on configured reporting condition
662}
663
Naga Manjunath0a734252019-11-21 19:00:23 +0530664message OnuItuPonStatsIndication{
665 fixed32 intf_id = 1;
666 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700667 oneof stats {
668 RdiErrorIndication rdi_error_ind = 3;
669 // add more here
670 }
Zack Williams52209662019-02-07 10:15:31 -0700671}
672
673message OnuProcessingErrorIndication {
674 fixed32 intf_id = 1;
675 fixed32 onu_id = 2;
676}
677
Devmalya Paulea6eb472020-02-04 20:41:01 -0500678message OnuDeactivationFailureIndication {
679 fixed32 intf_id = 1;
680 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700681 string status = 3;
Devmalya Paulea6eb472020-02-04 20:41:01 -0500682}
683
Jason Huang55ee29d2020-03-11 23:43:29 +0800684message OnuRemoteDefectIndication {
Devmalya Paulb0c12472020-02-18 20:08:53 -0500685 fixed32 intf_id = 1;
686 fixed32 onu_id = 2;
Jason Huang55ee29d2020-03-11 23:43:29 +0800687 fixed64 rdi_errors = 3;
Devmalya Paulb0c12472020-02-18 20:08:53 -0500688}
689
Devmalya Paul82957962020-03-01 18:49:37 -0500690message OnuLossOfGEMChannelDelineationIndication {
691 fixed32 intf_id = 1;
692 fixed32 onu_id = 2;
693 string status = 3;
694 fixed32 delineation_errors = 4;
695}
696
697message OnuPhysicalEquipmentErrorIndication {
698 fixed32 intf_id = 1;
699 fixed32 onu_id = 2;
700 string status = 3;
701}
702
703message OnuLossOfAcknowledgementIndication {
704 fixed32 intf_id = 1;
705 fixed32 onu_id = 2;
706 string status = 3;
707}
708
Devmalya Paul342bf9d2020-03-19 02:42:56 -0400709message OnuDifferentialReachExceededIndication {
710 fixed32 intf_id = 1;
711 fixed32 onu_id = 2;
712 string status = 3;
713 fixed32 distance = 4;
714}
715
Burak Gurdag402dd952019-12-10 20:31:11 +0000716message GroupMember {
717 enum InterfaceType {
718 PON = 0;
719 EPON_1G_PATH = 1;
720 EPON_10G_PATH = 2;
721 }
722 uint32 interface_id = 1;
723 InterfaceType interface_type = 2;
724 uint32 gem_port_id = 3;
725 uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic.
726 // This queue is attached to the default PON port scheduler.
727}
728
729message Group {
730 enum GroupMembersCommand {
731 ADD_MEMBERS = 0;
732 REMOVE_MEMBERS = 1;
733 SET_MEMBERS = 2;
734 }
735
736 uint32 group_id = 1;
737 GroupMembersCommand command = 2;
738 repeated GroupMember members = 3;
739 Action action = 4;
740}
741
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800742message ValueParam {
743 Onu onu = 1;
744 common.ValueType.Type value = 2;
745}
Burak Gurdag402dd952019-12-10 20:31:11 +0000746
Zack Williams52209662019-02-07 10:15:31 -0700747message Empty {}
Burak Gurdag402dd952019-12-10 20:31:11 +0000748