blob: 8c4c55966e46c9b49e51fec5bb22c49bb8608d0a [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
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030017option go_package = "github.com/opencord/voltha-protos/v3/go/openolt";
18option 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";
Zack Williams52209662019-02-07 10:15:31 -070025
26service Openolt {
27
28 rpc DisableOlt(Empty) returns (Empty) {
29 option (google.api.http) = {
30 post: "/v1/Disable"
31 body: "*"
32 };
33 }
34
35 rpc ReenableOlt(Empty) returns (Empty) {
36 option (google.api.http) = {
37 post: "/v1/Reenable"
38 body: "*"
39 };
40 }
41
42 rpc ActivateOnu(Onu) returns (Empty) {
43 option (google.api.http) = {
44 post: "/v1/EnableOnu"
45 body: "*"
46 };
47 }
48
49 rpc DeactivateOnu(Onu) returns (Empty) {
50 option (google.api.http) = {
51 post: "/v1/DisableOnu"
52 body: "*"
53 };
54 }
55
56 rpc DeleteOnu(Onu) returns (Empty) {
57 option (google.api.http) = {
58 post: "/v1/DeleteOnu"
59 body: "*"
60 };
61 }
62
63 rpc OmciMsgOut(OmciMsg) returns (Empty) {
64 option (google.api.http) = {
65 post: "/v1/OmciMsgOut"
66 body: "*"
67 };
68 }
69
70 rpc OnuPacketOut(OnuPacket) returns (Empty) {
71 option (google.api.http) = {
72 post: "/v1/OnuPacketOut"
73 body: "*"
74 };
75 }
76
77 rpc UplinkPacketOut(UplinkPacket) returns (Empty) {
78 option (google.api.http) = {
79 post: "/v1/UplinkPacketOut"
80 body: "*"
81 };
82 }
83
84 rpc FlowAdd(Flow) returns (Empty) {
85 option (google.api.http) = {
86 post: "/v1/FlowAdd"
87 body: "*"
88 };
89 }
90
91 rpc FlowRemove(Flow) returns (Empty) {
92 option (google.api.http) = {
93 post: "/v1/FlowRemove"
94 body: "*"
95 };
96 }
97
98 rpc HeartbeatCheck(Empty) returns (Heartbeat) {
99 option (google.api.http) = {
100 post: "/v1/HeartbeatCheck"
101 body: "*"
102 };
103 }
104
105 rpc EnablePonIf(Interface) returns (Empty) {
106 option (google.api.http) = {
107 post: "/v1/EnablePonIf"
108 body: "*"
109 };
110 }
111
112 rpc DisablePonIf(Interface) returns (Empty) {
113 option (google.api.http) = {
114 post: "/v1/DisablePonIf"
115 body: "*"
116 };
117 }
118
119 rpc GetDeviceInfo(Empty) returns (DeviceInfo) {
120 option (google.api.http) = {
121 post: "/v1/GetDeviceInfo"
122 body: "*"
123 };
124 }
125
126 rpc Reboot(Empty) returns (Empty) {
127 option (google.api.http) = {
128 post: "/v1/Reboot"
129 body: "*"
130 };
131 }
132
133 rpc CollectStatistics(Empty) returns (Empty) {
134 option (google.api.http) = {
135 post: "/v1/CollectStatistics"
136 body: "*"
137 };
138 }
139
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400140 rpc CreateTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) {
Zack Williams52209662019-02-07 10:15:31 -0700141 option (google.api.http) = {
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400142 post: "/v1/CreateTrafficSchedulers"
Zack Williams52209662019-02-07 10:15:31 -0700143 body: "*"
144 };
145 }
146
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400147 rpc RemoveTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) {
Zack Williams52209662019-02-07 10:15:31 -0700148 option (google.api.http) = {
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400149 post: "/v1/RemoveTrafficSchedulers"
150 body: "*"
151 };
152 }
153
154 rpc CreateTrafficQueues(tech_profile.TrafficQueues) returns (Empty) {
155 option (google.api.http) = {
156 post: "/v1/CreateTrafficQueues"
157 body: "*"
158 };
159 }
160
161 rpc RemoveTrafficQueues(tech_profile.TrafficQueues) returns (Empty) {
162 option (google.api.http) = {
163 post: "/v1/RemoveTrafficQueues"
Zack Williams52209662019-02-07 10:15:31 -0700164 body: "*"
165 };
166 }
167
168 rpc EnableIndication(Empty) returns (stream Indication) {}
Burak Gurdag402dd952019-12-10 20:31:11 +0000169
170 rpc PerformGroupOperation(Group) returns (Empty) {
171 option (google.api.http) = {
172 post: "/v1/PerformGroupOperation"
173 body: "*"
174 };
175 }
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800176
Burak Gurdagaadbcc02020-05-18 14:22:38 +0000177 rpc DeleteGroup(Group) returns (Empty) {
178 option (google.api.http) = {
179 post: "/v1/DeleteGroup"
180 body: "*"
181 };
182 }
183
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800184 rpc GetExtValue(ValueParam) returns (common.ReturnValues) {
185 option (google.api.http) = {
186 post: "/v1/GetExtValue"
187 body: "*"
188 };
189 }
190
Jason Huang55ee29d2020-03-11 23:43:29 +0800191 rpc OnuItuPonAlarmSet(OnuItuPonAlarm) returns (Empty) {
192 option (google.api.http) = {
193 post: "/v1/OnuItuPonAlarmSet"
194 body: "*"
195 };
196 }
Jason Huang4f8a9372020-06-03 18:09:35 +0800197
198 rpc GetLogicalOnuDistanceZero(Onu) returns (OnuLogicalDistance) {
199 option (google.api.http) = {
200 post: "/v1/GetLogicalOnuDistanceZero"
201 body: "*"
202 };
203 }
204
205 rpc GetLogicalOnuDistance(Onu) returns (OnuLogicalDistance) {
206 option (google.api.http) = {
207 post: "/v1/GetLogicalOnuDistance"
208 body: "*"
209 };
210 }
Zack Williams52209662019-02-07 10:15:31 -0700211}
212
213message Indication {
214 oneof data {
215 OltIndication olt_ind = 1;
216 IntfIndication intf_ind = 2;
217 IntfOperIndication intf_oper_ind = 3;
218 OnuDiscIndication onu_disc_ind = 4;
219 OnuIndication onu_ind = 5;
220 OmciIndication omci_ind = 6;
221 PacketIndication pkt_ind = 7;
222 PortStatistics port_stats = 8;
223 FlowStatistics flow_stats = 9;
224 AlarmIndication alarm_ind= 10;
225 }
226}
227
228message AlarmIndication {
229 oneof data {
230 LosIndication los_ind = 1;
231 DyingGaspIndication dying_gasp_ind = 2;
232 OnuAlarmIndication onu_alarm_ind = 3;
233 OnuStartupFailureIndication onu_startup_fail_ind = 4;
234 OnuSignalDegradeIndication onu_signal_degrade_ind = 5;
235 OnuDriftOfWindowIndication onu_drift_of_window_ind = 6;
236 OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7;
237 OnuSignalsFailureIndication onu_signals_fail_ind = 8;
238 OnuTransmissionInterferenceWarning onu_tiwi_ind = 9;
239 OnuActivationFailureIndication onu_activation_fail_ind = 10;
240 OnuProcessingErrorIndication onu_processing_error_ind = 11;
Naga Manjunath0a734252019-11-21 19:00:23 +0530241 OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12;
242 OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13;
Devmalya Paulea6eb472020-02-04 20:41:01 -0500243 OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14;
Devmalya Paulb0c12472020-02-18 20:08:53 -0500244 OnuRemoteDefectIndication onu_remote_defect_ind = 15;
Devmalya Paul82957962020-03-01 18:49:37 -0500245 OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16;
246 OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17;
247 OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18;
Devmalya Paul342bf9d2020-03-19 02:42:56 -0400248 OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19;
Zack Williams52209662019-02-07 10:15:31 -0700249 }
250}
251
252message OltIndication {
253 string oper_state = 1; // up, down
254}
255
256message IntfIndication {
257 fixed32 intf_id = 1;
258 string oper_state = 2; // up, down
259}
260
261message OnuDiscIndication {
262 fixed32 intf_id = 1;
263 SerialNumber serial_number = 2;
264}
265
266message OnuIndication {
267 fixed32 intf_id = 1;
268 fixed32 onu_id = 2;
269 string oper_state = 3; // up, down
270 string admin_state = 5; // up, down
271 SerialNumber serial_number = 4;
272}
273
274message IntfOperIndication {
275 string type = 1; // nni, pon
276 fixed32 intf_id = 2;
277 string oper_state = 3; // up, down
278}
279
280message OmciIndication {
281 fixed32 intf_id = 1;
282 fixed32 onu_id = 2;
283 bytes pkt = 3;
284}
285
286message PacketIndication {
287 string intf_type = 5; // nni, pon, unknown
288 fixed32 intf_id = 1;
289 fixed32 gemport_id = 2;
290 fixed32 flow_id = 3;
291 fixed32 port_no = 6;
292 fixed64 cookie = 7;
293 bytes pkt = 4;
294}
295
296message Interface {
297 fixed32 intf_id = 1;
298}
299
300message Heartbeat {
301 fixed32 heartbeat_signature = 1;
302}
303
304message Onu {
305 fixed32 intf_id = 1;
306 fixed32 onu_id = 2;
307 SerialNumber serial_number = 3;
308 fixed32 pir = 4; // peak information rate assigned to onu
309}
310
Jason Huang4f8a9372020-06-03 18:09:35 +0800311message OnuLogicalDistance {
312 fixed32 intf_id = 1;
313 fixed32 onu_id = 2;
314 fixed32 logical_onu_distance_zero = 3; //0km logical distance
315 fixed32 logical_onu_distance = 4;
316}
317
Zack Williams52209662019-02-07 10:15:31 -0700318message OmciMsg {
319 fixed32 intf_id = 1;
320 fixed32 onu_id = 2;
321 bytes pkt = 3;
322}
323
324message OnuPacket {
325 fixed32 intf_id = 1;
326 fixed32 onu_id = 2;
327 fixed32 port_no = 4;
Abhilash Laxmeshwardfbb74d2019-07-23 08:03:08 -0400328 fixed32 gemport_id = 5;
Zack Williams52209662019-02-07 10:15:31 -0700329 bytes pkt = 3;
330}
331
332message UplinkPacket {
333 fixed32 intf_id = 1;
334 bytes pkt = 2;
335}
336
337message DeviceInfo {
338 string vendor = 1;
339 string model = 2;
340 string hardware_version = 3;
341 string firmware_version = 4;
342 string device_id = 16;
343 string device_serial_number = 17;
344
345 // Total number of pon intf ports on the device
346 fixed32 pon_ports = 12;
347
348 // If using global per-device technology profile. To be deprecated
349 string technology = 5;
350 fixed32 onu_id_start = 6;
351 fixed32 onu_id_end = 7;
352 fixed32 alloc_id_start = 8;
353 fixed32 alloc_id_end = 9;
354 fixed32 gemport_id_start = 10;
355 fixed32 gemport_id_end = 11;
356 fixed32 flow_id_start = 13;
357 fixed32 flow_id_end = 14;
358
359 message DeviceResourceRanges {
360
361 // List of 0 or more intf_ids that use the same technology and pools.
362 // If 0 intf_ids supplied, it implies ALL interfaces
363 repeated fixed32 intf_ids = 1;
364
365 // Technology profile for this pool
366 string technology = 2;
367
368 message Pool {
369 enum PoolType {
370 ONU_ID = 0;
371 ALLOC_ID = 1;
372 GEMPORT_ID = 2;
373 FLOW_ID = 3;
374 }
375
376 enum SharingType {
377 DEDICATED_PER_INTF = 0;
378 SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges
379 SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range
380 }
381
382 PoolType type = 1;
383 SharingType sharing = 2;
384 fixed32 start = 3; // lower bound on IDs allocated from this pool
385 fixed32 end = 4; // upper bound on IDs allocated from this pool
386 }
387 repeated Pool pools = 3;
388 }
389 repeated DeviceResourceRanges ranges = 15;
390}
391
392message Classifier {
393 fixed32 o_tpid = 1;
394 fixed32 o_vid = 2;
395 fixed32 i_tpid = 3;
396 fixed32 i_vid = 4;
397 fixed32 o_pbits = 5;
398 fixed32 i_pbits = 6;
399 fixed32 eth_type = 7;
400 bytes dst_mac = 8;
401 bytes src_mac = 9;
402 fixed32 ip_proto = 10;
403 fixed32 dst_ip = 11;
404 fixed32 src_ip = 12;
405 fixed32 src_port = 13;
406 fixed32 dst_port = 14;
407 string pkt_tag_type = 15; // untagged, single_tag, double_tag
408}
409
410message ActionCmd {
411 bool add_outer_tag = 1;
412 bool remove_outer_tag = 2;
413 bool trap_to_host = 3;
Burak Gurdag402dd952019-12-10 20:31:11 +0000414 bool remark_outer_pbits = 4;
415 bool remark_inner_pbits = 5;
416 bool add_inner_tag = 6;
417 bool remove_inner_tag = 7;
418 bool translate_inner_tag = 8;
419 bool translate_outer_tag = 9;
Zack Williams52209662019-02-07 10:15:31 -0700420}
421
422message Action {
423 ActionCmd cmd = 1;
424 fixed32 o_vid = 2;
425 fixed32 o_pbits = 3;
426 fixed32 o_tpid = 4;
427 fixed32 i_vid = 5;
428 fixed32 i_pbits = 6;
429 fixed32 i_tpid = 7;
430}
431
432message Flow {
433 sfixed32 access_intf_id = 1;
434 sfixed32 onu_id = 2;
435 sfixed32 uni_id = 11;
436 fixed32 flow_id = 3;
437 string flow_type = 4; // upstream, downstream, broadcast, multicast
438 sfixed32 alloc_id = 10;
439 sfixed32 network_intf_id = 5;
440 sfixed32 gemport_id = 6;
441 Classifier classifier = 7;
442 Action action = 8;
443 sfixed32 priority = 9;
444 fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication
445 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 +0000446 fixed32 group_id = 14;
Burak Gurdagce064352020-04-20 20:11:18 +0000447 fixed32 tech_profile_id = 15;
Zack Williams52209662019-02-07 10:15:31 -0700448}
449
Jason Huang55ee29d2020-03-11 23:43:29 +0800450message OnuItuPonAlarm {
Girish Gowdra5192ea82020-05-06 20:49:11 -0700451 enum AlarmID {
452 RDI_ERRORS = 0; // RDI errors
453 }
454
455 enum AlarmReportingCondition {
456 RATE_THRESHOLD = 0; // The alarm is triggered if the stats delta value between samples crosses the configured threshold boundary
457 RATE_RANGE = 1; // The alarm is triggered if the stats delta value between samples deviates from the configured range
458 VALUE_THRESHOLD = 2; // The alarm is raised if the stats sample value becomes greater than this level. The alarm is cleared when the host read the stats
459 }
460
461 message SoakTime {
462 fixed32 active_soak_time = 1;
463 fixed32 clear_soak_time = 2;
464 }
465
466 message RateThresholdConfig {
467 fixed64 rate_threshold_rising = 1;
468 fixed64 rate_threshold_falling = 2;
469 SoakTime soak_time = 3;
470 }
471
472 message RateRangeConfig {
473 fixed64 rate_range_lower = 1;
474 fixed64 rate_range_upper = 2;
475 SoakTime soak_time = 3;
476 }
477
478 message ValueThresholdConfig {
479 fixed64 threshold_limit = 1;
480 SoakTime soak_time = 2;
481 }
482
Jason Huang55ee29d2020-03-11 23:43:29 +0800483 fixed32 pon_ni = 1;
484 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700485 AlarmID alarm_id = 3;
486 AlarmReportingCondition alarm_reporting_condition = 4;
487 oneof config {
488 RateThresholdConfig rate_threshold_config = 5;
489 RateRangeConfig rate_range_config = 6;
490 ValueThresholdConfig value_threshold_config = 7;
491 }
Jason Huang55ee29d2020-03-11 23:43:29 +0800492}
493
Zack Williams52209662019-02-07 10:15:31 -0700494message SerialNumber {
495 bytes vendor_id = 1;
496 bytes vendor_specific = 2;
497}
498
499message PortStatistics {
500 fixed32 intf_id = 1;
501 fixed64 rx_bytes = 2;
502 fixed64 rx_packets = 3;
503 fixed64 rx_ucast_packets = 4;
504 fixed64 rx_mcast_packets = 5;
505 fixed64 rx_bcast_packets = 6;
506 fixed64 rx_error_packets = 7;
507 fixed64 tx_bytes = 8;
508 fixed64 tx_packets = 9;
509 fixed64 tx_ucast_packets = 10;
510 fixed64 tx_mcast_packets = 11;
511 fixed64 tx_bcast_packets = 12;
512 fixed64 tx_error_packets = 13;
513 fixed64 rx_crc_errors = 14;
514 fixed64 bip_errors = 15;
515 fixed32 timestamp = 16;
516}
517
518message FlowStatistics {
519 fixed32 flow_id = 1;
520 fixed64 rx_bytes = 2;
521 fixed64 rx_packets = 3;
522 fixed64 tx_bytes = 8;
523 fixed64 tx_packets = 9;
524 fixed32 timestamp = 16;
525}
526
527message LosIndication {
528 fixed32 intf_id = 1;
529 string status = 2;
530}
531
532message DyingGaspIndication {
533 fixed32 intf_id = 1;
534 fixed32 onu_id = 2;
535 string status = 3;
536}
537
538message OnuAlarmIndication {
539 fixed32 intf_id = 1;
540 fixed32 onu_id = 2;
541 string los_status = 3;
542 string lob_status = 4;
543 string lopc_miss_status = 5;
544 string lopc_mic_error_status = 6;
Naga Manjunath0a734252019-11-21 19:00:23 +0530545 string lofi_status = 7;
546 string loami_status = 8;
Zack Williams52209662019-02-07 10:15:31 -0700547}
548
549message OnuStartupFailureIndication {
550 fixed32 intf_id = 1;
551 fixed32 onu_id = 2;
552 string status = 3;
553}
554
555message OnuSignalDegradeIndication {
556 fixed32 intf_id = 1;
557 fixed32 onu_id = 2;
558 string status = 3;
559 fixed32 inverse_bit_error_rate = 4;
560}
561
562message OnuDriftOfWindowIndication {
563 fixed32 intf_id = 1;
564 fixed32 onu_id = 2;
565 string status = 3;
566 fixed32 drift = 4;
567 fixed32 new_eqd = 5;
568}
569
570message OnuLossOfOmciChannelIndication {
571 fixed32 intf_id = 1;
572 fixed32 onu_id = 2;
573 string status = 3;
574}
575
576message OnuSignalsFailureIndication {
577 fixed32 intf_id = 1;
578 fixed32 onu_id = 2;
579 string status = 3;
580 fixed32 inverse_bit_error_rate = 4;
581}
582
583message OnuTransmissionInterferenceWarning {
584 fixed32 intf_id = 1;
585 fixed32 onu_id = 2;
586 string status = 3;
587 fixed32 drift = 4;
588}
589
590message OnuActivationFailureIndication {
591 fixed32 intf_id = 1;
592 fixed32 onu_id = 2;
Naga Manjunath0a734252019-11-21 19:00:23 +0530593 fixed32 fail_reason = 3;
594}
595
596message OnuLossOfKeySyncFailureIndication {
597 fixed32 intf_id = 1;
598 fixed32 onu_id = 2;
599 string status = 3;
600}
601
Girish Gowdra5192ea82020-05-06 20:49:11 -0700602message RdiErrorIndication {
603 fixed64 rdi_error_count = 1; // RDI Error count
604 string status = 2; // on/off based on configured reporting condition
605}
606
Naga Manjunath0a734252019-11-21 19:00:23 +0530607message OnuItuPonStatsIndication{
608 fixed32 intf_id = 1;
609 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700610 oneof stats {
611 RdiErrorIndication rdi_error_ind = 3;
612 // add more here
613 }
Zack Williams52209662019-02-07 10:15:31 -0700614}
615
616message OnuProcessingErrorIndication {
617 fixed32 intf_id = 1;
618 fixed32 onu_id = 2;
619}
620
Devmalya Paulea6eb472020-02-04 20:41:01 -0500621message OnuDeactivationFailureIndication {
622 fixed32 intf_id = 1;
623 fixed32 onu_id = 2;
Girish Gowdra5192ea82020-05-06 20:49:11 -0700624 string status = 3;
Devmalya Paulea6eb472020-02-04 20:41:01 -0500625}
626
Jason Huang55ee29d2020-03-11 23:43:29 +0800627message OnuRemoteDefectIndication {
Devmalya Paulb0c12472020-02-18 20:08:53 -0500628 fixed32 intf_id = 1;
629 fixed32 onu_id = 2;
Jason Huang55ee29d2020-03-11 23:43:29 +0800630 fixed64 rdi_errors = 3;
Devmalya Paulb0c12472020-02-18 20:08:53 -0500631}
632
Devmalya Paul82957962020-03-01 18:49:37 -0500633message OnuLossOfGEMChannelDelineationIndication {
634 fixed32 intf_id = 1;
635 fixed32 onu_id = 2;
636 string status = 3;
637 fixed32 delineation_errors = 4;
638}
639
640message OnuPhysicalEquipmentErrorIndication {
641 fixed32 intf_id = 1;
642 fixed32 onu_id = 2;
643 string status = 3;
644}
645
646message OnuLossOfAcknowledgementIndication {
647 fixed32 intf_id = 1;
648 fixed32 onu_id = 2;
649 string status = 3;
650}
651
Devmalya Paul342bf9d2020-03-19 02:42:56 -0400652message OnuDifferentialReachExceededIndication {
653 fixed32 intf_id = 1;
654 fixed32 onu_id = 2;
655 string status = 3;
656 fixed32 distance = 4;
657}
658
Burak Gurdag402dd952019-12-10 20:31:11 +0000659message GroupMember {
660 enum InterfaceType {
661 PON = 0;
662 EPON_1G_PATH = 1;
663 EPON_10G_PATH = 2;
664 }
665 uint32 interface_id = 1;
666 InterfaceType interface_type = 2;
667 uint32 gem_port_id = 3;
668 uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic.
669 // This queue is attached to the default PON port scheduler.
670}
671
672message Group {
673 enum GroupMembersCommand {
674 ADD_MEMBERS = 0;
675 REMOVE_MEMBERS = 1;
676 SET_MEMBERS = 2;
677 }
678
679 uint32 group_id = 1;
680 GroupMembersCommand command = 2;
681 repeated GroupMember members = 3;
682 Action action = 4;
683}
684
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800685message ValueParam {
686 Onu onu = 1;
687 common.ValueType.Type value = 2;
688}
Burak Gurdag402dd952019-12-10 20:31:11 +0000689
Zack Williams52209662019-02-07 10:15:31 -0700690message Empty {}
Burak Gurdag402dd952019-12-10 20:31:11 +0000691