Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 1 | // 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 | |
| 15 | syntax = "proto3"; |
William Kurkian | 7c15159 | 2019-03-27 09:36:15 -0400 | [diff] [blame] | 16 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 17 | option go_package = "github.com/opencord/voltha-protos/v5/go/openolt"; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 18 | option java_package = "org.opencord.voltha.openolt"; |
| 19 | option java_outer_classname = "VolthaOpenOLT"; |
William Kurkian | 7c15159 | 2019-03-27 09:36:15 -0400 | [diff] [blame] | 20 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 21 | package openolt; |
| 22 | import "google/api/annotations.proto"; |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 23 | import "voltha_protos/tech_profile.proto"; |
dpaul | 2b52e71 | 2020-06-23 13:02:28 +0530 | [diff] [blame] | 24 | import "voltha_protos/ext_config.proto"; |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 25 | import "voltha_protos/extensions.proto"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 26 | |
| 27 | service 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 Abaka | 66fe96f | 2020-12-17 13:27:27 +0000 | [diff] [blame] | 141 | 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 Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 155 | rpc CreateTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 156 | option (google.api.http) = { |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 157 | post: "/v1/CreateTrafficSchedulers" |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 158 | body: "*" |
| 159 | }; |
| 160 | } |
| 161 | |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 162 | rpc RemoveTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 163 | option (google.api.http) = { |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 164 | 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 Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 179 | body: "*" |
| 180 | }; |
| 181 | } |
| 182 | |
| 183 | rpc EnableIndication(Empty) returns (stream Indication) {} |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 184 | |
| 185 | rpc PerformGroupOperation(Group) returns (Empty) { |
| 186 | option (google.api.http) = { |
| 187 | post: "/v1/PerformGroupOperation" |
| 188 | body: "*" |
| 189 | }; |
| 190 | } |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 191 | |
Burak Gurdag | aadbcc0 | 2020-05-18 14:22:38 +0000 | [diff] [blame] | 192 | rpc DeleteGroup(Group) returns (Empty) { |
| 193 | option (google.api.http) = { |
| 194 | post: "/v1/DeleteGroup" |
| 195 | body: "*" |
| 196 | }; |
| 197 | } |
| 198 | |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 199 | rpc GetExtValue(ValueParam) returns (extension.ReturnValues) { |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 200 | option (google.api.http) = { |
| 201 | post: "/v1/GetExtValue" |
| 202 | body: "*" |
| 203 | }; |
| 204 | } |
| 205 | |
dpaul | 2b52e71 | 2020-06-23 13:02:28 +0530 | [diff] [blame] | 206 | rpc OnuItuPonAlarmSet(config.OnuItuPonAlarm) returns (Empty) { |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 207 | option (google.api.http) = { |
| 208 | post: "/v1/OnuItuPonAlarmSet" |
| 209 | body: "*" |
| 210 | }; |
| 211 | } |
Jason Huang | 4f8a937 | 2020-06-03 18:09:35 +0800 | [diff] [blame] | 212 | |
| 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 Kupusoglu | da19b45 | 2021-05-12 12:19:16 +0000 | [diff] [blame] | 226 | |
| 227 | rpc GetPonRxPower(Onu) returns (PonRxPowerData) { |
| 228 | option (google.api.http) = { |
| 229 | post: "/v1/GetPonRxPower" |
| 230 | body: "*" |
| 231 | }; |
| 232 | } |
Abhilash Laxmeshwar | d95e199 | 2023-03-13 18:52:05 +0530 | [diff] [blame] | 233 | |
| 234 | /* |
| 235 | * GetObjects gets takes in type of the object and request details as argument. |
| 236 | * Returns the Object from the device. |
| 237 | */ |
| 238 | rpc GetObject(ObjectDataRequest) returns (ObjectDataResponse) { |
| 239 | option (google.api.http) = { |
| 240 | post: "/v1/GetObject" |
| 241 | body: "*" |
| 242 | }; |
| 243 | } |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 244 | } |
| 245 | |
| 246 | message Indication { |
| 247 | oneof data { |
| 248 | OltIndication olt_ind = 1; |
| 249 | IntfIndication intf_ind = 2; |
| 250 | IntfOperIndication intf_oper_ind = 3; |
| 251 | OnuDiscIndication onu_disc_ind = 4; |
| 252 | OnuIndication onu_ind = 5; |
| 253 | OmciIndication omci_ind = 6; |
| 254 | PacketIndication pkt_ind = 7; |
| 255 | PortStatistics port_stats = 8; |
| 256 | FlowStatistics flow_stats = 9; |
| 257 | AlarmIndication alarm_ind= 10; |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | message AlarmIndication { |
| 262 | oneof data { |
| 263 | LosIndication los_ind = 1; |
| 264 | DyingGaspIndication dying_gasp_ind = 2; |
| 265 | OnuAlarmIndication onu_alarm_ind = 3; |
| 266 | OnuStartupFailureIndication onu_startup_fail_ind = 4; |
| 267 | OnuSignalDegradeIndication onu_signal_degrade_ind = 5; |
| 268 | OnuDriftOfWindowIndication onu_drift_of_window_ind = 6; |
| 269 | OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7; |
| 270 | OnuSignalsFailureIndication onu_signals_fail_ind = 8; |
| 271 | OnuTransmissionInterferenceWarning onu_tiwi_ind = 9; |
| 272 | OnuActivationFailureIndication onu_activation_fail_ind = 10; |
| 273 | OnuProcessingErrorIndication onu_processing_error_ind = 11; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 274 | OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12; |
| 275 | OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13; |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 276 | OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14; |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 277 | OnuRemoteDefectIndication onu_remote_defect_ind = 15; |
Devmalya Paul | 8295796 | 2020-03-01 18:49:37 -0500 | [diff] [blame] | 278 | OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16; |
| 279 | OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17; |
| 280 | OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18; |
Devmalya Paul | 342bf9d | 2020-03-19 02:42:56 -0400 | [diff] [blame] | 281 | OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 282 | } |
| 283 | } |
| 284 | |
| 285 | message OltIndication { |
| 286 | string oper_state = 1; // up, down |
| 287 | } |
| 288 | |
| 289 | message IntfIndication { |
| 290 | fixed32 intf_id = 1; |
| 291 | string oper_state = 2; // up, down |
| 292 | } |
| 293 | |
| 294 | message OnuDiscIndication { |
| 295 | fixed32 intf_id = 1; |
| 296 | SerialNumber serial_number = 2; |
| 297 | } |
| 298 | |
| 299 | message OnuIndication { |
| 300 | fixed32 intf_id = 1; |
| 301 | fixed32 onu_id = 2; |
| 302 | string oper_state = 3; // up, down |
| 303 | string admin_state = 5; // up, down |
| 304 | SerialNumber serial_number = 4; |
kesavand | d1a8bca | 2020-08-27 19:24:07 +0530 | [diff] [blame] | 305 | /** activation fail reason. */ |
| 306 | enum ActivationFailReason |
| 307 | { |
| 308 | ONU_ACTIVATION_FAIL_REASON_NONE = 0; |
| 309 | ONU_ACTIVATION_FAIL_REASON_RANGING = 1; //Ranging Failure |
| 310 | ONU_ACTIVATION_FAIL_REASON_PASSWORD_AUTHENTICATION = 2; //Password authentication |
| 311 | ONU_ACTIVATION_FAIL_REASON_LOS = 3; //LOS |
| 312 | ONU_ACTIVATION_FAIL_ONU_ALARM = 4; // ONU Alarm |
| 313 | ONU_ACTIVATION_FAIL_SWITCH_OVER = 5; //protection switch over |
| 314 | } |
| 315 | ActivationFailReason fail_reason = 6; |
| 316 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 317 | } |
| 318 | |
| 319 | message IntfOperIndication { |
| 320 | string type = 1; // nni, pon |
| 321 | fixed32 intf_id = 2; |
| 322 | string oper_state = 3; // up, down |
Elia Battiston | 345a5b7 | 2022-02-01 10:17:56 +0100 | [diff] [blame] | 323 | fixed32 speed = 4; // measured in Mbps |
Girish Gowdra | 34ff0c4 | 2022-03-10 16:04:23 -0800 | [diff] [blame] | 324 | string technology = 5; |
| 325 | |
| 326 | message PONResourceRanges { |
| 327 | |
| 328 | message Pool { |
| 329 | |
| 330 | enum PoolType { |
| 331 | ONU_ID = 0; |
| 332 | ALLOC_ID = 1; |
| 333 | GEMPORT_ID = 2; |
| 334 | FLOW_ID = 3; |
| 335 | } |
| 336 | |
| 337 | |
| 338 | PoolType type = 1; |
| 339 | fixed32 start = 3; // lower bound on IDs allocated from this pool |
| 340 | fixed32 end = 4; // upper bound on IDs allocated from this pool |
| 341 | } |
| 342 | |
| 343 | repeated Pool pools = 3; |
| 344 | } |
| 345 | |
| 346 | PONResourceRanges ranges = 6; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 347 | } |
| 348 | |
| 349 | message OmciIndication { |
| 350 | fixed32 intf_id = 1; |
| 351 | fixed32 onu_id = 2; |
| 352 | bytes pkt = 3; |
| 353 | } |
| 354 | |
| 355 | message PacketIndication { |
| 356 | string intf_type = 5; // nni, pon, unknown |
| 357 | fixed32 intf_id = 1; |
Girish Gowdra | 31a356c | 2021-05-14 15:56:04 -0700 | [diff] [blame] | 358 | fixed32 onu_id = 8; |
| 359 | fixed32 uni_id = 9; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 360 | fixed32 gemport_id = 2; |
| 361 | fixed32 flow_id = 3; |
| 362 | fixed32 port_no = 6; |
| 363 | fixed64 cookie = 7; |
| 364 | bytes pkt = 4; |
| 365 | } |
| 366 | |
| 367 | message Interface { |
| 368 | fixed32 intf_id = 1; |
| 369 | } |
| 370 | |
| 371 | message Heartbeat { |
| 372 | fixed32 heartbeat_signature = 1; |
| 373 | } |
| 374 | |
| 375 | message Onu { |
| 376 | fixed32 intf_id = 1; |
| 377 | fixed32 onu_id = 2; |
| 378 | SerialNumber serial_number = 3; |
| 379 | fixed32 pir = 4; // peak information rate assigned to onu |
kesavand | 66bade7 | 2020-08-05 06:16:34 +0200 | [diff] [blame] | 380 | bool omcc_encryption = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 381 | } |
| 382 | |
Jason Huang | 4f8a937 | 2020-06-03 18:09:35 +0800 | [diff] [blame] | 383 | message OnuLogicalDistance { |
| 384 | fixed32 intf_id = 1; |
| 385 | fixed32 onu_id = 2; |
| 386 | fixed32 logical_onu_distance_zero = 3; //0km logical distance |
| 387 | fixed32 logical_onu_distance = 4; |
| 388 | } |
| 389 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 390 | message OmciMsg { |
| 391 | fixed32 intf_id = 1; |
| 392 | fixed32 onu_id = 2; |
| 393 | bytes pkt = 3; |
| 394 | } |
| 395 | |
| 396 | message OnuPacket { |
| 397 | fixed32 intf_id = 1; |
| 398 | fixed32 onu_id = 2; |
| 399 | fixed32 port_no = 4; |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 400 | fixed32 gemport_id = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 401 | bytes pkt = 3; |
| 402 | } |
| 403 | |
| 404 | message UplinkPacket { |
| 405 | fixed32 intf_id = 1; |
| 406 | bytes pkt = 2; |
| 407 | } |
| 408 | |
| 409 | message DeviceInfo { |
| 410 | string vendor = 1; |
| 411 | string model = 2; |
| 412 | string hardware_version = 3; |
| 413 | string firmware_version = 4; |
| 414 | string device_id = 16; |
| 415 | string device_serial_number = 17; |
Gamze Abaka | 7a0d394 | 2021-03-11 11:41:36 +0000 | [diff] [blame] | 416 | bool previously_connected = 19; // used to indicate agent reconcile status |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 417 | |
| 418 | // Total number of pon intf ports on the device |
| 419 | fixed32 pon_ports = 12; |
| 420 | |
Elia Battiston | 3e45198 | 2022-02-23 09:43:26 +0100 | [diff] [blame] | 421 | reserved 5 to 11, 13, 14; |
| 422 | // Not used anymore, this information is defined per-range only |
| 423 | // and is fully provided by DeviceResourceRanges |
| 424 | // |
| 425 | // string technology = 5; |
| 426 | // fixed32 onu_id_start = 6; |
| 427 | // fixed32 onu_id_end = 7; |
| 428 | // fixed32 alloc_id_start = 8; |
| 429 | // fixed32 alloc_id_end = 9; |
| 430 | // fixed32 gemport_id_start = 10; |
| 431 | // fixed32 gemport_id_end = 11; |
| 432 | // fixed32 flow_id_start = 13; |
| 433 | // fixed32 flow_id_end = 14; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 434 | |
| 435 | message DeviceResourceRanges { |
| 436 | |
| 437 | // List of 0 or more intf_ids that use the same technology and pools. |
| 438 | // If 0 intf_ids supplied, it implies ALL interfaces |
| 439 | repeated fixed32 intf_ids = 1; |
| 440 | |
| 441 | // Technology profile for this pool |
| 442 | string technology = 2; |
| 443 | |
| 444 | message Pool { |
| 445 | enum PoolType { |
| 446 | ONU_ID = 0; |
| 447 | ALLOC_ID = 1; |
| 448 | GEMPORT_ID = 2; |
| 449 | FLOW_ID = 3; |
| 450 | } |
| 451 | |
| 452 | enum SharingType { |
| 453 | DEDICATED_PER_INTF = 0; |
| 454 | SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges |
| 455 | SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range |
| 456 | } |
| 457 | |
| 458 | PoolType type = 1; |
| 459 | SharingType sharing = 2; |
| 460 | fixed32 start = 3; // lower bound on IDs allocated from this pool |
| 461 | fixed32 end = 4; // upper bound on IDs allocated from this pool |
| 462 | } |
| 463 | repeated Pool pools = 3; |
| 464 | } |
| 465 | repeated DeviceResourceRanges ranges = 15; |
| 466 | } |
| 467 | |
| 468 | message Classifier { |
| 469 | fixed32 o_tpid = 1; |
| 470 | fixed32 o_vid = 2; |
| 471 | fixed32 i_tpid = 3; |
| 472 | fixed32 i_vid = 4; |
| 473 | fixed32 o_pbits = 5; |
| 474 | fixed32 i_pbits = 6; |
| 475 | fixed32 eth_type = 7; |
| 476 | bytes dst_mac = 8; |
| 477 | bytes src_mac = 9; |
| 478 | fixed32 ip_proto = 10; |
| 479 | fixed32 dst_ip = 11; |
| 480 | fixed32 src_ip = 12; |
| 481 | fixed32 src_port = 13; |
| 482 | fixed32 dst_port = 14; |
| 483 | string pkt_tag_type = 15; // untagged, single_tag, double_tag |
| 484 | } |
| 485 | |
| 486 | message ActionCmd { |
| 487 | bool add_outer_tag = 1; |
| 488 | bool remove_outer_tag = 2; |
| 489 | bool trap_to_host = 3; |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 490 | bool remark_outer_pbits = 4; |
| 491 | bool remark_inner_pbits = 5; |
| 492 | bool add_inner_tag = 6; |
| 493 | bool remove_inner_tag = 7; |
| 494 | bool translate_inner_tag = 8; |
| 495 | bool translate_outer_tag = 9; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 496 | } |
| 497 | |
| 498 | message Action { |
| 499 | ActionCmd cmd = 1; |
| 500 | fixed32 o_vid = 2; |
| 501 | fixed32 o_pbits = 3; |
| 502 | fixed32 o_tpid = 4; |
| 503 | fixed32 i_vid = 5; |
| 504 | fixed32 i_pbits = 6; |
| 505 | fixed32 i_tpid = 7; |
| 506 | } |
| 507 | |
| 508 | message Flow { |
| 509 | sfixed32 access_intf_id = 1; |
| 510 | sfixed32 onu_id = 2; |
| 511 | sfixed32 uni_id = 11; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 512 | |
| 513 | fixed64 flow_id = 3; // voltha flow-id. 0 is not a valid flow_id |
| 514 | fixed64 symmetric_flow_id = 18; // symmetric voltha flow-id, if applicable. All data path flows generally have a symmetric flow, |
| 515 | // but trap-to-controller flows do not have a symmetric flow |
| 516 | // Broadcom BAL requires that symmetric flows use the same BAL flow-id |
| 517 | |
| 518 | string flow_type = 4; // upstream, downstream, broadcast, multicast |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 519 | sfixed32 alloc_id = 10; |
| 520 | sfixed32 network_intf_id = 5; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 521 | sfixed32 gemport_id = 6; // When 'replicate_flow' field is true, this field is obsolete. |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 522 | Classifier classifier = 7; |
| 523 | Action action = 8; |
| 524 | sfixed32 priority = 9; |
| 525 | fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication |
| 526 | fixed32 port_no = 13; // must be provided for any flow with trap_to_host action. Returned in PacketIndication |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 527 | fixed32 group_id = 14; |
Burak Gurdag | ce06435 | 2020-04-20 20:11:18 +0000 | [diff] [blame] | 528 | fixed32 tech_profile_id = 15; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 529 | |
| 530 | bool replicate_flow = 16; // When this field is true, use pbitToGemPortID to know which p-bit needs to be classfied to which gem port. |
| 531 | map<fixed32, fixed32> pbit_to_gemport = 17; // Map of p-bit to gem port ID |
Gamze Abaka | d8caefa | 2021-02-26 10:31:15 +0000 | [diff] [blame] | 532 | map<fixed32, bool> gemport_to_aes = 19; // Map of gem port ID to aes encryption |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 533 | } |
| 534 | |
| 535 | message SerialNumber { |
| 536 | bytes vendor_id = 1; |
| 537 | bytes vendor_specific = 2; |
| 538 | } |
| 539 | |
| 540 | message PortStatistics { |
| 541 | fixed32 intf_id = 1; |
| 542 | fixed64 rx_bytes = 2; |
| 543 | fixed64 rx_packets = 3; |
| 544 | fixed64 rx_ucast_packets = 4; |
| 545 | fixed64 rx_mcast_packets = 5; |
| 546 | fixed64 rx_bcast_packets = 6; |
| 547 | fixed64 rx_error_packets = 7; |
Jason Huang | c9243f1 | 2020-10-21 17:56:05 +0800 | [diff] [blame] | 548 | fixed64 rx_frames = 17; |
| 549 | fixed64 rx_frames_64 = 18; |
| 550 | fixed64 rx_frames_65_127 = 19; |
| 551 | fixed64 rx_frames_128_255 = 20; |
| 552 | fixed64 rx_frames_256_511 = 21; |
| 553 | fixed64 rx_frames_512_1023 = 22; |
| 554 | fixed64 rx_frames_1024_1518 = 23; |
| 555 | fixed64 rx_frames_1519_2047 = 24; |
| 556 | fixed64 rx_frames_2048_4095 = 25; |
| 557 | fixed64 rx_frames_4096_9216 = 26; |
| 558 | fixed64 rx_frames_9217_16383 = 27; |
| 559 | fixed64 rx_crc_errors = 14; |
| 560 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 561 | fixed64 tx_bytes = 8; |
| 562 | fixed64 tx_packets = 9; |
| 563 | fixed64 tx_ucast_packets = 10; |
| 564 | fixed64 tx_mcast_packets = 11; |
| 565 | fixed64 tx_bcast_packets = 12; |
| 566 | fixed64 tx_error_packets = 13; |
Jason Huang | c9243f1 | 2020-10-21 17:56:05 +0800 | [diff] [blame] | 567 | fixed64 tx_frames = 28; |
| 568 | fixed64 tx_frames_64 = 29; |
| 569 | fixed64 tx_frames_65_127 = 30; |
| 570 | fixed64 tx_frames_128_255 = 31; |
| 571 | fixed64 tx_frames_256_511 = 32; |
| 572 | fixed64 tx_frames_512_1023 = 33; |
| 573 | fixed64 tx_frames_1024_1518 = 34; |
| 574 | fixed64 tx_frames_1519_2047 = 35; |
| 575 | fixed64 tx_frames_2048_4095 = 36; |
| 576 | fixed64 tx_frames_4096_9216 = 37; |
| 577 | fixed64 tx_frames_9217_16383 = 38; |
| 578 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 579 | fixed64 bip_errors = 15; |
| 580 | fixed32 timestamp = 16; |
| 581 | } |
| 582 | |
Gamze Abaka | 66fe96f | 2020-12-17 13:27:27 +0000 | [diff] [blame] | 583 | message OnuStatistics { |
| 584 | fixed32 intf_id = 1; |
| 585 | fixed32 onu_id = 2; |
| 586 | fixed64 positive_drift = 3; |
| 587 | fixed64 negative_drift = 4; |
| 588 | fixed64 delimiter_miss_detection = 5; |
| 589 | fixed64 bip_errors = 6; |
| 590 | fixed64 bip_units = 7; |
| 591 | fixed64 fec_corrected_symbols = 8; |
| 592 | fixed64 fec_codewords_corrected = 9; |
| 593 | fixed64 fec_codewords_uncorrectable = 10; |
| 594 | fixed64 fec_codewords = 11; |
| 595 | fixed64 fec_corrected_units = 12; |
| 596 | fixed64 xgem_key_errors = 13; |
| 597 | fixed64 xgem_loss = 14; |
| 598 | fixed64 rx_ploams_error = 15; |
| 599 | fixed64 rx_ploams_non_idle = 16; |
| 600 | fixed64 rx_omci = 17; |
| 601 | fixed64 rx_omci_packets_crc_error = 18; |
| 602 | fixed64 rx_bytes = 19; |
| 603 | fixed64 rx_packets = 20; |
| 604 | fixed64 tx_bytes = 21; |
| 605 | fixed64 tx_packets = 22; |
| 606 | fixed64 ber_reported = 23; |
| 607 | fixed64 lcdg_errors = 24; |
| 608 | fixed64 rdi_errors = 25; |
| 609 | fixed32 timestamp = 26; |
| 610 | } |
| 611 | |
| 612 | message GemPortStatistics { |
| 613 | fixed32 intf_id = 1; |
| 614 | fixed32 gemport_id = 2; |
| 615 | fixed64 rx_packets = 3; |
| 616 | fixed64 rx_bytes = 4; |
| 617 | fixed64 tx_packets = 5; |
| 618 | fixed64 tx_bytes = 6; |
| 619 | fixed32 timestamp = 26; |
| 620 | } |
| 621 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 622 | message FlowStatistics { |
| 623 | fixed32 flow_id = 1; |
| 624 | fixed64 rx_bytes = 2; |
| 625 | fixed64 rx_packets = 3; |
| 626 | fixed64 tx_bytes = 8; |
| 627 | fixed64 tx_packets = 9; |
| 628 | fixed32 timestamp = 16; |
| 629 | } |
| 630 | |
| 631 | message LosIndication { |
| 632 | fixed32 intf_id = 1; |
| 633 | string status = 2; |
| 634 | } |
| 635 | |
| 636 | message DyingGaspIndication { |
| 637 | fixed32 intf_id = 1; |
| 638 | fixed32 onu_id = 2; |
| 639 | string status = 3; |
| 640 | } |
| 641 | |
| 642 | message OnuAlarmIndication { |
| 643 | fixed32 intf_id = 1; |
| 644 | fixed32 onu_id = 2; |
| 645 | string los_status = 3; |
| 646 | string lob_status = 4; |
| 647 | string lopc_miss_status = 5; |
| 648 | string lopc_mic_error_status = 6; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 649 | string lofi_status = 7; |
| 650 | string loami_status = 8; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 651 | } |
| 652 | |
| 653 | message OnuStartupFailureIndication { |
| 654 | fixed32 intf_id = 1; |
| 655 | fixed32 onu_id = 2; |
| 656 | string status = 3; |
| 657 | } |
| 658 | |
| 659 | message OnuSignalDegradeIndication { |
| 660 | fixed32 intf_id = 1; |
| 661 | fixed32 onu_id = 2; |
| 662 | string status = 3; |
| 663 | fixed32 inverse_bit_error_rate = 4; |
| 664 | } |
| 665 | |
| 666 | message OnuDriftOfWindowIndication { |
| 667 | fixed32 intf_id = 1; |
| 668 | fixed32 onu_id = 2; |
| 669 | string status = 3; |
| 670 | fixed32 drift = 4; |
| 671 | fixed32 new_eqd = 5; |
| 672 | } |
| 673 | |
| 674 | message OnuLossOfOmciChannelIndication { |
| 675 | fixed32 intf_id = 1; |
| 676 | fixed32 onu_id = 2; |
| 677 | string status = 3; |
| 678 | } |
| 679 | |
| 680 | message OnuSignalsFailureIndication { |
| 681 | fixed32 intf_id = 1; |
| 682 | fixed32 onu_id = 2; |
| 683 | string status = 3; |
| 684 | fixed32 inverse_bit_error_rate = 4; |
| 685 | } |
| 686 | |
| 687 | message OnuTransmissionInterferenceWarning { |
| 688 | fixed32 intf_id = 1; |
| 689 | fixed32 onu_id = 2; |
| 690 | string status = 3; |
| 691 | fixed32 drift = 4; |
| 692 | } |
| 693 | |
| 694 | message OnuActivationFailureIndication { |
| 695 | fixed32 intf_id = 1; |
| 696 | fixed32 onu_id = 2; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 697 | fixed32 fail_reason = 3; |
| 698 | } |
| 699 | |
| 700 | message OnuLossOfKeySyncFailureIndication { |
| 701 | fixed32 intf_id = 1; |
| 702 | fixed32 onu_id = 2; |
| 703 | string status = 3; |
| 704 | } |
| 705 | |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 706 | message RdiErrorIndication { |
| 707 | fixed64 rdi_error_count = 1; // RDI Error count |
| 708 | string status = 2; // on/off based on configured reporting condition |
| 709 | } |
| 710 | |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 711 | message OnuItuPonStatsIndication{ |
| 712 | fixed32 intf_id = 1; |
| 713 | fixed32 onu_id = 2; |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 714 | oneof stats { |
| 715 | RdiErrorIndication rdi_error_ind = 3; |
| 716 | // add more here |
| 717 | } |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 718 | } |
| 719 | |
| 720 | message OnuProcessingErrorIndication { |
| 721 | fixed32 intf_id = 1; |
| 722 | fixed32 onu_id = 2; |
| 723 | } |
| 724 | |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 725 | message OnuDeactivationFailureIndication { |
| 726 | fixed32 intf_id = 1; |
| 727 | fixed32 onu_id = 2; |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 728 | string status = 3; |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 729 | } |
| 730 | |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 731 | message OnuRemoteDefectIndication { |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 732 | fixed32 intf_id = 1; |
| 733 | fixed32 onu_id = 2; |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 734 | fixed64 rdi_errors = 3; |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 735 | } |
| 736 | |
Devmalya Paul | 8295796 | 2020-03-01 18:49:37 -0500 | [diff] [blame] | 737 | message OnuLossOfGEMChannelDelineationIndication { |
| 738 | fixed32 intf_id = 1; |
| 739 | fixed32 onu_id = 2; |
| 740 | string status = 3; |
| 741 | fixed32 delineation_errors = 4; |
| 742 | } |
| 743 | |
| 744 | message OnuPhysicalEquipmentErrorIndication { |
| 745 | fixed32 intf_id = 1; |
| 746 | fixed32 onu_id = 2; |
| 747 | string status = 3; |
| 748 | } |
| 749 | |
| 750 | message OnuLossOfAcknowledgementIndication { |
| 751 | fixed32 intf_id = 1; |
| 752 | fixed32 onu_id = 2; |
| 753 | string status = 3; |
| 754 | } |
| 755 | |
Devmalya Paul | 342bf9d | 2020-03-19 02:42:56 -0400 | [diff] [blame] | 756 | message OnuDifferentialReachExceededIndication { |
| 757 | fixed32 intf_id = 1; |
| 758 | fixed32 onu_id = 2; |
| 759 | string status = 3; |
| 760 | fixed32 distance = 4; |
| 761 | } |
| 762 | |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 763 | message GroupMember { |
| 764 | enum InterfaceType { |
| 765 | PON = 0; |
| 766 | EPON_1G_PATH = 1; |
| 767 | EPON_10G_PATH = 2; |
| 768 | } |
| 769 | uint32 interface_id = 1; |
| 770 | InterfaceType interface_type = 2; |
| 771 | uint32 gem_port_id = 3; |
| 772 | uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic. |
| 773 | // This queue is attached to the default PON port scheduler. |
| 774 | } |
| 775 | |
| 776 | message Group { |
| 777 | enum GroupMembersCommand { |
| 778 | ADD_MEMBERS = 0; |
| 779 | REMOVE_MEMBERS = 1; |
| 780 | SET_MEMBERS = 2; |
| 781 | } |
| 782 | |
| 783 | uint32 group_id = 1; |
| 784 | GroupMembersCommand command = 2; |
| 785 | repeated GroupMember members = 3; |
| 786 | Action action = 4; |
| 787 | } |
| 788 | |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 789 | message ValueParam { |
| 790 | Onu onu = 1; |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 791 | extension.ValueType.Type value = 2; |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 792 | } |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 793 | |
Orhan Kupusoglu | da19b45 | 2021-05-12 12:19:16 +0000 | [diff] [blame] | 794 | message PonRxPowerData { |
| 795 | enum RssiMeasurementFailReason { |
| 796 | FAIL_REASON_NONE = 0; |
| 797 | FAIL_REASON_NO_DELIMITER = 1; |
| 798 | FAIL_REASON_NO_ACCESS = 2; |
| 799 | } |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 800 | |
Orhan Kupusoglu | da19b45 | 2021-05-12 12:19:16 +0000 | [diff] [blame] | 801 | fixed32 intf_id = 1; |
| 802 | fixed32 onu_id = 2; |
| 803 | string status = 3; |
| 804 | RssiMeasurementFailReason fail_reason = 4; |
| 805 | double rx_power_mean_dbm = 5; |
| 806 | } |
| 807 | |
Abhilash Laxmeshwar | d95e199 | 2023-03-13 18:52:05 +0530 | [diff] [blame] | 808 | enum AlarmState { |
| 809 | OFF = 0; |
| 810 | ON = 1; |
| 811 | } |
| 812 | |
| 813 | /* |
| 814 | * contains the onu id, state of the onu and the information about the alarms on the onu. |
| 815 | * As of now only few alarms are added, any further information needed can be added to the structure. |
| 816 | */ |
| 817 | message OnuObjectData { |
| 818 | fixed32 onu_id = 1; |
| 819 | enum OnuObjState { |
| 820 | NOT_CONFIGURED = 0; |
| 821 | ACTIVE = 1; |
| 822 | INACTIVE = 2; |
| 823 | } |
| 824 | OnuObjState state = 2; |
| 825 | AlarmState losi = 3; |
| 826 | AlarmState lofi = 4; |
| 827 | } |
| 828 | |
| 829 | /* |
| 830 | * IntfObjectData has the interface Id and if there are any alarms active on that interface. |
| 831 | * Any further information needed from the interface object can be added to the structure. |
| 832 | */ |
| 833 | message IntfObjectData { |
| 834 | fixed32 intf_id = 1; |
| 835 | AlarmState los = 2; |
| 836 | } |
| 837 | |
| 838 | /* |
| 839 | * ObjectDataResponse would have one of the responses of the requested object |
| 840 | */ |
| 841 | message ObjectDataResponse { |
| 842 | oneof data { |
| 843 | OnuObjectData onu_object_data = 2; |
| 844 | IntfObjectData intf_object_data = 3; |
| 845 | } |
| 846 | } |
| 847 | |
| 848 | /* |
| 849 | * Object data request would contain request for one of the objects ONU/INTERFACE/SCHEDULERS/QUEUES |
| 850 | * As of now only ONU and INTERFACE objects are defined. |
| 851 | */ |
| 852 | message ObjectDataRequest { |
| 853 | oneof data { |
| 854 | Onu onu_object_data = 1; |
| 855 | Interface int_object_data = 2; |
| 856 | } |
| 857 | } |
Orhan Kupusoglu | da19b45 | 2021-05-12 12:19:16 +0000 | [diff] [blame] | 858 | message Empty {} |