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 | |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 17 | option go_package = "github.com/opencord/voltha-protos/v4/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"; |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 23 | import public "voltha_protos/tech_profile.proto"; |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 24 | import public "voltha_protos/common.proto"; |
dpaul | 2b52e71 | 2020-06-23 13:02:28 +0530 | [diff] [blame] | 25 | import "voltha_protos/ext_config.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 | |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 199 | rpc GetExtValue(ValueParam) returns (common.ReturnValues) { |
| 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 | } |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 233 | } |
| 234 | |
| 235 | message Indication { |
| 236 | oneof data { |
| 237 | OltIndication olt_ind = 1; |
| 238 | IntfIndication intf_ind = 2; |
| 239 | IntfOperIndication intf_oper_ind = 3; |
| 240 | OnuDiscIndication onu_disc_ind = 4; |
| 241 | OnuIndication onu_ind = 5; |
| 242 | OmciIndication omci_ind = 6; |
| 243 | PacketIndication pkt_ind = 7; |
| 244 | PortStatistics port_stats = 8; |
| 245 | FlowStatistics flow_stats = 9; |
| 246 | AlarmIndication alarm_ind= 10; |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | message AlarmIndication { |
| 251 | oneof data { |
| 252 | LosIndication los_ind = 1; |
| 253 | DyingGaspIndication dying_gasp_ind = 2; |
| 254 | OnuAlarmIndication onu_alarm_ind = 3; |
| 255 | OnuStartupFailureIndication onu_startup_fail_ind = 4; |
| 256 | OnuSignalDegradeIndication onu_signal_degrade_ind = 5; |
| 257 | OnuDriftOfWindowIndication onu_drift_of_window_ind = 6; |
| 258 | OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7; |
| 259 | OnuSignalsFailureIndication onu_signals_fail_ind = 8; |
| 260 | OnuTransmissionInterferenceWarning onu_tiwi_ind = 9; |
| 261 | OnuActivationFailureIndication onu_activation_fail_ind = 10; |
| 262 | OnuProcessingErrorIndication onu_processing_error_ind = 11; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 263 | OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12; |
| 264 | OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13; |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 265 | OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14; |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 266 | OnuRemoteDefectIndication onu_remote_defect_ind = 15; |
Devmalya Paul | 8295796 | 2020-03-01 18:49:37 -0500 | [diff] [blame] | 267 | OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16; |
| 268 | OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17; |
| 269 | OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18; |
Devmalya Paul | 342bf9d | 2020-03-19 02:42:56 -0400 | [diff] [blame] | 270 | OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 271 | } |
| 272 | } |
| 273 | |
| 274 | message OltIndication { |
| 275 | string oper_state = 1; // up, down |
| 276 | } |
| 277 | |
| 278 | message IntfIndication { |
| 279 | fixed32 intf_id = 1; |
| 280 | string oper_state = 2; // up, down |
| 281 | } |
| 282 | |
| 283 | message OnuDiscIndication { |
| 284 | fixed32 intf_id = 1; |
| 285 | SerialNumber serial_number = 2; |
| 286 | } |
| 287 | |
| 288 | message OnuIndication { |
| 289 | fixed32 intf_id = 1; |
| 290 | fixed32 onu_id = 2; |
| 291 | string oper_state = 3; // up, down |
| 292 | string admin_state = 5; // up, down |
| 293 | SerialNumber serial_number = 4; |
kesavand | d1a8bca | 2020-08-27 19:24:07 +0530 | [diff] [blame] | 294 | /** activation fail reason. */ |
| 295 | enum ActivationFailReason |
| 296 | { |
| 297 | ONU_ACTIVATION_FAIL_REASON_NONE = 0; |
| 298 | ONU_ACTIVATION_FAIL_REASON_RANGING = 1; //Ranging Failure |
| 299 | ONU_ACTIVATION_FAIL_REASON_PASSWORD_AUTHENTICATION = 2; //Password authentication |
| 300 | ONU_ACTIVATION_FAIL_REASON_LOS = 3; //LOS |
| 301 | ONU_ACTIVATION_FAIL_ONU_ALARM = 4; // ONU Alarm |
| 302 | ONU_ACTIVATION_FAIL_SWITCH_OVER = 5; //protection switch over |
| 303 | } |
| 304 | ActivationFailReason fail_reason = 6; |
| 305 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 306 | } |
| 307 | |
| 308 | message IntfOperIndication { |
| 309 | string type = 1; // nni, pon |
| 310 | fixed32 intf_id = 2; |
| 311 | string oper_state = 3; // up, down |
| 312 | } |
| 313 | |
| 314 | message OmciIndication { |
| 315 | fixed32 intf_id = 1; |
| 316 | fixed32 onu_id = 2; |
| 317 | bytes pkt = 3; |
| 318 | } |
| 319 | |
| 320 | message PacketIndication { |
| 321 | string intf_type = 5; // nni, pon, unknown |
| 322 | fixed32 intf_id = 1; |
Girish Gowdra | 31a356c | 2021-05-14 15:56:04 -0700 | [diff] [blame] | 323 | fixed32 onu_id = 8; |
| 324 | fixed32 uni_id = 9; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 325 | fixed32 gemport_id = 2; |
| 326 | fixed32 flow_id = 3; |
| 327 | fixed32 port_no = 6; |
| 328 | fixed64 cookie = 7; |
| 329 | bytes pkt = 4; |
| 330 | } |
| 331 | |
| 332 | message Interface { |
| 333 | fixed32 intf_id = 1; |
| 334 | } |
| 335 | |
| 336 | message Heartbeat { |
| 337 | fixed32 heartbeat_signature = 1; |
| 338 | } |
| 339 | |
| 340 | message Onu { |
| 341 | fixed32 intf_id = 1; |
| 342 | fixed32 onu_id = 2; |
| 343 | SerialNumber serial_number = 3; |
| 344 | fixed32 pir = 4; // peak information rate assigned to onu |
kesavand | 66bade7 | 2020-08-05 06:16:34 +0200 | [diff] [blame] | 345 | bool omcc_encryption = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 346 | } |
| 347 | |
Jason Huang | 4f8a937 | 2020-06-03 18:09:35 +0800 | [diff] [blame] | 348 | message OnuLogicalDistance { |
| 349 | fixed32 intf_id = 1; |
| 350 | fixed32 onu_id = 2; |
| 351 | fixed32 logical_onu_distance_zero = 3; //0km logical distance |
| 352 | fixed32 logical_onu_distance = 4; |
| 353 | } |
| 354 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 355 | message OmciMsg { |
| 356 | fixed32 intf_id = 1; |
| 357 | fixed32 onu_id = 2; |
| 358 | bytes pkt = 3; |
| 359 | } |
| 360 | |
| 361 | message OnuPacket { |
| 362 | fixed32 intf_id = 1; |
| 363 | fixed32 onu_id = 2; |
| 364 | fixed32 port_no = 4; |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 365 | fixed32 gemport_id = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 366 | bytes pkt = 3; |
| 367 | } |
| 368 | |
| 369 | message UplinkPacket { |
| 370 | fixed32 intf_id = 1; |
| 371 | bytes pkt = 2; |
| 372 | } |
| 373 | |
| 374 | message DeviceInfo { |
| 375 | string vendor = 1; |
| 376 | string model = 2; |
| 377 | string hardware_version = 3; |
| 378 | string firmware_version = 4; |
| 379 | string device_id = 16; |
| 380 | string device_serial_number = 17; |
Gamze Abaka | 7a0d394 | 2021-03-11 11:41:36 +0000 | [diff] [blame] | 381 | bool previously_connected = 19; // used to indicate agent reconcile status |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 382 | |
| 383 | // Total number of pon intf ports on the device |
| 384 | fixed32 pon_ports = 12; |
| 385 | |
| 386 | // If using global per-device technology profile. To be deprecated |
| 387 | string technology = 5; |
| 388 | fixed32 onu_id_start = 6; |
| 389 | fixed32 onu_id_end = 7; |
| 390 | fixed32 alloc_id_start = 8; |
| 391 | fixed32 alloc_id_end = 9; |
| 392 | fixed32 gemport_id_start = 10; |
| 393 | fixed32 gemport_id_end = 11; |
| 394 | fixed32 flow_id_start = 13; |
| 395 | fixed32 flow_id_end = 14; |
| 396 | |
| 397 | message DeviceResourceRanges { |
| 398 | |
| 399 | // List of 0 or more intf_ids that use the same technology and pools. |
| 400 | // If 0 intf_ids supplied, it implies ALL interfaces |
| 401 | repeated fixed32 intf_ids = 1; |
| 402 | |
| 403 | // Technology profile for this pool |
| 404 | string technology = 2; |
| 405 | |
| 406 | message Pool { |
| 407 | enum PoolType { |
| 408 | ONU_ID = 0; |
| 409 | ALLOC_ID = 1; |
| 410 | GEMPORT_ID = 2; |
| 411 | FLOW_ID = 3; |
| 412 | } |
| 413 | |
| 414 | enum SharingType { |
| 415 | DEDICATED_PER_INTF = 0; |
| 416 | SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges |
| 417 | SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range |
| 418 | } |
| 419 | |
| 420 | PoolType type = 1; |
| 421 | SharingType sharing = 2; |
| 422 | fixed32 start = 3; // lower bound on IDs allocated from this pool |
| 423 | fixed32 end = 4; // upper bound on IDs allocated from this pool |
| 424 | } |
| 425 | repeated Pool pools = 3; |
| 426 | } |
| 427 | repeated DeviceResourceRanges ranges = 15; |
| 428 | } |
| 429 | |
| 430 | message Classifier { |
| 431 | fixed32 o_tpid = 1; |
| 432 | fixed32 o_vid = 2; |
| 433 | fixed32 i_tpid = 3; |
| 434 | fixed32 i_vid = 4; |
| 435 | fixed32 o_pbits = 5; |
| 436 | fixed32 i_pbits = 6; |
| 437 | fixed32 eth_type = 7; |
| 438 | bytes dst_mac = 8; |
| 439 | bytes src_mac = 9; |
| 440 | fixed32 ip_proto = 10; |
| 441 | fixed32 dst_ip = 11; |
| 442 | fixed32 src_ip = 12; |
| 443 | fixed32 src_port = 13; |
| 444 | fixed32 dst_port = 14; |
| 445 | string pkt_tag_type = 15; // untagged, single_tag, double_tag |
| 446 | } |
| 447 | |
| 448 | message ActionCmd { |
| 449 | bool add_outer_tag = 1; |
| 450 | bool remove_outer_tag = 2; |
| 451 | bool trap_to_host = 3; |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 452 | bool remark_outer_pbits = 4; |
| 453 | bool remark_inner_pbits = 5; |
| 454 | bool add_inner_tag = 6; |
| 455 | bool remove_inner_tag = 7; |
| 456 | bool translate_inner_tag = 8; |
| 457 | bool translate_outer_tag = 9; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 458 | } |
| 459 | |
| 460 | message Action { |
| 461 | ActionCmd cmd = 1; |
| 462 | fixed32 o_vid = 2; |
| 463 | fixed32 o_pbits = 3; |
| 464 | fixed32 o_tpid = 4; |
| 465 | fixed32 i_vid = 5; |
| 466 | fixed32 i_pbits = 6; |
| 467 | fixed32 i_tpid = 7; |
| 468 | } |
| 469 | |
| 470 | message Flow { |
| 471 | sfixed32 access_intf_id = 1; |
| 472 | sfixed32 onu_id = 2; |
| 473 | sfixed32 uni_id = 11; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 474 | |
| 475 | fixed64 flow_id = 3; // voltha flow-id. 0 is not a valid flow_id |
| 476 | fixed64 symmetric_flow_id = 18; // symmetric voltha flow-id, if applicable. All data path flows generally have a symmetric flow, |
| 477 | // but trap-to-controller flows do not have a symmetric flow |
| 478 | // Broadcom BAL requires that symmetric flows use the same BAL flow-id |
| 479 | |
| 480 | string flow_type = 4; // upstream, downstream, broadcast, multicast |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 481 | sfixed32 alloc_id = 10; |
| 482 | sfixed32 network_intf_id = 5; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 483 | 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] | 484 | Classifier classifier = 7; |
| 485 | Action action = 8; |
| 486 | sfixed32 priority = 9; |
| 487 | fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication |
| 488 | 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] | 489 | fixed32 group_id = 14; |
Burak Gurdag | ce06435 | 2020-04-20 20:11:18 +0000 | [diff] [blame] | 490 | fixed32 tech_profile_id = 15; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 491 | |
| 492 | bool replicate_flow = 16; // When this field is true, use pbitToGemPortID to know which p-bit needs to be classfied to which gem port. |
| 493 | 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] | 494 | 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] | 495 | } |
| 496 | |
| 497 | message SerialNumber { |
| 498 | bytes vendor_id = 1; |
| 499 | bytes vendor_specific = 2; |
| 500 | } |
| 501 | |
| 502 | message PortStatistics { |
| 503 | fixed32 intf_id = 1; |
| 504 | fixed64 rx_bytes = 2; |
| 505 | fixed64 rx_packets = 3; |
| 506 | fixed64 rx_ucast_packets = 4; |
| 507 | fixed64 rx_mcast_packets = 5; |
| 508 | fixed64 rx_bcast_packets = 6; |
| 509 | fixed64 rx_error_packets = 7; |
Jason Huang | c9243f1 | 2020-10-21 17:56:05 +0800 | [diff] [blame] | 510 | fixed64 rx_frames = 17; |
| 511 | fixed64 rx_frames_64 = 18; |
| 512 | fixed64 rx_frames_65_127 = 19; |
| 513 | fixed64 rx_frames_128_255 = 20; |
| 514 | fixed64 rx_frames_256_511 = 21; |
| 515 | fixed64 rx_frames_512_1023 = 22; |
| 516 | fixed64 rx_frames_1024_1518 = 23; |
| 517 | fixed64 rx_frames_1519_2047 = 24; |
| 518 | fixed64 rx_frames_2048_4095 = 25; |
| 519 | fixed64 rx_frames_4096_9216 = 26; |
| 520 | fixed64 rx_frames_9217_16383 = 27; |
| 521 | fixed64 rx_crc_errors = 14; |
| 522 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 523 | fixed64 tx_bytes = 8; |
| 524 | fixed64 tx_packets = 9; |
| 525 | fixed64 tx_ucast_packets = 10; |
| 526 | fixed64 tx_mcast_packets = 11; |
| 527 | fixed64 tx_bcast_packets = 12; |
| 528 | fixed64 tx_error_packets = 13; |
Jason Huang | c9243f1 | 2020-10-21 17:56:05 +0800 | [diff] [blame] | 529 | fixed64 tx_frames = 28; |
| 530 | fixed64 tx_frames_64 = 29; |
| 531 | fixed64 tx_frames_65_127 = 30; |
| 532 | fixed64 tx_frames_128_255 = 31; |
| 533 | fixed64 tx_frames_256_511 = 32; |
| 534 | fixed64 tx_frames_512_1023 = 33; |
| 535 | fixed64 tx_frames_1024_1518 = 34; |
| 536 | fixed64 tx_frames_1519_2047 = 35; |
| 537 | fixed64 tx_frames_2048_4095 = 36; |
| 538 | fixed64 tx_frames_4096_9216 = 37; |
| 539 | fixed64 tx_frames_9217_16383 = 38; |
| 540 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 541 | fixed64 bip_errors = 15; |
| 542 | fixed32 timestamp = 16; |
| 543 | } |
| 544 | |
Gamze Abaka | 66fe96f | 2020-12-17 13:27:27 +0000 | [diff] [blame] | 545 | message OnuStatistics { |
| 546 | fixed32 intf_id = 1; |
| 547 | fixed32 onu_id = 2; |
| 548 | fixed64 positive_drift = 3; |
| 549 | fixed64 negative_drift = 4; |
| 550 | fixed64 delimiter_miss_detection = 5; |
| 551 | fixed64 bip_errors = 6; |
| 552 | fixed64 bip_units = 7; |
| 553 | fixed64 fec_corrected_symbols = 8; |
| 554 | fixed64 fec_codewords_corrected = 9; |
| 555 | fixed64 fec_codewords_uncorrectable = 10; |
| 556 | fixed64 fec_codewords = 11; |
| 557 | fixed64 fec_corrected_units = 12; |
| 558 | fixed64 xgem_key_errors = 13; |
| 559 | fixed64 xgem_loss = 14; |
| 560 | fixed64 rx_ploams_error = 15; |
| 561 | fixed64 rx_ploams_non_idle = 16; |
| 562 | fixed64 rx_omci = 17; |
| 563 | fixed64 rx_omci_packets_crc_error = 18; |
| 564 | fixed64 rx_bytes = 19; |
| 565 | fixed64 rx_packets = 20; |
| 566 | fixed64 tx_bytes = 21; |
| 567 | fixed64 tx_packets = 22; |
| 568 | fixed64 ber_reported = 23; |
| 569 | fixed64 lcdg_errors = 24; |
| 570 | fixed64 rdi_errors = 25; |
| 571 | fixed32 timestamp = 26; |
| 572 | } |
| 573 | |
| 574 | message GemPortStatistics { |
| 575 | fixed32 intf_id = 1; |
| 576 | fixed32 gemport_id = 2; |
| 577 | fixed64 rx_packets = 3; |
| 578 | fixed64 rx_bytes = 4; |
| 579 | fixed64 tx_packets = 5; |
| 580 | fixed64 tx_bytes = 6; |
| 581 | fixed32 timestamp = 26; |
| 582 | } |
| 583 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 584 | message FlowStatistics { |
| 585 | fixed32 flow_id = 1; |
| 586 | fixed64 rx_bytes = 2; |
| 587 | fixed64 rx_packets = 3; |
| 588 | fixed64 tx_bytes = 8; |
| 589 | fixed64 tx_packets = 9; |
| 590 | fixed32 timestamp = 16; |
| 591 | } |
| 592 | |
| 593 | message LosIndication { |
| 594 | fixed32 intf_id = 1; |
| 595 | string status = 2; |
| 596 | } |
| 597 | |
| 598 | message DyingGaspIndication { |
| 599 | fixed32 intf_id = 1; |
| 600 | fixed32 onu_id = 2; |
| 601 | string status = 3; |
| 602 | } |
| 603 | |
| 604 | message OnuAlarmIndication { |
| 605 | fixed32 intf_id = 1; |
| 606 | fixed32 onu_id = 2; |
| 607 | string los_status = 3; |
| 608 | string lob_status = 4; |
| 609 | string lopc_miss_status = 5; |
| 610 | string lopc_mic_error_status = 6; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 611 | string lofi_status = 7; |
| 612 | string loami_status = 8; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 613 | } |
| 614 | |
| 615 | message OnuStartupFailureIndication { |
| 616 | fixed32 intf_id = 1; |
| 617 | fixed32 onu_id = 2; |
| 618 | string status = 3; |
| 619 | } |
| 620 | |
| 621 | message OnuSignalDegradeIndication { |
| 622 | fixed32 intf_id = 1; |
| 623 | fixed32 onu_id = 2; |
| 624 | string status = 3; |
| 625 | fixed32 inverse_bit_error_rate = 4; |
| 626 | } |
| 627 | |
| 628 | message OnuDriftOfWindowIndication { |
| 629 | fixed32 intf_id = 1; |
| 630 | fixed32 onu_id = 2; |
| 631 | string status = 3; |
| 632 | fixed32 drift = 4; |
| 633 | fixed32 new_eqd = 5; |
| 634 | } |
| 635 | |
| 636 | message OnuLossOfOmciChannelIndication { |
| 637 | fixed32 intf_id = 1; |
| 638 | fixed32 onu_id = 2; |
| 639 | string status = 3; |
| 640 | } |
| 641 | |
| 642 | message OnuSignalsFailureIndication { |
| 643 | fixed32 intf_id = 1; |
| 644 | fixed32 onu_id = 2; |
| 645 | string status = 3; |
| 646 | fixed32 inverse_bit_error_rate = 4; |
| 647 | } |
| 648 | |
| 649 | message OnuTransmissionInterferenceWarning { |
| 650 | fixed32 intf_id = 1; |
| 651 | fixed32 onu_id = 2; |
| 652 | string status = 3; |
| 653 | fixed32 drift = 4; |
| 654 | } |
| 655 | |
| 656 | message OnuActivationFailureIndication { |
| 657 | fixed32 intf_id = 1; |
| 658 | fixed32 onu_id = 2; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 659 | fixed32 fail_reason = 3; |
| 660 | } |
| 661 | |
| 662 | message OnuLossOfKeySyncFailureIndication { |
| 663 | fixed32 intf_id = 1; |
| 664 | fixed32 onu_id = 2; |
| 665 | string status = 3; |
| 666 | } |
| 667 | |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 668 | message RdiErrorIndication { |
| 669 | fixed64 rdi_error_count = 1; // RDI Error count |
| 670 | string status = 2; // on/off based on configured reporting condition |
| 671 | } |
| 672 | |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 673 | message OnuItuPonStatsIndication{ |
| 674 | fixed32 intf_id = 1; |
| 675 | fixed32 onu_id = 2; |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 676 | oneof stats { |
| 677 | RdiErrorIndication rdi_error_ind = 3; |
| 678 | // add more here |
| 679 | } |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 680 | } |
| 681 | |
| 682 | message OnuProcessingErrorIndication { |
| 683 | fixed32 intf_id = 1; |
| 684 | fixed32 onu_id = 2; |
| 685 | } |
| 686 | |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 687 | message OnuDeactivationFailureIndication { |
| 688 | fixed32 intf_id = 1; |
| 689 | fixed32 onu_id = 2; |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 690 | string status = 3; |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 691 | } |
| 692 | |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 693 | message OnuRemoteDefectIndication { |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 694 | fixed32 intf_id = 1; |
| 695 | fixed32 onu_id = 2; |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 696 | fixed64 rdi_errors = 3; |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 697 | } |
| 698 | |
Devmalya Paul | 8295796 | 2020-03-01 18:49:37 -0500 | [diff] [blame] | 699 | message OnuLossOfGEMChannelDelineationIndication { |
| 700 | fixed32 intf_id = 1; |
| 701 | fixed32 onu_id = 2; |
| 702 | string status = 3; |
| 703 | fixed32 delineation_errors = 4; |
| 704 | } |
| 705 | |
| 706 | message OnuPhysicalEquipmentErrorIndication { |
| 707 | fixed32 intf_id = 1; |
| 708 | fixed32 onu_id = 2; |
| 709 | string status = 3; |
| 710 | } |
| 711 | |
| 712 | message OnuLossOfAcknowledgementIndication { |
| 713 | fixed32 intf_id = 1; |
| 714 | fixed32 onu_id = 2; |
| 715 | string status = 3; |
| 716 | } |
| 717 | |
Devmalya Paul | 342bf9d | 2020-03-19 02:42:56 -0400 | [diff] [blame] | 718 | message OnuDifferentialReachExceededIndication { |
| 719 | fixed32 intf_id = 1; |
| 720 | fixed32 onu_id = 2; |
| 721 | string status = 3; |
| 722 | fixed32 distance = 4; |
| 723 | } |
| 724 | |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 725 | message GroupMember { |
| 726 | enum InterfaceType { |
| 727 | PON = 0; |
| 728 | EPON_1G_PATH = 1; |
| 729 | EPON_10G_PATH = 2; |
| 730 | } |
| 731 | uint32 interface_id = 1; |
| 732 | InterfaceType interface_type = 2; |
| 733 | uint32 gem_port_id = 3; |
| 734 | uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic. |
| 735 | // This queue is attached to the default PON port scheduler. |
| 736 | } |
| 737 | |
| 738 | message Group { |
| 739 | enum GroupMembersCommand { |
| 740 | ADD_MEMBERS = 0; |
| 741 | REMOVE_MEMBERS = 1; |
| 742 | SET_MEMBERS = 2; |
| 743 | } |
| 744 | |
| 745 | uint32 group_id = 1; |
| 746 | GroupMembersCommand command = 2; |
| 747 | repeated GroupMember members = 3; |
| 748 | Action action = 4; |
| 749 | } |
| 750 | |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 751 | message ValueParam { |
| 752 | Onu onu = 1; |
| 753 | common.ValueType.Type value = 2; |
| 754 | } |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 755 | |
Orhan Kupusoglu | da19b45 | 2021-05-12 12:19:16 +0000 | [diff] [blame] | 756 | message PonRxPowerData { |
| 757 | enum RssiMeasurementFailReason { |
| 758 | FAIL_REASON_NONE = 0; |
| 759 | FAIL_REASON_NO_DELIMITER = 1; |
| 760 | FAIL_REASON_NO_ACCESS = 2; |
| 761 | } |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 762 | |
Orhan Kupusoglu | da19b45 | 2021-05-12 12:19:16 +0000 | [diff] [blame] | 763 | fixed32 intf_id = 1; |
| 764 | fixed32 onu_id = 2; |
| 765 | string status = 3; |
| 766 | RssiMeasurementFailReason fail_reason = 4; |
| 767 | double rx_power_mean_dbm = 5; |
| 768 | } |
| 769 | |
| 770 | message Empty {} |