blob: 9ac58cfe0f1fec7ab7db05966bc0e74fe53c38ad [file] [log] [blame]
Joey Armstrong25589d82024-01-02 22:31:35 -05001// Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors
amit.ghosh9f6af0e2020-11-04 14:09:25 +01002//
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";
16
khenaidoo5fc5cea2021-08-11 17:39:16 -040017option go_package = "github.com/opencord/voltha-protos/v5/go/extension";
amit.ghosh9f6af0e2020-11-04 14:09:25 +010018option java_package = "org.opencord.voltha.extension";
19
20package extension;
21
khenaidoo4c6543e2021-10-19 17:25:58 -040022import "voltha_protos/ext_config.proto";
kesavand763d8002021-01-04 16:24:42 +053023import "google/protobuf/empty.proto";
Akash Kankanala761955c2024-02-21 19:32:20 +053024import "voltha_protos/common.proto";
amit.ghosh9f6af0e2020-11-04 14:09:25 +010025
khenaidoo4c6543e2021-10-19 17:25:58 -040026message ValueSet {
27 string id = 1;
28 oneof value{
29 config.AlarmConfig alarm_config = 2;
30 }
31}
32
33message ValueType {
34 enum Type {
35 EMPTY = 0;
36 DISTANCE = 1;
37 }
38}
39
40message ValueSpecifier {
41 string id = 1;
42 ValueType.Type value = 2;
43}
44
45message ReturnValues {
46 uint32 Set = 1; // Specifies what values are
47 // set/valid in return
48
49 uint32 Unsupported = 2; // Specifies requested values not
50 // supported by the device
51
52 uint32 Error = 3; // Specifies requested values not
53 // fetched because of error
54
55 uint32 Distance = 4; // Value of distance Set includes
56 // DISTANCE
57
58}
59
amit.ghosh9f6af0e2020-11-04 14:09:25 +010060message GetDistanceRequest {
61 string onuDeviceId = 1;
62}
63
64message GetDistanceResponse {
65 uint32 distance = 1; // distance in meters
66}
67
68message GetOnuUniInfoRequest {
69 uint32 uniIndex = 1; // Index of the uni starting from 0
70}
71
72message GetOnuUniInfoResponse {
73 enum ConfigurationInd {
74 UNKOWN = 0;
75 TEN_BASE_T_FDX = 1;
76 HUNDRED_BASE_T_FDX = 2;
77 GIGABIT_ETHERNET_FDX = 3;
78 TEN_G_ETHERNET_FDX = 4;
79 TEN_BASE_T_HDX = 5;
80 HUNDRED_BASE_T_HDX = 6;
81 GIGABIT_ETHERNET_HDX = 7;
82 }
83
84 enum AdministrativeState {
85 ADMSTATE_UNDEFINED = 0;
86 LOCKED = 1;
87 UNLOCKED = 2;
88 }
89
90 enum OperationalState {
91 OPERSTATE_UNDEFINED = 0;
92 ENABLED = 1;
93 DISABLED = 2;
94 }
95
96 AdministrativeState admState = 1;
97 OperationalState operState = 2;
98 ConfigurationInd configInd = 3;
99}
100
kesavand763d8002021-01-04 16:24:42 +0530101message GetOltPortCounters {
102 enum PortType {
103 Port_UNKNOWN = 0;
104 Port_ETHERNET_NNI = 1;
105 Port_PON_OLT = 2;
106 }
107 uint32 portNo = 1; // Device-unique port number
108 PortType portType = 2;
109}
110
111message GetOltPortCountersResponse {
112 uint64 txBytes = 1;
113 uint64 rxBytes = 2;
114 uint64 txPackets = 3;
115 uint64 rxPackets = 4;
116 uint64 txErrorPackets = 5;
117 uint64 rxErrorPackets = 6;
118 uint64 txBcastPackets = 7;
119 uint64 rxBcastPackets = 8;
120 uint64 txUcastPackets = 9;
121 uint64 rxUcastPackets = 10;
122 uint64 txMcastPackets = 11;
123 uint64 rxMcastPackets = 12;
124}
125
126message GetOnuPonOpticalInfo {
127 google.protobuf.Empty empty = 1;
128}
129
Girish Gowdrab1d742d2021-05-01 15:34:32 -0700130// These values correspond to the Optical Line Supervision Test results
131// described in section A3.39.5 of ITU-T G.988 (11/2017) specification.
kesavand763d8002021-01-04 16:24:42 +0530132message GetOnuPonOpticalInfoResponse{
Girish Gowdrab1d742d2021-05-01 15:34:32 -0700133 float powerFeedVoltage = 1; // unit of value is voltage
134 float receivedOpticalPower = 2; // unit of value is dBm
135 float meanOpticalLaunchPower = 3; // unit of value is dBm
Girish Gowdrabce9ea72021-05-05 08:47:49 -0700136 float laserBiasCurrent = 4; // unit of value is milli-amphere (mA)
Girish Gowdrab1d742d2021-05-01 15:34:32 -0700137 float temperature = 5; // unit of value is degree celsius
kesavand763d8002021-01-04 16:24:42 +0530138}
139
140message GetOnuEthernetBridgePortHistory {
141 enum Direction {
142 UNDEFINED = 0;
143 UPSTREAM = 1;
144 DOWNSTREAM = 2;
145 }
146 Direction direction = 1;
147}
148
149message GetOnuEthernetBridgePortHistoryResponse {
150 uint32 dropEvents = 1;
151 uint32 octets = 2;
152 uint32 packets= 3;
153 uint32 broadcastPackets = 4;
154 uint32 multicastPackets = 5;
155 uint32 crcErroredPackets = 6;
156 uint32 undersizePackets = 7;
157 uint32 oversizePackets = 8;
158 uint32 packets64octets = 9;
159 uint32 packets65To127octets = 10;
160 uint32 packets128To255Octets = 11;
161 uint32 packets256To511octets = 12;
162 uint32 packets512To1023octets = 13;
163 uint32 packets1024To1518octets = 14;
164}
165
Akash Kankanala761955c2024-02-21 19:32:20 +0530166// GetOnuAllocGemHistoryRequest collects GEM and AllocId stats from ONU
167message GetOnuAllocGemHistoryRequest {
168 google.protobuf.Empty empty = 1;
169}
170
171message OnuGemPortHistoryData {
172 uint32 gemId = 1;
173 uint32 transmittedGEMFrames= 2;
174 uint32 receivedGEMFrames = 3;
175 uint32 receivedPayloadBytes= 4;
176 uint32 transmittedPayloadBytes = 5;
177 uint32 encryptionKeyErrors = 6;
178}
179
180message OnuAllocHistoryData {
181 uint32 allocId = 1;
182 uint32 rxBytes = 2;
183}
184
185message OnuAllocGemHistoryData {
186 OnuAllocHistoryData onuAllocIdInfo = 1;
187 repeated OnuGemPortHistoryData gemPortInfo = 2;
188}
189
190message GetOnuAllocGemHistoryResponse {
191 repeated OnuAllocGemHistoryData onuAllocGemHistoryData = 1;
192}
193
kesavand763d8002021-01-04 16:24:42 +0530194message GetOnuFecHistory {
195 google.protobuf.Empty empty = 1;
196}
197
198message GetOnuFecHistoryResponse {
199 uint32 correctedBytes = 1;
200 uint32 correctedCodeWords = 2;
201 uint32 fecSeconds = 3;
202 uint32 totalCodeWords = 4;
203 uint32 uncorrectableCodeWords = 5;
204}
205
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530206message GetOnuCountersRequest {
207 fixed32 intf_id = 1;
208 fixed32 onu_id = 2;
209}
210
Himani Chawla9a497392021-05-28 13:04:42 +0530211message GetOmciEthernetFrameExtendedPmRequest {
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530212 string onuDeviceId = 1;
Himani Chawla393605c2021-08-30 13:44:13 +0530213 oneof is_uni_index {
214 uint32 uniIndex = 2; // Index of the uni starting from 0
215 }
216 bool reset = 3;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530217}
218
amit.ghosh8490b122022-11-28 15:45:04 +0100219// DEPRECATED
Gamze Abaka08683072021-05-26 13:38:02 +0000220message GetRxPowerRequest {
221 fixed32 intf_id = 1;
222 fixed32 onu_id = 2;
223}
224
amit.ghosh8490b122022-11-28 15:45:04 +0100225message GetOltRxPowerRequest {
226 string port_label = 1;
227 // onu_sn is optional and if onu_sn is an empty string and the label is
228 // of a PON port then it means that the Rx Power corresponding to all
229 // the ONUs on that PON port is requested. In case the port_label is not
230 // of a PON port, the onu_sn does not have any significance
231 string onu_sn = 2;
232}
233
Akash Kankanala761955c2024-02-21 19:32:20 +0530234message GetPonStatsRequest {
235 oneof portInfo {
236 string portLabel = 1;
237 fixed32 portId = 2;
238 }
239}
240
241message GetPonStatsResponse {
242 uint32 ponPort = 1;
243 common.PortStatistics portStatistics = 2;
244}
245
246message GetNNIStatsRequest {
247 oneof portInfo {
248 string portLabel = 1;
249 fixed32 portId = 2;
250 }
251}
252
253message GetNNIStatsResponse {
254 uint32 nniPort = 1;
255 common.PortStatistics portStatistics = 2;
256}
257
258// GetOnuStatsFromOltRequest collects GEM and AllocId stats from the OLT for a particular ONU.
259message GetOnuStatsFromOltRequest {
260 fixed32 intfId = 1;
261 fixed32 onuId = 2;
262}
263
264message OnuGemPortInfoFromOlt {
265 uint32 gemId = 1;
266 uint64 rxPackets = 2;
267 uint64 rxBytes = 3;
268 uint64 txPackets = 4;
269 uint64 txBytes = 5;
270}
271
272message OnuAllocIdInfoFromOlt {
273 uint32 allocId = 1;
274 uint64 rxBytes = 2;
275}
276
277message OnuAllocGemStatsFromOltResponse {
278 OnuAllocIdInfoFromOlt allocIdInfo = 1;
279 repeated OnuGemPortInfoFromOlt gemPortInfo = 2;
280}
281
282message GetOnuStatsFromOltResponse {
283 repeated OnuAllocGemStatsFromOltResponse allocGemStatsInfo = 1;
284}
285
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530286message GetOnuCountersResponse {
287 oneof is_intf_id {
288 fixed32 intf_id = 1;
289 }
290 oneof is_onu_id {
291 fixed32 onu_id = 2;
292 }
293 oneof is_positive_drift {
294 fixed64 positive_drift = 3;
295 }
296 oneof is_negative_drift {
297 fixed64 negative_drift = 4;
298 }
299 oneof is_delimiter_miss_detection {
300 fixed64 delimiter_miss_detection = 5;
301 }
302 oneof is_bip_errors {
303 fixed64 bip_errors = 6;
304 }
305 oneof is_bip_units {
306 fixed64 bip_units = 7;
307 }
308 oneof is_fec_corrected_symbols {
309 fixed64 fec_corrected_symbols = 8;
310 }
311 oneof is_fec_codewords_corrected {
312 fixed64 fec_codewords_corrected = 9;
313 }
314 oneof is_fec_codewords_uncorrectable {
315 fixed64 fec_codewords_uncorrectable = 10;
316 }
317 oneof is_fec_codewords {
318 fixed64 fec_codewords = 11;
319 }
320 oneof is_fec_corrected_units {
321 fixed64 fec_corrected_units = 12;
322 }
323 oneof is_xgem_key_errors {
324 fixed64 xgem_key_errors = 13;
325 }
326 oneof is_xgem_loss {
327 fixed64 xgem_loss = 14;
328 }
329 oneof is_rx_ploams_error {
330 fixed64 rx_ploams_error = 15;
331 }
332 oneof is_rx_ploams_non_idle {
333 fixed64 rx_ploams_non_idle = 16;
334 }
335 oneof is_rx_omci {
336 fixed64 rx_omci = 17;
337 }
338 oneof is_tx_omci {
339 fixed64 tx_omci = 18;
340 }
341 oneof is_rx_omci_packets_crc_error {
342 fixed64 rx_omci_packets_crc_error = 19;
343 }
344 oneof is_rx_bytes {
345 fixed64 rx_bytes = 20;
346 }
347 oneof is_rx_packets {
348 fixed64 rx_packets = 21;
349 }
350 oneof is_tx_bytes {
351 fixed64 tx_bytes = 22;
352 }
353 oneof is_tx_packets {
354 fixed64 tx_packets = 23;
355 }
356 oneof is_ber_reported {
357 fixed64 ber_reported = 24;
358 }
359 oneof is_lcdg_errors {
360 fixed64 lcdg_errors = 25;
361 }
362 oneof is_rdi_errors {
363 fixed64 rdi_errors = 26;
364 }
365 oneof is_timestamp {
366 // reported timestamp in seconds since epoch
367 fixed32 timestamp = 27;
368 }
369}
370
Himani Chawla9a497392021-05-28 13:04:42 +0530371message OmciEthernetFrameExtendedPm {
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530372 fixed64 drop_events = 1;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530373 fixed64 octets = 2;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530374 fixed64 frames = 3;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530375 fixed64 broadcast_frames = 4;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530376 fixed64 multicast_frames = 5;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530377 fixed64 crc_errored_frames = 6;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530378 fixed64 undersize_frames = 7;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530379 fixed64 oversize_frames = 8;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530380 fixed64 frames_64_octets = 9;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530381 fixed64 frames_65_to_127_octets = 10;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530382 fixed64 frames_128_to_255_octets = 11;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530383 fixed64 frames_256_to_511_octets = 12;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530384 fixed64 frames_512_to_1023_octets = 13;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530385 fixed64 frames_1024_to_1518_octets = 14;
Himani Chawla9a497392021-05-28 13:04:42 +0530386}
387
388message GetOmciEthernetFrameExtendedPmResponse {
Himani Chawla654f7f32021-08-25 16:31:24 +0530389 enum Format {
390 THIRTY_TWO_BIT = 0;
391 SIXTY_FOUR_BIT = 1;
392 }
Himani Chawla9a497392021-05-28 13:04:42 +0530393 OmciEthernetFrameExtendedPm upstream = 1;
394 OmciEthernetFrameExtendedPm downstream = 2;
Himani Chawla654f7f32021-08-25 16:31:24 +0530395 Format omci_ethernet_frame_extended_pm_format= 3;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530396}
397
amit.ghosh8490b122022-11-28 15:45:04 +0100398message RxPower {
399 string onu_sn = 1; // if the port on which RxPower is measured is not a PON port this will be empty ("") string
400 string status = 2;
401 string fail_reason = 3;
402 double rx_power = 4;
403}
404
405message GetOltRxPowerResponse {
406 string port_label= 1;
407 repeated RxPower rx_power = 2;
408}
409
410// DEPRECATED
Gamze Abaka08683072021-05-26 13:38:02 +0000411message GetRxPowerResponse {
412 fixed32 intf_id= 1;
413 fixed32 onu_id = 2;
414 string status = 3;
415 string fail_reason = 4;
416 double rx_power = 5;
417}
418
Holger Hildebrandt3374b882022-09-06 11:40:16 +0000419message GetOnuOmciTxRxStatsRequest{
420 google.protobuf.Empty empty = 1;
421}
422
423// see ITU-T G.988 clause 11.2.2
424message GetOnuOmciTxRxStatsResponse {
425 // OMCI baseline Tx frames with AR bit set
426 uint32 base_tx_ar_frames = 1;
427 // OMCI baseline Rx frames with AK bit set
428 uint32 base_rx_ak_frames = 2;
429 // OMCI baseline Tx frames with AR bit unset
430 uint32 base_tx_no_ar_frames = 3;
431 // OMCI baseline Rx frames with AK bit unset
432 uint32 base_rx_no_ak_frames = 4;
433 // OMCI extended Tx frames with AR bit set
434 uint32 ext_tx_ar_frames = 5;
435 // OMCI extended Rx frames with AK bit set
436 uint32 ext_rx_ak_frames = 6;
437 // OMCI extended Tx frames with AR bit unset
438 uint32 ext_tx_no_ar_frames = 7;
439 // OMCI extended Rx frames with AK bit unset
440 uint32 ext_rx_no_ak_frames = 8;
441 // Number of retries of requests (tx) due to not received responses (Rx)
442 uint32 tx_omci_counter_retries = 9;
443 // Number of timeouts of requests (tx) due to not received responses (Rx) after configured number of retries
444 uint32 tx_omci_counter_timeouts = 10;
445}
446
praneeth kumar nalmas6230f492022-12-22 11:11:13 +0530447message GetOnuOmciActiveAlarmsRequest{
448 google.protobuf.Empty empty = 1;
449}
450
451message AlarmData{
452 uint32 class_id = 1;
453 uint32 instance_id = 2;
454 string name = 3;
455 string description = 4;
456}
457
458message GetOnuOmciActiveAlarmsResponse{
459 repeated AlarmData active_alarms = 1;
460}
461
amit.ghoshf017eab2024-06-28 15:09:33 +0200462message GetOffloadedAppsStatisticsRequest {
463 enum OffloadedApp {
464 UNDEFINED = 0;
465 PPPoeIA = 1;
466 DHCPv4RA = 2;
467 DHCPv6RA = 3;
468 }
469 // The offloaded application whose statistics are requested
470 OffloadedApp statsFor = 1;
471}
472
473message GetOffloadedAppsStatisticsResponse {
474 message DHCPv4RAStats {
475 // From https://github.com/BroadbandForum/yang/blob/master/standard/networking/bbf-l2-dhcpv4-relay.yang
476 uint32 in_bad_packets_from_client = 1;
477 uint32 in_bad_packets_from_server = 2;
478 uint32 in_packets_from_client = 3;
479 uint32 in_packets_from_server = 4;
480 uint32 out_packets_to_server = 5;
481 uint32 out_packets_to_client = 6;
482 uint32 option_82_inserted_packets_to_server = 7;
483 uint32 option_82_removed_packets_to_client = 8;
484 uint32 option_82_not_inserted_to_server = 9;
485
486 // Name value pairs that gives the flexibility to report different statistics that implementations may choose
487 map<string, string> additional_stats = 10;
488 }
489
490 message DHCPv6RAStats {
491 // From https://github.com/BroadbandForum/yang/blob/master/standard/networking/bbf-ldra.yang
492 uint32 in_bad_packets_from_client = 1;
493 uint32 in_bad_packets_from_server = 2;
494 uint32 option_17_inserted_packets_to_server = 3;
495 uint32 option_17_removed_packets_to_client = 4;
496 uint32 option_18_inserted_packets_to_server = 5;
497 uint32 option_18_removed_packets_to_client = 6;
498 uint32 option_37_inserted_packets_to_server = 7;
499 uint32 option_37_removed_packets_to_client = 8;
500 uint32 outgoing_mtu_exceeded_packets_from_client = 9;
501
502 // Name value pairs that gives the flexibility to report different statistics that implementations may choose
503 map<string, string> additional_stats = 10;
504 }
505
506 message PPPoeIAStats {
507 // From https://github.com/BroadbandForum/yang/blob/master/standard/networking/bbf-pppoe-intermediate-agent.yang
508 uint32 in_error_packets_from_client = 1;
509 uint32 in_error_packets_from_server = 2;
510 uint32 in_packets_from_client = 3;
511 uint32 in_packets_from_server = 4;
512 uint32 out_packets_to_server = 5;
513 uint32 out_packets_to_client = 6;
514 uint32 vendor_specific_tag_inserted_packets_to_server = 7;
515 uint32 vendor_specific_tag_removed_packets_to_client = 8;
516 uint32 outgoing_mtu_exceeded_packets_from_client = 9;
517
518 // Name value pairs that gives the flexibility to report different statistics that implementations may choose
519 map<string, string> additional_stats = 10;
520 }
521
522 oneof stats {
523 DHCPv4RAStats dhcpv4RaStats = 1;
524 DHCPv6RAStats dhcpv6RaStats = 2;
525 PPPoeIAStats pppoeIaStats = 3;
526 }
527}
praneeth kumar nalmas6230f492022-12-22 11:11:13 +0530528
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100529message GetValueRequest {
530 oneof request {
531 GetDistanceRequest distance = 1;
532 GetOnuUniInfoRequest uniInfo = 2;
amit.ghoshf017eab2024-06-28 15:09:33 +0200533 // Corresponds to PmMetricId.PON_PORT_COUNTERS, PmMetricId.NNI_PORT_COUNTERS
kesavand763d8002021-01-04 16:24:42 +0530534 GetOltPortCounters oltPortInfo = 3;
535 // Corresponds to PmMetricId.PON_OPTICAL
536 GetOnuPonOpticalInfo onuOpticalInfo = 4;
537 // Corresponds to PmMetricId.ETHERNET_BRIDGE_PORT_HISTORY
538 GetOnuEthernetBridgePortHistory ethBridgePort = 5;
539 // Corresponds to PmMetricId.FEC_HISTORY
Gamze Abaka08683072021-05-26 13:38:02 +0000540 GetOnuFecHistory fecHistory = 6;
541 GetOnuCountersRequest onuPonInfo = 7;
Himani Chawla9a497392021-05-28 13:04:42 +0530542 GetOmciEthernetFrameExtendedPmRequest onuInfo = 8;
amit.ghosh8490b122022-11-28 15:45:04 +0100543 GetRxPowerRequest rxPower = 9; // This is deprecated
Holger Hildebrandt3374b882022-09-06 11:40:16 +0000544 GetOnuOmciTxRxStatsRequest onuOmciStats = 10;
amit.ghosh8490b122022-11-28 15:45:04 +0100545 GetOltRxPowerRequest oltRxPower = 11;
praneeth kumar nalmas6230f492022-12-22 11:11:13 +0530546 GetOnuOmciActiveAlarmsRequest onuActiveAlarms = 12;
amit.ghoshf017eab2024-06-28 15:09:33 +0200547 GetOffloadedAppsStatisticsRequest offloadedAppsStats = 13;
Akash Kankanala761955c2024-02-21 19:32:20 +0530548 GetOnuAllocGemHistoryRequest onuAllocGemStats = 14;
549 GetOnuStatsFromOltRequest onuStatsFromOlt = 15;
550 GetPonStatsRequest oltPonStats = 16;
551 GetNNIStatsRequest oltNniStats = 17;
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100552 }
553}
554
555message GetValueResponse {
556 enum Status {
557 STATUS_UNDEFINED = 0;
558 OK = 1;
559 ERROR = 2;
560 }
561
562 enum ErrorReason {
563 REASON_UNDEFINED = 0;
564 UNSUPPORTED = 1;
kesavand763d8002021-01-04 16:24:42 +0530565 INVALID_DEVICE_ID = 2;
566 INVALID_PORT_TYPE = 3;
567 TIMEOUT = 4;
568 INVALID_REQ_TYPE = 5;
Himani Chawlae5bb7ca2021-05-17 15:48:32 +0530569 INTERNAL_ERROR = 6;
570 INVALID_DEVICE = 7;
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100571 }
572 Status status = 1;
573 ErrorReason errReason = 2;
574
575 oneof response {
576 GetDistanceResponse distance = 3;
577 GetOnuUniInfoResponse uniInfo = 4;
kesavand763d8002021-01-04 16:24:42 +0530578 GetOltPortCountersResponse portCoutners = 5;
579 GetOnuPonOpticalInfoResponse onuOpticalInfo = 6;
580 GetOnuEthernetBridgePortHistoryResponse ethBridgePortInfo = 7;
581 GetOnuFecHistoryResponse fecHistory = 8;
Gamze Abaka08683072021-05-26 13:38:02 +0000582 GetOnuCountersResponse onuPonCounters = 9;
Himani Chawla9a497392021-05-28 13:04:42 +0530583 GetOmciEthernetFrameExtendedPmResponse onuCounters = 10;
amit.ghosh8490b122022-11-28 15:45:04 +0100584 GetRxPowerResponse rxPower = 11; // This is DEPRECATED
Holger Hildebrandt3374b882022-09-06 11:40:16 +0000585 GetOnuOmciTxRxStatsResponse onuOmciStats = 12;
amit.ghosh8490b122022-11-28 15:45:04 +0100586 GetOltRxPowerResponse oltRxPower = 13;
praneeth kumar nalmas6230f492022-12-22 11:11:13 +0530587 GetOnuOmciActiveAlarmsResponse onuActiveAlarms = 14;
amit.ghoshf017eab2024-06-28 15:09:33 +0200588 GetOffloadedAppsStatisticsResponse offloadedAppsStats = 15;
Akash Kankanala761955c2024-02-21 19:32:20 +0530589 GetOnuAllocGemHistoryResponse onuAllocGemStatsResponse = 16;
590 GetOnuStatsFromOltResponse onuStatsFromOltResponse = 17;
591 GetPonStatsResponse oltPonStatsResponse = 18;
592 GetNNIStatsResponse oltNniStatsResponse = 19;
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100593 }
594}
595
amit.ghoshf017eab2024-06-28 15:09:33 +0200596// AppOffloadConfig is the configuration for offloading applications to the OLT and has OLT wide configuration.
597message AppOffloadConfig {
598 bool enableDHCPv4RA = 1;
599 bool enableDHCPv6RA = 2;
600 bool enablePPPoEIA = 3;
601 // Follows the same as the BBF Access Node Id defined in https://github.com/BroadbandForum/yang/blob/master/standard/networking/bbf-subscriber-profiles.yang
602 string accessNodeID = 4;
603}
604
605// AppOffloadOnuConfig has Onu specfic configuration which the OLT runs applications which have been offloaded.
606message AppOffloadOnuConfig {
607 string onuDeviceId = 1;
608
609 message PerUniConfig {
610 // As per the BBF Agent Remote Id defined in https://github.com/BroadbandForum/yang/blob/master/standard/networking/bbf-pppoe-intermediate-agent-profile-common.yang
611 string agentRemoteID = 2;
612 // As per the BBF Agent Circuit Id defined in https://github.com/BroadbandForum/yang/blob/master/standard/networking/bbf-pppoe-intermediate-agent-profile-common.yang
613 string agentCircuitID = 3;
614 // The id of the UNI on the Onu for which this configuration is relevant. The UNI ids are numbered from 0 to n depending on the number of UNI ports on the ONU.
615 uint32 onuUniId = 4;
616 }
617
618 repeated PerUniConfig perUniInfo = 5;
619
620}
621
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100622message SetValueRequest {
623 oneof request {
624 config.AlarmConfig alarm_config = 1;
amit.ghoshf017eab2024-06-28 15:09:33 +0200625 AppOffloadConfig app_offload_config = 2;
626 AppOffloadOnuConfig app_offload_onu_config = 3;
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100627 }
628}
629
630message SetValueResponse {
631 enum Status {
632 STATUS_UNDEFINED = 0;
633 OK = 1;
634 ERROR = 2;
635 }
636
637 enum ErrorReason {
638 REASON_UNDEFINED = 0;
639 UNSUPPORTED = 1;
amit.ghoshf017eab2024-06-28 15:09:33 +0200640 INVALID_DEVICE_ID = 2;
641 INVALID_ONU_DEVICE_ID = 3;
642 INVALID_UNI_ID = 4;
amit.ghosh9f6af0e2020-11-04 14:09:25 +0100643 }
644 Status status = 1;
645 ErrorReason errReason = 2;
646
647 // As of now we don't have any explicit response for the supported SetValueRequests
648 // to be used later
649 //oneof response {
650 //
651 //}
652}
653
654message SingleGetValueRequest {
655 string targetId = 1;
656 GetValueRequest request = 2;
657}
658
659message SingleGetValueResponse{
660 GetValueResponse response = 1;
661}
662
663message SingleSetValueRequest {
664 string targetId = 1;
665 SetValueRequest request = 2;
666}
667message SingleSetValueResponse {
668 SetValueResponse response = 1;
669}
670
671// Extension is a service to get and set specific attributes
672service Extension {
673 // Get a single attribute
674 rpc GetExtValue(SingleGetValueRequest) returns (SingleGetValueResponse);
675 // Set a single attribute
676 rpc SetExtValue(SingleSetValueRequest) returns (SingleSetValueResponse);
677}