blob: d2d9b23254908def80c41c4673dcca7a41fc8986 [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
khenaidoo5fc5cea2021-08-11 17:39:16 -040017option go_package = "github.com/opencord/voltha-protos/v5/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";
khenaidoo4c6543e2021-10-19 17:25:58 -040023import "voltha_protos/tech_profile.proto";
dpaul2b52e712020-06-23 13:02:28 +053024import "voltha_protos/ext_config.proto";
khenaidoo4c6543e2021-10-19 17:25:58 -040025import "voltha_protos/extensions.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
khenaidoo4c6543e2021-10-19 17:25:58 -0400199 rpc GetExtValue(ValueParam) returns (extension.ReturnValues) {
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800200 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 }
Orhan Kupusogluda19b452021-05-12 12:19:16 +0000226
227 rpc GetPonRxPower(Onu) returns (PonRxPowerData) {
228 option (google.api.http) = {
229 post: "/v1/GetPonRxPower"
230 body: "*"
231 };
232 }
Zack Williams52209662019-02-07 10:15:31 -0700233}
234
235message Indication {
236 oneof data {
237 OltIndication olt_ind = 1;
238 IntfIndication intf_ind = 2;
239 IntfOperIndication intf_oper_ind = 3;
240 OnuDiscIndication onu_disc_ind = 4;
241 OnuIndication onu_ind = 5;
242 OmciIndication omci_ind = 6;
243 PacketIndication pkt_ind = 7;
244 PortStatistics port_stats = 8;
245 FlowStatistics flow_stats = 9;
246 AlarmIndication alarm_ind= 10;
247 }
248}
249
250message AlarmIndication {
251 oneof data {
252 LosIndication los_ind = 1;
253 DyingGaspIndication dying_gasp_ind = 2;
254 OnuAlarmIndication onu_alarm_ind = 3;
255 OnuStartupFailureIndication onu_startup_fail_ind = 4;
256 OnuSignalDegradeIndication onu_signal_degrade_ind = 5;
257 OnuDriftOfWindowIndication onu_drift_of_window_ind = 6;
258 OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7;
259 OnuSignalsFailureIndication onu_signals_fail_ind = 8;
260 OnuTransmissionInterferenceWarning onu_tiwi_ind = 9;
261 OnuActivationFailureIndication onu_activation_fail_ind = 10;
262 OnuProcessingErrorIndication onu_processing_error_ind = 11;
Naga Manjunath0a734252019-11-21 19:00:23 +0530263 OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12;
264 OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13;
Devmalya Paulea6eb472020-02-04 20:41:01 -0500265 OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14;
Devmalya Paulb0c12472020-02-18 20:08:53 -0500266 OnuRemoteDefectIndication onu_remote_defect_ind = 15;
Devmalya Paul82957962020-03-01 18:49:37 -0500267 OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16;
268 OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17;
269 OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18;
Devmalya Paul342bf9d2020-03-19 02:42:56 -0400270 OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19;
Zack Williams52209662019-02-07 10:15:31 -0700271 }
272}
273
274message OltIndication {
275 string oper_state = 1; // up, down
276}
277
278message IntfIndication {
279 fixed32 intf_id = 1;
280 string oper_state = 2; // up, down
281}
282
283message OnuDiscIndication {
284 fixed32 intf_id = 1;
285 SerialNumber serial_number = 2;
286}
287
288message OnuIndication {
289 fixed32 intf_id = 1;
290 fixed32 onu_id = 2;
291 string oper_state = 3; // up, down
292 string admin_state = 5; // up, down
293 SerialNumber serial_number = 4;
kesavandd1a8bca2020-08-27 19:24:07 +0530294 /** activation fail reason. */
295 enum ActivationFailReason
296 {
297 ONU_ACTIVATION_FAIL_REASON_NONE = 0;
298 ONU_ACTIVATION_FAIL_REASON_RANGING = 1; //Ranging Failure
299 ONU_ACTIVATION_FAIL_REASON_PASSWORD_AUTHENTICATION = 2; //Password authentication
300 ONU_ACTIVATION_FAIL_REASON_LOS = 3; //LOS
301 ONU_ACTIVATION_FAIL_ONU_ALARM = 4; // ONU Alarm
302 ONU_ACTIVATION_FAIL_SWITCH_OVER = 5; //protection switch over
303 }
304 ActivationFailReason fail_reason = 6;
305
Zack Williams52209662019-02-07 10:15:31 -0700306}
307
308message IntfOperIndication {
309 string type = 1; // nni, pon
310 fixed32 intf_id = 2;
311 string oper_state = 3; // up, down
Elia Battiston345a5b72022-02-01 10:17:56 +0100312 fixed32 speed = 4; // measured in Mbps
Zack Williams52209662019-02-07 10:15:31 -0700313}
314
315message OmciIndication {
316 fixed32 intf_id = 1;
317 fixed32 onu_id = 2;
318 bytes pkt = 3;
319}
320
321message PacketIndication {
322 string intf_type = 5; // nni, pon, unknown
323 fixed32 intf_id = 1;
Girish Gowdra31a356c2021-05-14 15:56:04 -0700324 fixed32 onu_id = 8;
325 fixed32 uni_id = 9;
Zack Williams52209662019-02-07 10:15:31 -0700326 fixed32 gemport_id = 2;
327 fixed32 flow_id = 3;
328 fixed32 port_no = 6;
329 fixed64 cookie = 7;
330 bytes pkt = 4;
331}
332
333message Interface {
334 fixed32 intf_id = 1;
335}
336
337message Heartbeat {
338 fixed32 heartbeat_signature = 1;
339}
340
341message Onu {
342 fixed32 intf_id = 1;
343 fixed32 onu_id = 2;
344 SerialNumber serial_number = 3;
345 fixed32 pir = 4; // peak information rate assigned to onu
kesavand66bade72020-08-05 06:16:34 +0200346 bool omcc_encryption = 5;
Zack Williams52209662019-02-07 10:15:31 -0700347}
348
Jason Huang4f8a9372020-06-03 18:09:35 +0800349message OnuLogicalDistance {
350 fixed32 intf_id = 1;
351 fixed32 onu_id = 2;
352 fixed32 logical_onu_distance_zero = 3; //0km logical distance
353 fixed32 logical_onu_distance = 4;
354}
355
Zack Williams52209662019-02-07 10:15:31 -0700356message OmciMsg {
357 fixed32 intf_id = 1;
358 fixed32 onu_id = 2;
359 bytes pkt = 3;
360}
361
362message OnuPacket {
363 fixed32 intf_id = 1;
364 fixed32 onu_id = 2;
365 fixed32 port_no = 4;
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400366 fixed32 gemport_id = 5;
Zack Williams52209662019-02-07 10:15:31 -0700367 bytes pkt = 3;
368}
369
370message UplinkPacket {
371 fixed32 intf_id = 1;
372 bytes pkt = 2;
373}
374
375message DeviceInfo {
376 string vendor = 1;
377 string model = 2;
378 string hardware_version = 3;
379 string firmware_version = 4;
380 string device_id = 16;
381 string device_serial_number = 17;
Gamze Abaka7a0d3942021-03-11 11:41:36 +0000382 bool previously_connected = 19; // used to indicate agent reconcile status
Zack Williams52209662019-02-07 10:15:31 -0700383
384 // Total number of pon intf ports on the device
385 fixed32 pon_ports = 12;
386
Elia Battiston3e451982022-02-23 09:43:26 +0100387 reserved 5 to 11, 13, 14;
388 // Not used anymore, this information is defined per-range only
389 // and is fully provided by DeviceResourceRanges
390 //
391 // string technology = 5;
392 // fixed32 onu_id_start = 6;
393 // fixed32 onu_id_end = 7;
394 // fixed32 alloc_id_start = 8;
395 // fixed32 alloc_id_end = 9;
396 // fixed32 gemport_id_start = 10;
397 // fixed32 gemport_id_end = 11;
398 // fixed32 flow_id_start = 13;
399 // fixed32 flow_id_end = 14;
Zack Williams52209662019-02-07 10:15:31 -0700400
401 message DeviceResourceRanges {
402
403 // List of 0 or more intf_ids that use the same technology and pools.
404 // If 0 intf_ids supplied, it implies ALL interfaces
405 repeated fixed32 intf_ids = 1;
406
407 // Technology profile for this pool
408 string technology = 2;
409
410 message Pool {
411 enum PoolType {
412 ONU_ID = 0;
413 ALLOC_ID = 1;
414 GEMPORT_ID = 2;
415 FLOW_ID = 3;
416 }
417
418 enum SharingType {
419 DEDICATED_PER_INTF = 0;
420 SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges
421 SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range
422 }
423
424 PoolType type = 1;
425 SharingType sharing = 2;
426 fixed32 start = 3; // lower bound on IDs allocated from this pool
427 fixed32 end = 4; // upper bound on IDs allocated from this pool
428 }
429 repeated Pool pools = 3;
430 }
431 repeated DeviceResourceRanges ranges = 15;
432}
433
434message Classifier {
435 fixed32 o_tpid = 1;
436 fixed32 o_vid = 2;
437 fixed32 i_tpid = 3;
438 fixed32 i_vid = 4;
439 fixed32 o_pbits = 5;
440 fixed32 i_pbits = 6;
441 fixed32 eth_type = 7;
442 bytes dst_mac = 8;
443 bytes src_mac = 9;
444 fixed32 ip_proto = 10;
445 fixed32 dst_ip = 11;
446 fixed32 src_ip = 12;
447 fixed32 src_port = 13;
448 fixed32 dst_port = 14;
449 string pkt_tag_type = 15; // untagged, single_tag, double_tag
450}
451
452message ActionCmd {
453 bool add_outer_tag = 1;
454 bool remove_outer_tag = 2;
455 bool trap_to_host = 3;
Burak Gurdag402dd952019-12-10 20:31:11 +0000456 bool remark_outer_pbits = 4;
457 bool remark_inner_pbits = 5;
458 bool add_inner_tag = 6;
459 bool remove_inner_tag = 7;
460 bool translate_inner_tag = 8;
461 bool translate_outer_tag = 9;
Zack Williams52209662019-02-07 10:15:31 -0700462}
463
464message Action {
465 ActionCmd cmd = 1;
466 fixed32 o_vid = 2;
467 fixed32 o_pbits = 3;
468 fixed32 o_tpid = 4;
469 fixed32 i_vid = 5;
470 fixed32 i_pbits = 6;
471 fixed32 i_tpid = 7;
472}
473
474message Flow {
475 sfixed32 access_intf_id = 1;
476 sfixed32 onu_id = 2;
477 sfixed32 uni_id = 11;
Girish Gowdrab152d9f2020-08-17 11:37:50 -0700478
479 fixed64 flow_id = 3; // voltha flow-id. 0 is not a valid flow_id
480 fixed64 symmetric_flow_id = 18; // symmetric voltha flow-id, if applicable. All data path flows generally have a symmetric flow,
481 // but trap-to-controller flows do not have a symmetric flow
482 // Broadcom BAL requires that symmetric flows use the same BAL flow-id
483
484 string flow_type = 4; // upstream, downstream, broadcast, multicast
Zack Williams52209662019-02-07 10:15:31 -0700485 sfixed32 alloc_id = 10;
486 sfixed32 network_intf_id = 5;
Girish Gowdrab152d9f2020-08-17 11:37:50 -0700487 sfixed32 gemport_id = 6; // When 'replicate_flow' field is true, this field is obsolete.
Zack Williams52209662019-02-07 10:15:31 -0700488 Classifier classifier = 7;
489 Action action = 8;
490 sfixed32 priority = 9;
491 fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication
492 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 +0000493 fixed32 group_id = 14;
Burak Gurdagce064352020-04-20 20:11:18 +0000494 fixed32 tech_profile_id = 15;
Girish Gowdrab152d9f2020-08-17 11:37:50 -0700495
496 bool replicate_flow = 16; // When this field is true, use pbitToGemPortID to know which p-bit needs to be classfied to which gem port.
497 map<fixed32, fixed32> pbit_to_gemport = 17; // Map of p-bit to gem port ID
Gamze Abakad8caefa2021-02-26 10:31:15 +0000498 map<fixed32, bool> gemport_to_aes = 19; // Map of gem port ID to aes encryption
Zack Williams52209662019-02-07 10:15:31 -0700499}
500
501message SerialNumber {
502 bytes vendor_id = 1;
503 bytes vendor_specific = 2;
504}
505
506message PortStatistics {
507 fixed32 intf_id = 1;
508 fixed64 rx_bytes = 2;
509 fixed64 rx_packets = 3;
510 fixed64 rx_ucast_packets = 4;
511 fixed64 rx_mcast_packets = 5;
512 fixed64 rx_bcast_packets = 6;
513 fixed64 rx_error_packets = 7;
Jason Huangc9243f12020-10-21 17:56:05 +0800514 fixed64 rx_frames = 17;
515 fixed64 rx_frames_64 = 18;
516 fixed64 rx_frames_65_127 = 19;
517 fixed64 rx_frames_128_255 = 20;
518 fixed64 rx_frames_256_511 = 21;
519 fixed64 rx_frames_512_1023 = 22;
520 fixed64 rx_frames_1024_1518 = 23;
521 fixed64 rx_frames_1519_2047 = 24;
522 fixed64 rx_frames_2048_4095 = 25;
523 fixed64 rx_frames_4096_9216 = 26;
524 fixed64 rx_frames_9217_16383 = 27;
525 fixed64 rx_crc_errors = 14;
526
Zack Williams52209662019-02-07 10:15:31 -0700527 fixed64 tx_bytes = 8;
528 fixed64 tx_packets = 9;
529 fixed64 tx_ucast_packets = 10;
530 fixed64 tx_mcast_packets = 11;
531 fixed64 tx_bcast_packets = 12;
532 fixed64 tx_error_packets = 13;
Jason Huangc9243f12020-10-21 17:56:05 +0800533 fixed64 tx_frames = 28;
534 fixed64 tx_frames_64 = 29;
535 fixed64 tx_frames_65_127 = 30;
536 fixed64 tx_frames_128_255 = 31;
537 fixed64 tx_frames_256_511 = 32;
538 fixed64 tx_frames_512_1023 = 33;
539 fixed64 tx_frames_1024_1518 = 34;
540 fixed64 tx_frames_1519_2047 = 35;
541 fixed64 tx_frames_2048_4095 = 36;
542 fixed64 tx_frames_4096_9216 = 37;
543 fixed64 tx_frames_9217_16383 = 38;
544
Zack Williams52209662019-02-07 10:15:31 -0700545 fixed64 bip_errors = 15;
546 fixed32 timestamp = 16;
547}
548
Gamze Abaka66fe96f2020-12-17 13:27:27 +0000549message OnuStatistics {
550 fixed32 intf_id = 1;
551 fixed32 onu_id = 2;
552 fixed64 positive_drift = 3;
553 fixed64 negative_drift = 4;
554 fixed64 delimiter_miss_detection = 5;
555 fixed64 bip_errors = 6;
556 fixed64 bip_units = 7;
557 fixed64 fec_corrected_symbols = 8;
558 fixed64 fec_codewords_corrected = 9;
559 fixed64 fec_codewords_uncorrectable = 10;
560 fixed64 fec_codewords = 11;
561 fixed64 fec_corrected_units = 12;
562 fixed64 xgem_key_errors = 13;
563 fixed64 xgem_loss = 14;
564 fixed64 rx_ploams_error = 15;
565 fixed64 rx_ploams_non_idle = 16;
566 fixed64 rx_omci = 17;
567 fixed64 rx_omci_packets_crc_error = 18;
568 fixed64 rx_bytes = 19;
569 fixed64 rx_packets = 20;
570 fixed64 tx_bytes = 21;
571 fixed64 tx_packets = 22;
572 fixed64 ber_reported = 23;
573 fixed64 lcdg_errors = 24;
574 fixed64 rdi_errors = 25;
575 fixed32 timestamp = 26;
576}
577
578message GemPortStatistics {
579 fixed32 intf_id = 1;
580 fixed32 gemport_id = 2;
581 fixed64 rx_packets = 3;
582 fixed64 rx_bytes = 4;
583 fixed64 tx_packets = 5;
584 fixed64 tx_bytes = 6;
585 fixed32 timestamp = 26;
586}
587
Zack Williams52209662019-02-07 10:15:31 -0700588message FlowStatistics {
589 fixed32 flow_id = 1;
590 fixed64 rx_bytes = 2;
591 fixed64 rx_packets = 3;
592 fixed64 tx_bytes = 8;
593 fixed64 tx_packets = 9;
594 fixed32 timestamp = 16;
595}
596
597message LosIndication {
598 fixed32 intf_id = 1;
599 string status = 2;
600}
601
602message DyingGaspIndication {
603 fixed32 intf_id = 1;
604 fixed32 onu_id = 2;
605 string status = 3;
606}
607
608message OnuAlarmIndication {
609 fixed32 intf_id = 1;
610 fixed32 onu_id = 2;
611 string los_status = 3;
612 string lob_status = 4;
613 string lopc_miss_status = 5;
614 string lopc_mic_error_status = 6;
Naga Manjunath0a734252019-11-21 19:00:23 +0530615 string lofi_status = 7;
616 string loami_status = 8;
Zack Williams52209662019-02-07 10:15:31 -0700617}
618
619message OnuStartupFailureIndication {
620 fixed32 intf_id = 1;
621 fixed32 onu_id = 2;
622 string status = 3;
623}
624
625message OnuSignalDegradeIndication {
626 fixed32 intf_id = 1;
627 fixed32 onu_id = 2;
628 string status = 3;
629 fixed32 inverse_bit_error_rate = 4;
630}
631
632message OnuDriftOfWindowIndication {
633 fixed32 intf_id = 1;
634 fixed32 onu_id = 2;
635 string status = 3;
636 fixed32 drift = 4;
637 fixed32 new_eqd = 5;
638}
639
640message OnuLossOfOmciChannelIndication {
641 fixed32 intf_id = 1;
642 fixed32 onu_id = 2;
643 string status = 3;
644}
645
646message OnuSignalsFailureIndication {
647 fixed32 intf_id = 1;
648 fixed32 onu_id = 2;
649 string status = 3;
650 fixed32 inverse_bit_error_rate = 4;
651}
652
653message OnuTransmissionInterferenceWarning {
654 fixed32 intf_id = 1;
655 fixed32 onu_id = 2;
656 string status = 3;
657 fixed32 drift = 4;
658}
659
660message OnuActivationFailureIndication {
661 fixed32 intf_id = 1;
662 fixed32 onu_id = 2;
Naga Manjunath0a734252019-11-21 19:00:23 +0530663 fixed32 fail_reason = 3;
664}
665
666message OnuLossOfKeySyncFailureIndication {
667 fixed32 intf_id = 1;
668 fixed32 onu_id = 2;
669 string status = 3;
670}
671
Girish Gowdra5192ea82020-05-06 20:49:11 -0700672message RdiErrorIndication {
673 fixed64 rdi_error_count = 1; // RDI Error count
674 string status = 2; // on/off based on configured reporting condition
675}
676
Naga Manjunath0a734252019-11-21 19:00:23 +0530677message OnuItuPonStatsIndication{
678 fixed32 intf_id = 1;
679 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700680 oneof stats {
681 RdiErrorIndication rdi_error_ind = 3;
682 // add more here
683 }
Zack Williams52209662019-02-07 10:15:31 -0700684}
685
686message OnuProcessingErrorIndication {
687 fixed32 intf_id = 1;
688 fixed32 onu_id = 2;
689}
690
Devmalya Paulea6eb472020-02-04 20:41:01 -0500691message OnuDeactivationFailureIndication {
692 fixed32 intf_id = 1;
693 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700694 string status = 3;
Devmalya Paulea6eb472020-02-04 20:41:01 -0500695}
696
Jason Huang55ee29d2020-03-11 23:43:29 +0800697message OnuRemoteDefectIndication {
Devmalya Paulb0c12472020-02-18 20:08:53 -0500698 fixed32 intf_id = 1;
699 fixed32 onu_id = 2;
Jason Huang55ee29d2020-03-11 23:43:29 +0800700 fixed64 rdi_errors = 3;
Devmalya Paulb0c12472020-02-18 20:08:53 -0500701}
702
Devmalya Paul82957962020-03-01 18:49:37 -0500703message OnuLossOfGEMChannelDelineationIndication {
704 fixed32 intf_id = 1;
705 fixed32 onu_id = 2;
706 string status = 3;
707 fixed32 delineation_errors = 4;
708}
709
710message OnuPhysicalEquipmentErrorIndication {
711 fixed32 intf_id = 1;
712 fixed32 onu_id = 2;
713 string status = 3;
714}
715
716message OnuLossOfAcknowledgementIndication {
717 fixed32 intf_id = 1;
718 fixed32 onu_id = 2;
719 string status = 3;
720}
721
Devmalya Paul342bf9d2020-03-19 02:42:56 -0400722message OnuDifferentialReachExceededIndication {
723 fixed32 intf_id = 1;
724 fixed32 onu_id = 2;
725 string status = 3;
726 fixed32 distance = 4;
727}
728
Burak Gurdag402dd952019-12-10 20:31:11 +0000729message GroupMember {
730 enum InterfaceType {
731 PON = 0;
732 EPON_1G_PATH = 1;
733 EPON_10G_PATH = 2;
734 }
735 uint32 interface_id = 1;
736 InterfaceType interface_type = 2;
737 uint32 gem_port_id = 3;
738 uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic.
739 // This queue is attached to the default PON port scheduler.
740}
741
742message Group {
743 enum GroupMembersCommand {
744 ADD_MEMBERS = 0;
745 REMOVE_MEMBERS = 1;
746 SET_MEMBERS = 2;
747 }
748
749 uint32 group_id = 1;
750 GroupMembersCommand command = 2;
751 repeated GroupMember members = 3;
752 Action action = 4;
753}
754
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800755message ValueParam {
756 Onu onu = 1;
khenaidoo4c6543e2021-10-19 17:25:58 -0400757 extension.ValueType.Type value = 2;
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800758}
Burak Gurdag402dd952019-12-10 20:31:11 +0000759
Orhan Kupusogluda19b452021-05-12 12:19:16 +0000760message PonRxPowerData {
761 enum RssiMeasurementFailReason {
762 FAIL_REASON_NONE = 0;
763 FAIL_REASON_NO_DELIMITER = 1;
764 FAIL_REASON_NO_ACCESS = 2;
765 }
Burak Gurdag402dd952019-12-10 20:31:11 +0000766
Orhan Kupusogluda19b452021-05-12 12:19:16 +0000767 fixed32 intf_id = 1;
768 fixed32 onu_id = 2;
769 string status = 3;
770 RssiMeasurementFailReason fail_reason = 4;
771 double rx_power_mean_dbm = 5;
772}
773
774message Empty {}