-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathopenolt.proto
More file actions
executable file
·941 lines (817 loc) · 25.1 KB
/
Copy pathopenolt.proto
File metadata and controls
executable file
·941 lines (817 loc) · 25.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
// Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
option go_package = "github.com/opencord/voltha-protos/v5/go/openolt";
option java_package = "org.opencord.voltha.openolt";
option java_outer_classname = "VolthaOpenOLT";
package openolt;
import "google/api/annotations.proto";
import "voltha_protos/tech_profile.proto";
import "voltha_protos/ext_config.proto";
import "voltha_protos/extensions.proto";
import "voltha_protos/common.proto";
service Openolt {
rpc DisableOlt(Empty) returns (Empty) {
option (google.api.http) = {
post: "/v1/Disable"
body: "*"
};
}
rpc ReenableOlt(Empty) returns (Empty) {
option (google.api.http) = {
post: "/v1/Reenable"
body: "*"
};
}
rpc ActivateOnu(Onu) returns (Empty) {
option (google.api.http) = {
post: "/v1/EnableOnu"
body: "*"
};
}
rpc DeactivateOnu(Onu) returns (Empty) {
option (google.api.http) = {
post: "/v1/DisableOnu"
body: "*"
};
}
rpc DeleteOnu(Onu) returns (Empty) {
option (google.api.http) = {
post: "/v1/DeleteOnu"
body: "*"
};
}
rpc OmciMsgOut(OmciMsg) returns (Empty) {
option (google.api.http) = {
post: "/v1/OmciMsgOut"
body: "*"
};
}
rpc OnuPacketOut(OnuPacket) returns (Empty) {
option (google.api.http) = {
post: "/v1/OnuPacketOut"
body: "*"
};
}
rpc UplinkPacketOut(UplinkPacket) returns (Empty) {
option (google.api.http) = {
post: "/v1/UplinkPacketOut"
body: "*"
};
}
rpc FlowAdd(Flow) returns (Empty) {
option (google.api.http) = {
post: "/v1/FlowAdd"
body: "*"
};
}
rpc FlowRemove(Flow) returns (Empty) {
option (google.api.http) = {
post: "/v1/FlowRemove"
body: "*"
};
}
rpc HeartbeatCheck(Empty) returns (Heartbeat) {
option (google.api.http) = {
post: "/v1/HeartbeatCheck"
body: "*"
};
}
rpc EnablePonIf(Interface) returns (Empty) {
option (google.api.http) = {
post: "/v1/EnablePonIf"
body: "*"
};
}
rpc DisablePonIf(Interface) returns (Empty) {
option (google.api.http) = {
post: "/v1/DisablePonIf"
body: "*"
};
}
rpc GetDeviceInfo(Empty) returns (DeviceInfo) {
option (google.api.http) = {
post: "/v1/GetDeviceInfo"
body: "*"
};
}
rpc Reboot(Empty) returns (Empty) {
option (google.api.http) = {
post: "/v1/Reboot"
body: "*"
};
}
rpc CollectStatistics(Empty) returns (Empty) {
option (google.api.http) = {
post: "/v1/CollectStatistics"
body: "*"
};
}
rpc GetOnuStatistics(Onu) returns (OnuStatistics) {
option (google.api.http) = {
post: "/v1/GetOnuStatistics"
body: "*"
};
}
rpc GetGemPortStatistics(OnuPacket) returns (GemPortStatistics) {
option (google.api.http) = {
post: "/v1/GetGemPortStatistics"
body: "*"
};
}
rpc CreateTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) {
option (google.api.http) = {
post: "/v1/CreateTrafficSchedulers"
body: "*"
};
}
rpc RemoveTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) {
option (google.api.http) = {
post: "/v1/RemoveTrafficSchedulers"
body: "*"
};
}
rpc CreateTrafficQueues(tech_profile.TrafficQueues) returns (Empty) {
option (google.api.http) = {
post: "/v1/CreateTrafficQueues"
body: "*"
};
}
rpc RemoveTrafficQueues(tech_profile.TrafficQueues) returns (Empty) {
option (google.api.http) = {
post: "/v1/RemoveTrafficQueues"
body: "*"
};
}
rpc EnableIndication(Empty) returns (stream Indication) {}
rpc PerformGroupOperation(Group) returns (Empty) {
option (google.api.http) = {
post: "/v1/PerformGroupOperation"
body: "*"
};
}
rpc DeleteGroup(Group) returns (Empty) {
option (google.api.http) = {
post: "/v1/DeleteGroup"
body: "*"
};
}
rpc GetExtValue(ValueParam) returns (extension.ReturnValues) {
option (google.api.http) = {
post: "/v1/GetExtValue"
body: "*"
};
}
rpc OnuItuPonAlarmSet(config.OnuItuPonAlarm) returns (Empty) {
option (google.api.http) = {
post: "/v1/OnuItuPonAlarmSet"
body: "*"
};
}
rpc GetLogicalOnuDistanceZero(Onu) returns (OnuLogicalDistance) {
option (google.api.http) = {
post: "/v1/GetLogicalOnuDistanceZero"
body: "*"
};
}
rpc GetLogicalOnuDistance(Onu) returns (OnuLogicalDistance) {
option (google.api.http) = {
post: "/v1/GetLogicalOnuDistance"
body: "*"
};
}
rpc GetPonRxPower(Onu) returns (PonRxPowerData) {
option (google.api.http) = {
post: "/v1/GetPonRxPower"
body: "*"
};
}
/*
* GetOnuInfo takes Onu id, serialnumber, and pon interface as argument from the onu structure.
* Returns the Onu info from the device.
*/
rpc GetOnuInfo(Onu) returns (OnuInfo) {
option (google.api.http) = {
post: "/v1/GetOnuInfo"
body: "*"
};
}
/*
* GetPonInterfaceInfo takes the pon intf id as argument.
* Returns the pon interface information from the device.
*/
rpc GetPonInterfaceInfo(Interface) returns (PonIntfInfo) {
option (google.api.http) = {
post: "/v1/GetInterfaceInfo"
body: "*"
};
}
/*
* GetAllocIdStatistics takes onuId and allocId as argument.
* This method includes a default wait period of 10 secs before collecting the stats.
* The caller has to be aware of this wait and handle it accordingly.
* Returns AllocId statistics in the form of OnuAllocStatistics structure
*/
rpc GetAllocIdStatistics(OnuPacket) returns (OnuAllocIdStatistics) {
option (google.api.http) = {
post: "/v1/GetAllocIdStatistics"
body: "*"
};
}
/*
* GetPonPortStatistics takes interface id and type as argument from Interface structure.
* Returns Pon port statistics in the form of PonStatsData structure.
*/
rpc GetPonPortStatistics(Interface) returns (common.PortStatistics) {
option (google.api.http) = {
post: "/v1/GetPonPortStatistics"
body: "*"
};
}
/*
* GetNniPortStatistics takes takes interface id and type as argument from Interface structure.
* Returns Nni port statistics in the form of NniStatsData structure
*/
rpc GetNniPortStatistics(Interface) returns (common.PortStatistics) {
option (google.api.http) = {
post: "/v1/GetNniPortStatistics"
body: "*"
};
}
/*
* Disable ONU serailnumber, disable device at PLOAM.
* Takes input as intfid, onuid, sn of the ONU.
* Returns success if the call towards the device is success, error otherwise.
*/
rpc DisableOnu (InterfaceOnuSerialNumberOnuId) returns (Empty) {
option (google.api.http) = {
post: "/v1/DisableOnu"
};
}
/*
* Enables ONU serailnumber, enable device at PLOAM.
* Takes input as intfid, onuid, sn of the ONU.
* Returns success if the call towards the device is success, error otherwise.
*/
rpc EnableOnu (InterfaceOnuSerialNumberOnuId) returns (Empty) {
option (google.api.http) = {
post: "/v1/EnableOnu"
};
}
/*
* Disable ONU serailnumber, disable device at PLOAM
* Takes input as intfid and sn of the ONU. Generally used when the onu is not present in the OLT.
* Returns success if the call towards the device is success, error otherwise.
*/
rpc DisableOnuSerialNumber(InterfaceOnuSerialNumber) returns (Empty) {
option (google.api.http) = {
post: "/v1/DisableOnuSerialNumber"
};
}
/*
* Enables ONU serailnumber, enable device at PLOAM
* Takes input as intfid and sn of the ONU. Generally used when the onu is not present in the OLT.
* Returns success if the call towards the device is success, error otherwise.
*/
rpc EnableOnuSerialNumber(InterfaceOnuSerialNumber) returns (Empty) {
option (google.api.http) = {
post: "/v1/EnableOnuSerialNumber"
};
}
}
message Indication {
oneof data {
OltIndication olt_ind = 1;
IntfIndication intf_ind = 2;
IntfOperIndication intf_oper_ind = 3;
OnuDiscIndication onu_disc_ind = 4;
OnuIndication onu_ind = 5;
OmciIndication omci_ind = 6;
PacketIndication pkt_ind = 7;
common.PortStatistics port_stats = 8;
FlowStatistics flow_stats = 9;
AlarmIndication alarm_ind= 10;
OnuDisabledIndication onu_disabled_ind = 11;
OnuEnabledIndication onu_enabled_ind = 12;
}
}
message AlarmIndication {
oneof data {
LosIndication los_ind = 1;
DyingGaspIndication dying_gasp_ind = 2;
OnuAlarmIndication onu_alarm_ind = 3;
OnuStartupFailureIndication onu_startup_fail_ind = 4;
OnuSignalDegradeIndication onu_signal_degrade_ind = 5;
OnuDriftOfWindowIndication onu_drift_of_window_ind = 6;
OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7;
OnuSignalsFailureIndication onu_signals_fail_ind = 8;
OnuTransmissionInterferenceWarning onu_tiwi_ind = 9;
OnuActivationFailureIndication onu_activation_fail_ind = 10;
OnuProcessingErrorIndication onu_processing_error_ind = 11;
OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12;
OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13;
OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14;
OnuRemoteDefectIndication onu_remote_defect_ind = 15;
OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16;
OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17;
OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18;
OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19;
}
}
message OltIndication {
string oper_state = 1; // up, down
}
message IntfIndication {
fixed32 intf_id = 1;
string oper_state = 2; // up, down
}
message OnuDiscIndication {
fixed32 intf_id = 1;
SerialNumber serial_number = 2;
}
message OnuIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string oper_state = 3; // up, down
string admin_state = 5; // up, down
SerialNumber serial_number = 4;
/** activation fail reason. */
enum ActivationFailReason
{
ONU_ACTIVATION_FAIL_REASON_NONE = 0;
ONU_ACTIVATION_FAIL_REASON_RANGING = 1; //Ranging Failure
ONU_ACTIVATION_FAIL_REASON_PASSWORD_AUTHENTICATION = 2; //Password authentication
ONU_ACTIVATION_FAIL_REASON_LOS = 3; //LOS
ONU_ACTIVATION_FAIL_ONU_ALARM = 4; // ONU Alarm
ONU_ACTIVATION_FAIL_SWITCH_OVER = 5; //protection switch over
}
ActivationFailReason fail_reason = 6;
}
message OnuDisabledIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
SerialNumber serial_number = 4;
}
message OnuEnabledIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
SerialNumber serial_number = 4;
}
message IntfOperIndication {
string type = 1; // nni, pon
fixed32 intf_id = 2;
string oper_state = 3; // up, down
fixed32 speed = 4; // measured in Mbps
string technology = 5;
message PONResourceRanges {
message Pool {
enum PoolType {
ONU_ID = 0;
ALLOC_ID = 1;
GEMPORT_ID = 2;
FLOW_ID = 3;
}
PoolType type = 1;
fixed32 start = 3; // lower bound on IDs allocated from this pool
fixed32 end = 4; // upper bound on IDs allocated from this pool
}
repeated Pool pools = 3;
}
PONResourceRanges ranges = 6;
}
message OmciIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
bytes pkt = 3;
}
message PacketIndication {
string intf_type = 5; // nni, pon, unknown
fixed32 intf_id = 1;
fixed32 onu_id = 8;
fixed32 uni_id = 9;
fixed32 gemport_id = 2;
fixed32 flow_id = 3;
fixed32 port_no = 6;
fixed64 cookie = 7;
bytes pkt = 4;
}
message Interface {
fixed32 intf_id = 1;
fixed32 intf_type = 2;
}
message Heartbeat {
fixed32 heartbeat_signature = 1;
}
message Onu {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
SerialNumber serial_number = 3;
fixed32 pir = 4; // peak information rate assigned to onu
bool omcc_encryption = 5;
}
message OnuLogicalDistance {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
fixed32 logical_onu_distance_zero = 3; //0km logical distance
fixed32 logical_onu_distance = 4;
}
message OmciMsg {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
bytes pkt = 3;
}
message OnuPacket {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
fixed32 port_no = 4;
fixed32 gemport_id = 5;
fixed32 alloc_id = 6;
bytes pkt = 3;
}
message UplinkPacket {
fixed32 intf_id = 1;
bytes pkt = 2;
}
message DeviceInfo {
string vendor = 1;
string model = 2;
string hardware_version = 3;
string firmware_version = 4;
string device_id = 16;
string device_serial_number = 17;
bool previously_connected = 19; // used to indicate agent reconcile status
// Total number of pon intf ports on the device
fixed32 pon_ports = 12;
// Total number of nni intf ports on the device
fixed32 nni_ports = 20;
reserved 5 to 11, 13, 14;
// Not used anymore, this information is defined per-range only
// and is fully provided by DeviceResourceRanges
//
// string technology = 5;
// fixed32 onu_id_start = 6;
// fixed32 onu_id_end = 7;
// fixed32 alloc_id_start = 8;
// fixed32 alloc_id_end = 9;
// fixed32 gemport_id_start = 10;
// fixed32 gemport_id_end = 11;
// fixed32 flow_id_start = 13;
// fixed32 flow_id_end = 14;
message DeviceResourceRanges {
// List of 0 or more intf_ids that use the same technology and pools.
// If 0 intf_ids supplied, it implies ALL interfaces
repeated fixed32 intf_ids = 1;
// Technology profile for this pool
string technology = 2;
message Pool {
enum PoolType {
ONU_ID = 0;
ALLOC_ID = 1;
GEMPORT_ID = 2;
FLOW_ID = 3;
}
enum SharingType {
DEDICATED_PER_INTF = 0;
SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges
SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range
}
PoolType type = 1;
SharingType sharing = 2;
fixed32 start = 3; // lower bound on IDs allocated from this pool
fixed32 end = 4; // upper bound on IDs allocated from this pool
}
repeated Pool pools = 3;
}
repeated DeviceResourceRanges ranges = 15;
}
message Classifier {
fixed32 o_tpid = 1;
fixed32 o_vid = 2;
fixed32 i_tpid = 3;
fixed32 i_vid = 4;
fixed32 o_pbits = 5;
fixed32 i_pbits = 6;
fixed32 eth_type = 7;
bytes dst_mac = 8;
bytes src_mac = 9;
fixed32 ip_proto = 10;
fixed32 dst_ip = 11;
fixed32 src_ip = 12;
fixed32 src_port = 13;
fixed32 dst_port = 14;
string pkt_tag_type = 15; // untagged, single_tag, double_tag
}
message ActionCmd {
bool add_outer_tag = 1;
bool remove_outer_tag = 2;
bool trap_to_host = 3;
bool remark_outer_pbits = 4;
bool remark_inner_pbits = 5;
bool add_inner_tag = 6;
bool remove_inner_tag = 7;
bool translate_inner_tag = 8;
bool translate_outer_tag = 9;
}
message Action {
ActionCmd cmd = 1;
fixed32 o_vid = 2;
fixed32 o_pbits = 3;
fixed32 o_tpid = 4;
fixed32 i_vid = 5;
fixed32 i_pbits = 6;
fixed32 i_tpid = 7;
}
message Flow {
sfixed32 access_intf_id = 1;
sfixed32 onu_id = 2;
sfixed32 uni_id = 11;
fixed64 flow_id = 3; // voltha flow-id. 0 is not a valid flow_id
fixed64 symmetric_flow_id = 18; // symmetric voltha flow-id, if applicable. All data path flows generally have a symmetric flow,
// but trap-to-controller flows do not have a symmetric flow
// Broadcom BAL requires that symmetric flows use the same BAL flow-id
string flow_type = 4; // upstream, downstream, broadcast, multicast
sfixed32 alloc_id = 10;
sfixed32 network_intf_id = 5;
sfixed32 gemport_id = 6; // When 'replicate_flow' field is true, this field is obsolete.
Classifier classifier = 7;
Action action = 8;
sfixed32 priority = 9;
fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication
fixed32 port_no = 13; // must be provided for any flow with trap_to_host action. Returned in PacketIndication
fixed32 group_id = 14;
fixed32 tech_profile_id = 15;
bool replicate_flow = 16; // When this field is true, use pbitToGemPortID to know which p-bit needs to be classfied to which gem port.
map<fixed32, fixed32> pbit_to_gemport = 17; // Map of p-bit to gem port ID
map<fixed32, bool> gemport_to_aes = 19; // Map of gem port ID to aes encryption
}
message SerialNumber {
bytes vendor_id = 1;
bytes vendor_specific = 2;
}
message OnuStatistics {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
fixed64 positive_drift = 3;
fixed64 negative_drift = 4;
fixed64 delimiter_miss_detection = 5;
fixed64 bip_errors = 6;
fixed64 bip_units = 7;
fixed64 fec_corrected_symbols = 8;
fixed64 fec_codewords_corrected = 9;
fixed64 fec_codewords_uncorrectable = 10;
fixed64 fec_codewords = 11;
fixed64 fec_corrected_units = 12;
fixed64 xgem_key_errors = 13;
fixed64 xgem_loss = 14;
fixed64 rx_ploams_error = 15;
fixed64 rx_ploams_non_idle = 16;
fixed64 rx_omci = 17;
fixed64 rx_omci_packets_crc_error = 18;
fixed64 rx_bytes = 19;
fixed64 rx_packets = 20;
fixed64 tx_bytes = 21;
fixed64 tx_packets = 22;
fixed64 ber_reported = 23;
fixed64 lcdg_errors = 24;
fixed64 rdi_errors = 25;
fixed32 timestamp = 26;
}
message GemPortStatistics {
fixed32 intf_id = 1;
fixed32 gemport_id = 2;
fixed64 rx_packets = 3;
fixed64 rx_bytes = 4;
fixed64 tx_packets = 5;
fixed64 tx_bytes = 6;
fixed32 onu_id= 7;
fixed32 timestamp = 26;
}
message FlowStatistics {
fixed32 flow_id = 1;
fixed64 rx_bytes = 2;
fixed64 rx_packets = 3;
fixed64 tx_bytes = 8;
fixed64 tx_packets = 9;
fixed32 timestamp = 16;
}
message LosIndication {
fixed32 intf_id = 1;
string status = 2;
}
message DyingGaspIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message OnuAlarmIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string los_status = 3;
string lob_status = 4;
string lopc_miss_status = 5;
string lopc_mic_error_status = 6;
string lofi_status = 7;
string loami_status = 8;
}
message OnuStartupFailureIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message OnuSignalDegradeIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
fixed32 inverse_bit_error_rate = 4;
}
message OnuDriftOfWindowIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
fixed32 drift = 4;
fixed32 new_eqd = 5;
}
message OnuLossOfOmciChannelIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message OnuSignalsFailureIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
fixed32 inverse_bit_error_rate = 4;
}
message OnuTransmissionInterferenceWarning {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
fixed32 drift = 4;
}
message OnuActivationFailureIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
fixed32 fail_reason = 3;
}
message OnuLossOfKeySyncFailureIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message RdiErrorIndication {
fixed64 rdi_error_count = 1; // RDI Error count
string status = 2; // on/off based on configured reporting condition
}
message OnuItuPonStatsIndication{
fixed32 intf_id = 1;
fixed32 onu_id = 2;
oneof stats {
RdiErrorIndication rdi_error_ind = 3;
// add more here
}
}
message OnuProcessingErrorIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
}
message OnuDeactivationFailureIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message OnuRemoteDefectIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
fixed64 rdi_errors = 3;
}
message OnuLossOfGEMChannelDelineationIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
fixed32 delineation_errors = 4;
}
message OnuPhysicalEquipmentErrorIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message OnuLossOfAcknowledgementIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
}
message OnuDifferentialReachExceededIndication {
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
fixed32 distance = 4;
}
message GroupMember {
enum InterfaceType {
PON = 0;
EPON_1G_PATH = 1;
EPON_10G_PATH = 2;
}
uint32 interface_id = 1;
InterfaceType interface_type = 2;
uint32 gem_port_id = 3;
uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic.
// This queue is attached to the default PON port scheduler.
}
message Group {
enum GroupMembersCommand {
ADD_MEMBERS = 0;
REMOVE_MEMBERS = 1;
SET_MEMBERS = 2;
}
uint32 group_id = 1;
GroupMembersCommand command = 2;
repeated GroupMember members = 3;
Action action = 4;
}
message ValueParam {
Onu onu = 1;
extension.ValueType.Type value = 2;
}
message PonRxPowerData {
enum RssiMeasurementFailReason {
FAIL_REASON_NONE = 0;
FAIL_REASON_NO_DELIMITER = 1;
FAIL_REASON_NO_ACCESS = 2;
}
fixed32 intf_id = 1;
fixed32 onu_id = 2;
string status = 3;
RssiMeasurementFailReason fail_reason = 4;
double rx_power_mean_dbm = 5;
}
message OnuAllocIdStatistics {
fixed32 intfId = 1;
fixed32 allocId = 2;
fixed64 rxBytes = 3;
}
enum AlarmState {
OFF = 0;
ON = 1;
}
/*
* contains the onu id, state of the onu and the information about the alarms on the onu.
* As of now only few alarms are added, any further information needed can be added to the structure.
*/
message OnuInfo {
fixed32 onu_id = 1;
enum OnuState {
/*
* There are other states in BAL for ONU, which voltha is not interested as of now.
* UNKNOWN is to be filled for the rest of the states other than NOT_CONFIGURED/ACTIVE/INACTIVE/DISABLED
*/
UNKNOWN = 0;
NOT_CONFIGURED = 1;
ACTIVE = 2;
INACTIVE = 3;
DISABLED = 4;
}
OnuState state = 2;
AlarmState losi = 3;
AlarmState lofi = 4;
AlarmState loami = 5;
}
/*
* IntfInfo has the interface Id and if there are any alarms active on that interface.
* Any further information needed from the interface object can be added to the structure.
*/
message PonIntfInfo {
fixed32 intf_id = 1;
enum PonIntfState {
UNKNOWN = 0;
ACTIVE_WORKING = 1;
ACTIVE_STANDBY = 2;
INACTIVE = 3;
DISABLED = 4;
}
PonIntfState state = 3;
AlarmState los = 4;
}
/*
* Message used for disabling device by serialnumber, disable at PLOAM
*/
message InterfaceOnuSerialNumberOnuId {
InterfaceOnuSerialNumber intf_id_serial_num = 1;
fixed32 onu_id = 2;
}
message InterfaceOnuSerialNumber {
fixed32 intf_id = 1;
SerialNumber onu_serial_number = 2;
}
message Empty {}