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 | |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 141 | rpc CreateTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 142 | option (google.api.http) = { |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 143 | post: "/v1/CreateTrafficSchedulers" |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 144 | body: "*" |
| 145 | }; |
| 146 | } |
| 147 | |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 148 | rpc RemoveTrafficSchedulers(tech_profile.TrafficSchedulers) returns (Empty) { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 149 | option (google.api.http) = { |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 150 | post: "/v1/RemoveTrafficSchedulers" |
| 151 | body: "*" |
| 152 | }; |
| 153 | } |
| 154 | |
| 155 | rpc CreateTrafficQueues(tech_profile.TrafficQueues) returns (Empty) { |
| 156 | option (google.api.http) = { |
| 157 | post: "/v1/CreateTrafficQueues" |
| 158 | body: "*" |
| 159 | }; |
| 160 | } |
| 161 | |
| 162 | rpc RemoveTrafficQueues(tech_profile.TrafficQueues) returns (Empty) { |
| 163 | option (google.api.http) = { |
| 164 | post: "/v1/RemoveTrafficQueues" |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 165 | body: "*" |
| 166 | }; |
| 167 | } |
| 168 | |
| 169 | rpc EnableIndication(Empty) returns (stream Indication) {} |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 170 | |
| 171 | rpc PerformGroupOperation(Group) returns (Empty) { |
| 172 | option (google.api.http) = { |
| 173 | post: "/v1/PerformGroupOperation" |
| 174 | body: "*" |
| 175 | }; |
| 176 | } |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 177 | |
Burak Gurdag | aadbcc0 | 2020-05-18 14:22:38 +0000 | [diff] [blame] | 178 | rpc DeleteGroup(Group) returns (Empty) { |
| 179 | option (google.api.http) = { |
| 180 | post: "/v1/DeleteGroup" |
| 181 | body: "*" |
| 182 | }; |
| 183 | } |
| 184 | |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 185 | rpc GetExtValue(ValueParam) returns (common.ReturnValues) { |
| 186 | option (google.api.http) = { |
| 187 | post: "/v1/GetExtValue" |
| 188 | body: "*" |
| 189 | }; |
| 190 | } |
| 191 | |
dpaul | 2b52e71 | 2020-06-23 13:02:28 +0530 | [diff] [blame] | 192 | rpc OnuItuPonAlarmSet(config.OnuItuPonAlarm) returns (Empty) { |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 193 | option (google.api.http) = { |
| 194 | post: "/v1/OnuItuPonAlarmSet" |
| 195 | body: "*" |
| 196 | }; |
| 197 | } |
Jason Huang | 4f8a937 | 2020-06-03 18:09:35 +0800 | [diff] [blame] | 198 | |
| 199 | rpc GetLogicalOnuDistanceZero(Onu) returns (OnuLogicalDistance) { |
| 200 | option (google.api.http) = { |
| 201 | post: "/v1/GetLogicalOnuDistanceZero" |
| 202 | body: "*" |
| 203 | }; |
| 204 | } |
| 205 | |
| 206 | rpc GetLogicalOnuDistance(Onu) returns (OnuLogicalDistance) { |
| 207 | option (google.api.http) = { |
| 208 | post: "/v1/GetLogicalOnuDistance" |
| 209 | body: "*" |
| 210 | }; |
| 211 | } |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 212 | } |
| 213 | |
| 214 | message Indication { |
| 215 | oneof data { |
| 216 | OltIndication olt_ind = 1; |
| 217 | IntfIndication intf_ind = 2; |
| 218 | IntfOperIndication intf_oper_ind = 3; |
| 219 | OnuDiscIndication onu_disc_ind = 4; |
| 220 | OnuIndication onu_ind = 5; |
| 221 | OmciIndication omci_ind = 6; |
| 222 | PacketIndication pkt_ind = 7; |
| 223 | PortStatistics port_stats = 8; |
| 224 | FlowStatistics flow_stats = 9; |
| 225 | AlarmIndication alarm_ind= 10; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | message AlarmIndication { |
| 230 | oneof data { |
| 231 | LosIndication los_ind = 1; |
| 232 | DyingGaspIndication dying_gasp_ind = 2; |
| 233 | OnuAlarmIndication onu_alarm_ind = 3; |
| 234 | OnuStartupFailureIndication onu_startup_fail_ind = 4; |
| 235 | OnuSignalDegradeIndication onu_signal_degrade_ind = 5; |
| 236 | OnuDriftOfWindowIndication onu_drift_of_window_ind = 6; |
| 237 | OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7; |
| 238 | OnuSignalsFailureIndication onu_signals_fail_ind = 8; |
| 239 | OnuTransmissionInterferenceWarning onu_tiwi_ind = 9; |
| 240 | OnuActivationFailureIndication onu_activation_fail_ind = 10; |
| 241 | OnuProcessingErrorIndication onu_processing_error_ind = 11; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 242 | OnuLossOfKeySyncFailureIndication onu_loss_of_sync_fail_ind = 12; |
| 243 | OnuItuPonStatsIndication onu_itu_pon_stats_ind = 13; |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 244 | OnuDeactivationFailureIndication onu_deactivation_failure_ind = 14; |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 245 | OnuRemoteDefectIndication onu_remote_defect_ind = 15; |
Devmalya Paul | 8295796 | 2020-03-01 18:49:37 -0500 | [diff] [blame] | 246 | OnuLossOfGEMChannelDelineationIndication onu_loss_gem_delineation_ind = 16; |
| 247 | OnuPhysicalEquipmentErrorIndication onu_physical_equipment_error_ind = 17; |
| 248 | OnuLossOfAcknowledgementIndication onu_loss_of_ack_ind = 18; |
Devmalya Paul | 342bf9d | 2020-03-19 02:42:56 -0400 | [diff] [blame] | 249 | OnuDifferentialReachExceededIndication onu_diff_reach_exceeded_ind = 19; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 250 | } |
| 251 | } |
| 252 | |
| 253 | message OltIndication { |
| 254 | string oper_state = 1; // up, down |
| 255 | } |
| 256 | |
| 257 | message IntfIndication { |
| 258 | fixed32 intf_id = 1; |
| 259 | string oper_state = 2; // up, down |
| 260 | } |
| 261 | |
| 262 | message OnuDiscIndication { |
| 263 | fixed32 intf_id = 1; |
| 264 | SerialNumber serial_number = 2; |
| 265 | } |
| 266 | |
| 267 | message OnuIndication { |
| 268 | fixed32 intf_id = 1; |
| 269 | fixed32 onu_id = 2; |
| 270 | string oper_state = 3; // up, down |
| 271 | string admin_state = 5; // up, down |
| 272 | SerialNumber serial_number = 4; |
kesavand | d1a8bca | 2020-08-27 19:24:07 +0530 | [diff] [blame] | 273 | /** activation fail reason. */ |
| 274 | enum ActivationFailReason |
| 275 | { |
| 276 | ONU_ACTIVATION_FAIL_REASON_NONE = 0; |
| 277 | ONU_ACTIVATION_FAIL_REASON_RANGING = 1; //Ranging Failure |
| 278 | ONU_ACTIVATION_FAIL_REASON_PASSWORD_AUTHENTICATION = 2; //Password authentication |
| 279 | ONU_ACTIVATION_FAIL_REASON_LOS = 3; //LOS |
| 280 | ONU_ACTIVATION_FAIL_ONU_ALARM = 4; // ONU Alarm |
| 281 | ONU_ACTIVATION_FAIL_SWITCH_OVER = 5; //protection switch over |
| 282 | } |
| 283 | ActivationFailReason fail_reason = 6; |
| 284 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 285 | } |
| 286 | |
| 287 | message IntfOperIndication { |
| 288 | string type = 1; // nni, pon |
| 289 | fixed32 intf_id = 2; |
| 290 | string oper_state = 3; // up, down |
| 291 | } |
| 292 | |
| 293 | message OmciIndication { |
| 294 | fixed32 intf_id = 1; |
| 295 | fixed32 onu_id = 2; |
| 296 | bytes pkt = 3; |
| 297 | } |
| 298 | |
| 299 | message PacketIndication { |
| 300 | string intf_type = 5; // nni, pon, unknown |
| 301 | fixed32 intf_id = 1; |
| 302 | fixed32 gemport_id = 2; |
| 303 | fixed32 flow_id = 3; |
| 304 | fixed32 port_no = 6; |
| 305 | fixed64 cookie = 7; |
| 306 | bytes pkt = 4; |
| 307 | } |
| 308 | |
| 309 | message Interface { |
| 310 | fixed32 intf_id = 1; |
| 311 | } |
| 312 | |
| 313 | message Heartbeat { |
| 314 | fixed32 heartbeat_signature = 1; |
| 315 | } |
| 316 | |
| 317 | message Onu { |
| 318 | fixed32 intf_id = 1; |
| 319 | fixed32 onu_id = 2; |
| 320 | SerialNumber serial_number = 3; |
| 321 | fixed32 pir = 4; // peak information rate assigned to onu |
kesavand | 66bade7 | 2020-08-05 06:16:34 +0200 | [diff] [blame] | 322 | bool omcc_encryption = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 323 | } |
| 324 | |
Jason Huang | 4f8a937 | 2020-06-03 18:09:35 +0800 | [diff] [blame] | 325 | message OnuLogicalDistance { |
| 326 | fixed32 intf_id = 1; |
| 327 | fixed32 onu_id = 2; |
| 328 | fixed32 logical_onu_distance_zero = 3; //0km logical distance |
| 329 | fixed32 logical_onu_distance = 4; |
| 330 | } |
| 331 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 332 | message OmciMsg { |
| 333 | fixed32 intf_id = 1; |
| 334 | fixed32 onu_id = 2; |
| 335 | bytes pkt = 3; |
| 336 | } |
| 337 | |
| 338 | message OnuPacket { |
| 339 | fixed32 intf_id = 1; |
| 340 | fixed32 onu_id = 2; |
| 341 | fixed32 port_no = 4; |
Abhilash Laxmeshwar | dfbb74d | 2019-07-23 08:03:08 -0400 | [diff] [blame] | 342 | fixed32 gemport_id = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 343 | bytes pkt = 3; |
| 344 | } |
| 345 | |
| 346 | message UplinkPacket { |
| 347 | fixed32 intf_id = 1; |
| 348 | bytes pkt = 2; |
| 349 | } |
| 350 | |
| 351 | message DeviceInfo { |
| 352 | string vendor = 1; |
| 353 | string model = 2; |
| 354 | string hardware_version = 3; |
| 355 | string firmware_version = 4; |
| 356 | string device_id = 16; |
| 357 | string device_serial_number = 17; |
| 358 | |
| 359 | // Total number of pon intf ports on the device |
| 360 | fixed32 pon_ports = 12; |
| 361 | |
| 362 | // If using global per-device technology profile. To be deprecated |
| 363 | string technology = 5; |
| 364 | fixed32 onu_id_start = 6; |
| 365 | fixed32 onu_id_end = 7; |
| 366 | fixed32 alloc_id_start = 8; |
| 367 | fixed32 alloc_id_end = 9; |
| 368 | fixed32 gemport_id_start = 10; |
| 369 | fixed32 gemport_id_end = 11; |
| 370 | fixed32 flow_id_start = 13; |
| 371 | fixed32 flow_id_end = 14; |
| 372 | |
| 373 | message DeviceResourceRanges { |
| 374 | |
| 375 | // List of 0 or more intf_ids that use the same technology and pools. |
| 376 | // If 0 intf_ids supplied, it implies ALL interfaces |
| 377 | repeated fixed32 intf_ids = 1; |
| 378 | |
| 379 | // Technology profile for this pool |
| 380 | string technology = 2; |
| 381 | |
| 382 | message Pool { |
| 383 | enum PoolType { |
| 384 | ONU_ID = 0; |
| 385 | ALLOC_ID = 1; |
| 386 | GEMPORT_ID = 2; |
| 387 | FLOW_ID = 3; |
| 388 | } |
| 389 | |
| 390 | enum SharingType { |
| 391 | DEDICATED_PER_INTF = 0; |
| 392 | SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges |
| 393 | SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range |
| 394 | } |
| 395 | |
| 396 | PoolType type = 1; |
| 397 | SharingType sharing = 2; |
| 398 | fixed32 start = 3; // lower bound on IDs allocated from this pool |
| 399 | fixed32 end = 4; // upper bound on IDs allocated from this pool |
| 400 | } |
| 401 | repeated Pool pools = 3; |
| 402 | } |
| 403 | repeated DeviceResourceRanges ranges = 15; |
| 404 | } |
| 405 | |
| 406 | message Classifier { |
| 407 | fixed32 o_tpid = 1; |
| 408 | fixed32 o_vid = 2; |
| 409 | fixed32 i_tpid = 3; |
| 410 | fixed32 i_vid = 4; |
| 411 | fixed32 o_pbits = 5; |
| 412 | fixed32 i_pbits = 6; |
| 413 | fixed32 eth_type = 7; |
| 414 | bytes dst_mac = 8; |
| 415 | bytes src_mac = 9; |
| 416 | fixed32 ip_proto = 10; |
| 417 | fixed32 dst_ip = 11; |
| 418 | fixed32 src_ip = 12; |
| 419 | fixed32 src_port = 13; |
| 420 | fixed32 dst_port = 14; |
| 421 | string pkt_tag_type = 15; // untagged, single_tag, double_tag |
| 422 | } |
| 423 | |
| 424 | message ActionCmd { |
| 425 | bool add_outer_tag = 1; |
| 426 | bool remove_outer_tag = 2; |
| 427 | bool trap_to_host = 3; |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 428 | bool remark_outer_pbits = 4; |
| 429 | bool remark_inner_pbits = 5; |
| 430 | bool add_inner_tag = 6; |
| 431 | bool remove_inner_tag = 7; |
| 432 | bool translate_inner_tag = 8; |
| 433 | bool translate_outer_tag = 9; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 434 | } |
| 435 | |
| 436 | message Action { |
| 437 | ActionCmd cmd = 1; |
| 438 | fixed32 o_vid = 2; |
| 439 | fixed32 o_pbits = 3; |
| 440 | fixed32 o_tpid = 4; |
| 441 | fixed32 i_vid = 5; |
| 442 | fixed32 i_pbits = 6; |
| 443 | fixed32 i_tpid = 7; |
| 444 | } |
| 445 | |
| 446 | message Flow { |
| 447 | sfixed32 access_intf_id = 1; |
| 448 | sfixed32 onu_id = 2; |
| 449 | sfixed32 uni_id = 11; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 450 | |
| 451 | fixed64 flow_id = 3; // voltha flow-id. 0 is not a valid flow_id |
| 452 | fixed64 symmetric_flow_id = 18; // symmetric voltha flow-id, if applicable. All data path flows generally have a symmetric flow, |
| 453 | // but trap-to-controller flows do not have a symmetric flow |
| 454 | // Broadcom BAL requires that symmetric flows use the same BAL flow-id |
| 455 | |
| 456 | string flow_type = 4; // upstream, downstream, broadcast, multicast |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 457 | sfixed32 alloc_id = 10; |
| 458 | sfixed32 network_intf_id = 5; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 459 | 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] | 460 | Classifier classifier = 7; |
| 461 | Action action = 8; |
| 462 | sfixed32 priority = 9; |
| 463 | fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication |
| 464 | 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] | 465 | fixed32 group_id = 14; |
Burak Gurdag | ce06435 | 2020-04-20 20:11:18 +0000 | [diff] [blame] | 466 | fixed32 tech_profile_id = 15; |
Girish Gowdra | b152d9f | 2020-08-17 11:37:50 -0700 | [diff] [blame] | 467 | |
| 468 | bool replicate_flow = 16; // When this field is true, use pbitToGemPortID to know which p-bit needs to be classfied to which gem port. |
| 469 | map<fixed32, fixed32> pbit_to_gemport = 17; // Map of p-bit to gem port ID |
| 470 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 471 | } |
| 472 | |
| 473 | message SerialNumber { |
| 474 | bytes vendor_id = 1; |
| 475 | bytes vendor_specific = 2; |
| 476 | } |
| 477 | |
| 478 | message PortStatistics { |
| 479 | fixed32 intf_id = 1; |
| 480 | fixed64 rx_bytes = 2; |
| 481 | fixed64 rx_packets = 3; |
| 482 | fixed64 rx_ucast_packets = 4; |
| 483 | fixed64 rx_mcast_packets = 5; |
| 484 | fixed64 rx_bcast_packets = 6; |
| 485 | fixed64 rx_error_packets = 7; |
| 486 | fixed64 tx_bytes = 8; |
| 487 | fixed64 tx_packets = 9; |
| 488 | fixed64 tx_ucast_packets = 10; |
| 489 | fixed64 tx_mcast_packets = 11; |
| 490 | fixed64 tx_bcast_packets = 12; |
| 491 | fixed64 tx_error_packets = 13; |
| 492 | fixed64 rx_crc_errors = 14; |
| 493 | fixed64 bip_errors = 15; |
| 494 | fixed32 timestamp = 16; |
| 495 | } |
| 496 | |
| 497 | message FlowStatistics { |
| 498 | fixed32 flow_id = 1; |
| 499 | fixed64 rx_bytes = 2; |
| 500 | fixed64 rx_packets = 3; |
| 501 | fixed64 tx_bytes = 8; |
| 502 | fixed64 tx_packets = 9; |
| 503 | fixed32 timestamp = 16; |
| 504 | } |
| 505 | |
| 506 | message LosIndication { |
| 507 | fixed32 intf_id = 1; |
| 508 | string status = 2; |
| 509 | } |
| 510 | |
| 511 | message DyingGaspIndication { |
| 512 | fixed32 intf_id = 1; |
| 513 | fixed32 onu_id = 2; |
| 514 | string status = 3; |
| 515 | } |
| 516 | |
| 517 | message OnuAlarmIndication { |
| 518 | fixed32 intf_id = 1; |
| 519 | fixed32 onu_id = 2; |
| 520 | string los_status = 3; |
| 521 | string lob_status = 4; |
| 522 | string lopc_miss_status = 5; |
| 523 | string lopc_mic_error_status = 6; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 524 | string lofi_status = 7; |
| 525 | string loami_status = 8; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 526 | } |
| 527 | |
| 528 | message OnuStartupFailureIndication { |
| 529 | fixed32 intf_id = 1; |
| 530 | fixed32 onu_id = 2; |
| 531 | string status = 3; |
| 532 | } |
| 533 | |
| 534 | message OnuSignalDegradeIndication { |
| 535 | fixed32 intf_id = 1; |
| 536 | fixed32 onu_id = 2; |
| 537 | string status = 3; |
| 538 | fixed32 inverse_bit_error_rate = 4; |
| 539 | } |
| 540 | |
| 541 | message OnuDriftOfWindowIndication { |
| 542 | fixed32 intf_id = 1; |
| 543 | fixed32 onu_id = 2; |
| 544 | string status = 3; |
| 545 | fixed32 drift = 4; |
| 546 | fixed32 new_eqd = 5; |
| 547 | } |
| 548 | |
| 549 | message OnuLossOfOmciChannelIndication { |
| 550 | fixed32 intf_id = 1; |
| 551 | fixed32 onu_id = 2; |
| 552 | string status = 3; |
| 553 | } |
| 554 | |
| 555 | message OnuSignalsFailureIndication { |
| 556 | fixed32 intf_id = 1; |
| 557 | fixed32 onu_id = 2; |
| 558 | string status = 3; |
| 559 | fixed32 inverse_bit_error_rate = 4; |
| 560 | } |
| 561 | |
| 562 | message OnuTransmissionInterferenceWarning { |
| 563 | fixed32 intf_id = 1; |
| 564 | fixed32 onu_id = 2; |
| 565 | string status = 3; |
| 566 | fixed32 drift = 4; |
| 567 | } |
| 568 | |
| 569 | message OnuActivationFailureIndication { |
| 570 | fixed32 intf_id = 1; |
| 571 | fixed32 onu_id = 2; |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 572 | fixed32 fail_reason = 3; |
| 573 | } |
| 574 | |
| 575 | message OnuLossOfKeySyncFailureIndication { |
| 576 | fixed32 intf_id = 1; |
| 577 | fixed32 onu_id = 2; |
| 578 | string status = 3; |
| 579 | } |
| 580 | |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 581 | message RdiErrorIndication { |
| 582 | fixed64 rdi_error_count = 1; // RDI Error count |
| 583 | string status = 2; // on/off based on configured reporting condition |
| 584 | } |
| 585 | |
Naga Manjunath | 0a73425 | 2019-11-21 19:00:23 +0530 | [diff] [blame] | 586 | message OnuItuPonStatsIndication{ |
| 587 | fixed32 intf_id = 1; |
| 588 | fixed32 onu_id = 2; |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 589 | oneof stats { |
| 590 | RdiErrorIndication rdi_error_ind = 3; |
| 591 | // add more here |
| 592 | } |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 593 | } |
| 594 | |
| 595 | message OnuProcessingErrorIndication { |
| 596 | fixed32 intf_id = 1; |
| 597 | fixed32 onu_id = 2; |
| 598 | } |
| 599 | |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 600 | message OnuDeactivationFailureIndication { |
| 601 | fixed32 intf_id = 1; |
| 602 | fixed32 onu_id = 2; |
Girish Gowdra | 5192ea8 | 2020-05-06 20:49:11 -0700 | [diff] [blame] | 603 | string status = 3; |
Devmalya Paul | ea6eb47 | 2020-02-04 20:41:01 -0500 | [diff] [blame] | 604 | } |
| 605 | |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 606 | message OnuRemoteDefectIndication { |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 607 | fixed32 intf_id = 1; |
| 608 | fixed32 onu_id = 2; |
Jason Huang | 55ee29d | 2020-03-11 23:43:29 +0800 | [diff] [blame] | 609 | fixed64 rdi_errors = 3; |
Devmalya Paul | b0c1247 | 2020-02-18 20:08:53 -0500 | [diff] [blame] | 610 | } |
| 611 | |
Devmalya Paul | 8295796 | 2020-03-01 18:49:37 -0500 | [diff] [blame] | 612 | message OnuLossOfGEMChannelDelineationIndication { |
| 613 | fixed32 intf_id = 1; |
| 614 | fixed32 onu_id = 2; |
| 615 | string status = 3; |
| 616 | fixed32 delineation_errors = 4; |
| 617 | } |
| 618 | |
| 619 | message OnuPhysicalEquipmentErrorIndication { |
| 620 | fixed32 intf_id = 1; |
| 621 | fixed32 onu_id = 2; |
| 622 | string status = 3; |
| 623 | } |
| 624 | |
| 625 | message OnuLossOfAcknowledgementIndication { |
| 626 | fixed32 intf_id = 1; |
| 627 | fixed32 onu_id = 2; |
| 628 | string status = 3; |
| 629 | } |
| 630 | |
Devmalya Paul | 342bf9d | 2020-03-19 02:42:56 -0400 | [diff] [blame] | 631 | message OnuDifferentialReachExceededIndication { |
| 632 | fixed32 intf_id = 1; |
| 633 | fixed32 onu_id = 2; |
| 634 | string status = 3; |
| 635 | fixed32 distance = 4; |
| 636 | } |
| 637 | |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 638 | message GroupMember { |
| 639 | enum InterfaceType { |
| 640 | PON = 0; |
| 641 | EPON_1G_PATH = 1; |
| 642 | EPON_10G_PATH = 2; |
| 643 | } |
| 644 | uint32 interface_id = 1; |
| 645 | InterfaceType interface_type = 2; |
| 646 | uint32 gem_port_id = 3; |
| 647 | uint32 priority = 4; // Priority (and also the ID) of the default fixed queue for the multicast traffic. |
| 648 | // This queue is attached to the default PON port scheduler. |
| 649 | } |
| 650 | |
| 651 | message Group { |
| 652 | enum GroupMembersCommand { |
| 653 | ADD_MEMBERS = 0; |
| 654 | REMOVE_MEMBERS = 1; |
| 655 | SET_MEMBERS = 2; |
| 656 | } |
| 657 | |
| 658 | uint32 group_id = 1; |
| 659 | GroupMembersCommand command = 2; |
| 660 | repeated GroupMember members = 3; |
| 661 | Action action = 4; |
| 662 | } |
| 663 | |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 664 | message ValueParam { |
| 665 | Onu onu = 1; |
| 666 | common.ValueType.Type value = 2; |
| 667 | } |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 668 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 669 | message Empty {} |
Burak Gurdag | 402dd95 | 2019-12-10 20:31:11 +0000 | [diff] [blame] | 670 | |