Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [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"; |
| 16 | package openolt; |
| 17 | import "google/api/annotations.proto"; |
| 18 | |
| 19 | service Openolt { |
| 20 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 21 | rpc DisableOlt(Empty) returns (Empty) { |
| 22 | option (google.api.http) = { |
| 23 | post: "/v1/Disable" |
| 24 | body: "*" |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | rpc ReenableOlt(Empty) returns (Empty) { |
| 29 | option (google.api.http) = { |
| 30 | post: "/v1/Reenable" |
| 31 | body: "*" |
| 32 | }; |
| 33 | } |
| 34 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 35 | rpc ActivateOnu(Onu) returns (Empty) { |
| 36 | option (google.api.http) = { |
| 37 | post: "/v1/EnableOnu" |
| 38 | body: "*" |
| 39 | }; |
| 40 | } |
| 41 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 42 | rpc DeactivateOnu(Onu) returns (Empty) { |
| 43 | option (google.api.http) = { |
| 44 | post: "/v1/DisableOnu" |
| 45 | body: "*" |
| 46 | }; |
| 47 | } |
| 48 | |
| 49 | rpc DeleteOnu(Onu) returns (Empty) { |
| 50 | option (google.api.http) = { |
| 51 | post: "/v1/DeleteOnu" |
| 52 | body: "*" |
| 53 | }; |
| 54 | } |
| 55 | |
Anjali Thontakudi | 6665920 | 2019-07-03 23:14:02 +0000 | [diff] [blame^] | 56 | rpc GetOnuInfo(Onu) returns (OnuIndication) { |
| 57 | option (google.api.http) = { |
| 58 | post: "/v1/GetOnuInfo" |
| 59 | body: "*" |
| 60 | }; |
| 61 | } |
| 62 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 63 | rpc OmciMsgOut(OmciMsg) returns (Empty) { |
| 64 | option (google.api.http) = { |
| 65 | post: "/v1/OmciMsgOut" |
| 66 | body: "*" |
| 67 | }; |
| 68 | } |
| 69 | |
| 70 | rpc OnuPacketOut(OnuPacket) returns (Empty) { |
| 71 | option (google.api.http) = { |
| 72 | post: "/v1/OnuPacketOut" |
| 73 | body: "*" |
| 74 | }; |
| 75 | } |
| 76 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 77 | rpc UplinkPacketOut(UplinkPacket) returns (Empty) { |
| 78 | option (google.api.http) = { |
| 79 | post: "/v1/UplinkPacketOut" |
| 80 | body: "*" |
| 81 | }; |
| 82 | } |
| 83 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 84 | rpc FlowAdd(Flow) returns (Empty) { |
| 85 | option (google.api.http) = { |
| 86 | post: "/v1/FlowAdd" |
| 87 | body: "*" |
| 88 | }; |
| 89 | } |
| 90 | |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 91 | rpc FlowRemove(Flow) returns (Empty) { |
| 92 | option (google.api.http) = { |
| 93 | post: "/v1/FlowRemove" |
| 94 | body: "*" |
| 95 | }; |
| 96 | } |
| 97 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 98 | rpc HeartbeatCheck(Empty) returns (Heartbeat) { |
| 99 | option (google.api.http) = { |
| 100 | post: "/v1/HeartbeatCheck" |
| 101 | body: "*" |
| 102 | }; |
| 103 | } |
| 104 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 105 | rpc EnablePonIf(Interface) returns (Empty) { |
| 106 | option (google.api.http) = { |
| 107 | post: "/v1/EnablePonIf" |
| 108 | body: "*" |
| 109 | }; |
| 110 | } |
| 111 | |
Anjali Thontakudi | b871c50 | 2019-07-03 18:26:12 +0000 | [diff] [blame] | 112 | rpc GetPonIf(Interface) returns (IntfIndication) { |
| 113 | option (google.api.http) = { |
| 114 | post: "/v1/GetPonIf" |
| 115 | body: "*" |
| 116 | }; |
| 117 | } |
| 118 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 119 | rpc DisablePonIf(Interface) returns (Empty) { |
| 120 | option (google.api.http) = { |
| 121 | post: "/v1/DisablePonIf" |
| 122 | body: "*" |
| 123 | }; |
| 124 | } |
| 125 | |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 126 | rpc GetDeviceInfo(Empty) returns (DeviceInfo) { |
| 127 | option (google.api.http) = { |
| 128 | post: "/v1/GetDeviceInfo" |
| 129 | body: "*" |
| 130 | }; |
| 131 | } |
| 132 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 133 | rpc Reboot(Empty) returns (Empty) { |
| 134 | option (google.api.http) = { |
| 135 | post: "/v1/Reboot" |
| 136 | body: "*" |
| 137 | }; |
| 138 | } |
| 139 | |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 140 | rpc CollectStatistics(Empty) returns (Empty) { |
| 141 | option (google.api.http) = { |
| 142 | post: "/v1/CollectStatistics" |
| 143 | body: "*" |
| 144 | }; |
| 145 | } |
| 146 | |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 147 | rpc CreateTconts(Tconts) returns (Empty) { |
| 148 | option (google.api.http) = { |
| 149 | post: "/v1/CreateTconts" |
| 150 | body: "*" |
| 151 | }; |
| 152 | } |
| 153 | |
| 154 | rpc RemoveTconts(Tconts) returns (Empty) { |
| 155 | option (google.api.http) = { |
| 156 | post: "/v1/RemoveTconts" |
| 157 | body: "*" |
| 158 | }; |
| 159 | } |
| 160 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 161 | rpc EnableIndication(Empty) returns (stream Indication) {} |
| 162 | } |
| 163 | |
| 164 | message Indication { |
| 165 | oneof data { |
| 166 | OltIndication olt_ind = 1; |
| 167 | IntfIndication intf_ind = 2; |
| 168 | IntfOperIndication intf_oper_ind = 3; |
| 169 | OnuDiscIndication onu_disc_ind = 4; |
| 170 | OnuIndication onu_ind = 5; |
| 171 | OmciIndication omci_ind = 6; |
| 172 | PacketIndication pkt_ind = 7; |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 173 | PortStatistics port_stats = 8; |
| 174 | FlowStatistics flow_stats = 9; |
| 175 | AlarmIndication alarm_ind= 10; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | message AlarmIndication { |
| 180 | oneof data { |
| 181 | LosIndication los_ind = 1; |
| 182 | DyingGaspIndication dying_gasp_ind = 2; |
| 183 | OnuAlarmIndication onu_alarm_ind = 3; |
| 184 | OnuStartupFailureIndication onu_startup_fail_ind = 4; |
| 185 | OnuSignalDegradeIndication onu_signal_degrade_ind = 5; |
| 186 | OnuDriftOfWindowIndication onu_drift_of_window_ind = 6; |
| 187 | OnuLossOfOmciChannelIndication onu_loss_omci_ind = 7; |
| 188 | OnuSignalsFailureIndication onu_signals_fail_ind = 8; |
| 189 | OnuTransmissionInterferenceWarning onu_tiwi_ind = 9; |
| 190 | OnuActivationFailureIndication onu_activation_fail_ind = 10; |
| 191 | OnuProcessingErrorIndication onu_processing_error_ind = 11; |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 192 | } |
| 193 | } |
| 194 | |
| 195 | message OltIndication { |
| 196 | string oper_state = 1; // up, down |
| 197 | } |
| 198 | |
| 199 | message IntfIndication { |
| 200 | fixed32 intf_id = 1; |
| 201 | string oper_state = 2; // up, down |
| 202 | } |
| 203 | |
| 204 | message OnuDiscIndication { |
| 205 | fixed32 intf_id = 1; |
| 206 | SerialNumber serial_number = 2; |
| 207 | } |
| 208 | |
| 209 | message OnuIndication { |
| 210 | fixed32 intf_id = 1; |
| 211 | fixed32 onu_id = 2; |
| 212 | string oper_state = 3; // up, down |
| 213 | string admin_state = 5; // up, down |
| 214 | SerialNumber serial_number = 4; |
| 215 | } |
| 216 | |
| 217 | message IntfOperIndication { |
| 218 | string type = 1; // nni, pon |
| 219 | fixed32 intf_id = 2; |
| 220 | string oper_state = 3; // up, down |
| 221 | } |
| 222 | |
| 223 | message OmciIndication { |
| 224 | fixed32 intf_id = 1; |
| 225 | fixed32 onu_id = 2; |
| 226 | bytes pkt = 3; |
| 227 | } |
| 228 | |
| 229 | message PacketIndication { |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 230 | string intf_type = 5; // nni, pon, unknown |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 231 | fixed32 intf_id = 1; |
| 232 | fixed32 gemport_id = 2; |
| 233 | fixed32 flow_id = 3; |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 234 | fixed32 port_no = 6; |
| 235 | fixed64 cookie = 7; |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 236 | bytes pkt = 4; |
| 237 | } |
| 238 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 239 | message Interface { |
| 240 | fixed32 intf_id = 1; |
| 241 | } |
| 242 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 243 | message Heartbeat { |
| 244 | fixed32 heartbeat_signature = 1; |
| 245 | } |
| 246 | |
| 247 | message Onu { |
| 248 | fixed32 intf_id = 1; |
| 249 | fixed32 onu_id = 2; |
| 250 | SerialNumber serial_number = 3; |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 251 | fixed32 pir = 4; // peak information rate assigned to onu |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | message OmciMsg { |
| 255 | fixed32 intf_id = 1; |
| 256 | fixed32 onu_id = 2; |
| 257 | bytes pkt = 3; |
| 258 | } |
| 259 | |
| 260 | message OnuPacket { |
| 261 | fixed32 intf_id = 1; |
| 262 | fixed32 onu_id = 2; |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 263 | fixed32 port_no = 4; |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 264 | bytes pkt = 3; |
| 265 | } |
| 266 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 267 | message UplinkPacket { |
| 268 | fixed32 intf_id = 1; |
| 269 | bytes pkt = 2; |
| 270 | } |
| 271 | |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 272 | message DeviceInfo { |
| 273 | string vendor = 1; |
| 274 | string model = 2; |
| 275 | string hardware_version = 3; |
| 276 | string firmware_version = 4; |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 277 | string device_id = 16; |
| 278 | string device_serial_number = 17; |
Shad Ansari | b7b58c7 | 2018-11-06 15:36:41 -0800 | [diff] [blame] | 279 | |
| 280 | // Total number of pon intf ports on the device |
| 281 | fixed32 pon_ports = 12; |
| 282 | |
| 283 | // If using global per-device technology profile. To be deprecated |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 284 | string technology = 5; |
| 285 | fixed32 onu_id_start = 6; |
| 286 | fixed32 onu_id_end = 7; |
| 287 | fixed32 alloc_id_start = 8; |
| 288 | fixed32 alloc_id_end = 9; |
| 289 | fixed32 gemport_id_start = 10; |
| 290 | fixed32 gemport_id_end = 11; |
Shad Ansari | b7b58c7 | 2018-11-06 15:36:41 -0800 | [diff] [blame] | 291 | fixed32 flow_id_start = 13; |
| 292 | fixed32 flow_id_end = 14; |
| 293 | |
| 294 | message DeviceResourceRanges { |
| 295 | |
| 296 | // List of 0 or more intf_ids that use the same technology and pools. |
| 297 | // If 0 intf_ids supplied, it implies ALL interfaces |
| 298 | repeated fixed32 intf_ids = 1; |
| 299 | |
| 300 | // Technology profile for this pool |
| 301 | string technology = 2; |
| 302 | |
| 303 | message Pool { |
| 304 | enum PoolType { |
| 305 | ONU_ID = 0; |
| 306 | ALLOC_ID = 1; |
| 307 | GEMPORT_ID = 2; |
| 308 | FLOW_ID = 3; |
| 309 | } |
| 310 | |
| 311 | enum SharingType { |
| 312 | DEDICATED_PER_INTF = 0; |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 313 | SHARED_BY_ALL_INTF_ALL_TECH = 1; // Shared across all interfaces in all technologies in all ranges |
Shad Ansari | b7b58c7 | 2018-11-06 15:36:41 -0800 | [diff] [blame] | 314 | SHARED_BY_ALL_INTF_SAME_TECH = 2; // Shared across all interfaces of the same technology used in this range |
| 315 | } |
| 316 | |
| 317 | PoolType type = 1; |
| 318 | SharingType sharing = 2; |
| 319 | fixed32 start = 3; // lower bound on IDs allocated from this pool |
| 320 | fixed32 end = 4; // upper bound on IDs allocated from this pool |
| 321 | } |
| 322 | repeated Pool pools = 3; |
| 323 | } |
| 324 | repeated DeviceResourceRanges ranges = 15; |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 325 | } |
| 326 | |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 327 | message Classifier { |
| 328 | fixed32 o_tpid = 1; |
| 329 | fixed32 o_vid = 2; |
| 330 | fixed32 i_tpid = 3; |
| 331 | fixed32 i_vid = 4; |
| 332 | fixed32 o_pbits = 5; |
| 333 | fixed32 i_pbits = 6; |
| 334 | fixed32 eth_type = 7; |
| 335 | bytes dst_mac = 8; |
| 336 | bytes src_mac = 9; |
| 337 | fixed32 ip_proto = 10; |
| 338 | fixed32 dst_ip = 11; |
| 339 | fixed32 src_ip = 12; |
| 340 | fixed32 src_port = 13; |
| 341 | fixed32 dst_port = 14; |
| 342 | string pkt_tag_type = 15; // untagged, single_tag, double_tag |
| 343 | } |
| 344 | |
| 345 | message ActionCmd { |
| 346 | bool add_outer_tag = 1; |
| 347 | bool remove_outer_tag = 2; |
| 348 | bool trap_to_host = 3; |
| 349 | } |
| 350 | |
| 351 | message Action { |
| 352 | ActionCmd cmd = 1; |
| 353 | fixed32 o_vid = 2; |
| 354 | fixed32 o_pbits = 3; |
| 355 | fixed32 o_tpid = 4; |
| 356 | fixed32 i_vid = 5; |
| 357 | fixed32 i_pbits = 6; |
| 358 | fixed32 i_tpid = 7; |
| 359 | } |
| 360 | |
| 361 | message Flow { |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 362 | sfixed32 access_intf_id = 1; |
| 363 | sfixed32 onu_id = 2; |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 364 | sfixed32 uni_id = 11; |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 365 | fixed32 flow_id = 3; |
| 366 | string flow_type = 4; // upstream, downstream, broadcast, multicast |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 367 | sfixed32 alloc_id = 10; |
| 368 | sfixed32 network_intf_id = 5; |
| 369 | sfixed32 gemport_id = 6; |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 370 | Classifier classifier = 7; |
| 371 | Action action = 8; |
Keita NISHIMOTO | 3b8b9c0 | 2018-10-09 09:40:01 +0900 | [diff] [blame] | 372 | sfixed32 priority = 9; |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 373 | fixed64 cookie = 12; // must be provided for any flow with trap_to_host action. Returned in PacketIndication |
| 374 | fixed32 port_no = 13; // must be provided for any flow with trap_to_host action. Returned in PacketIndication |
Keita NISHIMOTO | d771cd1 | 2018-06-07 08:37:24 +0900 | [diff] [blame] | 375 | } |
| 376 | |
| 377 | message SerialNumber { |
| 378 | bytes vendor_id = 1; |
| 379 | bytes vendor_specific = 2; |
| 380 | } |
| 381 | |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 382 | message PortStatistics { |
| 383 | fixed32 intf_id = 1; |
| 384 | fixed64 rx_bytes = 2; |
| 385 | fixed64 rx_packets = 3; |
| 386 | fixed64 rx_ucast_packets = 4; |
| 387 | fixed64 rx_mcast_packets = 5; |
| 388 | fixed64 rx_bcast_packets = 6; |
| 389 | fixed64 rx_error_packets = 7; |
| 390 | fixed64 tx_bytes = 8; |
| 391 | fixed64 tx_packets = 9; |
| 392 | fixed64 tx_ucast_packets = 10; |
| 393 | fixed64 tx_mcast_packets = 11; |
| 394 | fixed64 tx_bcast_packets = 12; |
| 395 | fixed64 tx_error_packets = 13; |
| 396 | fixed64 rx_crc_errors = 14; |
| 397 | fixed64 bip_errors = 15; |
| 398 | fixed32 timestamp = 16; |
| 399 | } |
| 400 | |
| 401 | message FlowStatistics { |
| 402 | fixed32 flow_id = 1; |
| 403 | fixed64 rx_bytes = 2; |
| 404 | fixed64 rx_packets = 3; |
| 405 | fixed64 tx_bytes = 8; |
| 406 | fixed64 tx_packets = 9; |
| 407 | fixed32 timestamp = 16; |
| 408 | } |
| 409 | |
| 410 | message LosIndication { |
| 411 | fixed32 intf_id = 1; |
| 412 | string status = 2; |
| 413 | } |
| 414 | |
| 415 | message DyingGaspIndication { |
| 416 | fixed32 intf_id = 1; |
| 417 | fixed32 onu_id = 2; |
| 418 | string status = 3; |
| 419 | } |
| 420 | |
| 421 | message OnuAlarmIndication { |
| 422 | fixed32 intf_id = 1; |
| 423 | fixed32 onu_id = 2; |
| 424 | string los_status = 3; |
| 425 | string lob_status = 4; |
| 426 | string lopc_miss_status = 5; |
| 427 | string lopc_mic_error_status = 6; |
| 428 | } |
| 429 | |
| 430 | message OnuStartupFailureIndication { |
| 431 | fixed32 intf_id = 1; |
| 432 | fixed32 onu_id = 2; |
| 433 | string status = 3; |
| 434 | } |
| 435 | |
| 436 | message OnuSignalDegradeIndication { |
| 437 | fixed32 intf_id = 1; |
| 438 | fixed32 onu_id = 2; |
| 439 | string status = 3; |
| 440 | fixed32 inverse_bit_error_rate = 4; |
| 441 | } |
| 442 | |
| 443 | message OnuDriftOfWindowIndication { |
| 444 | fixed32 intf_id = 1; |
| 445 | fixed32 onu_id = 2; |
| 446 | string status = 3; |
| 447 | fixed32 drift = 4; |
| 448 | fixed32 new_eqd = 5; |
| 449 | } |
| 450 | |
| 451 | message OnuLossOfOmciChannelIndication { |
| 452 | fixed32 intf_id = 1; |
| 453 | fixed32 onu_id = 2; |
| 454 | string status = 3; |
| 455 | } |
| 456 | |
| 457 | message OnuSignalsFailureIndication { |
| 458 | fixed32 intf_id = 1; |
| 459 | fixed32 onu_id = 2; |
| 460 | string status = 3; |
| 461 | fixed32 inverse_bit_error_rate = 4; |
| 462 | } |
| 463 | |
| 464 | message OnuTransmissionInterferenceWarning { |
| 465 | fixed32 intf_id = 1; |
| 466 | fixed32 onu_id = 2; |
| 467 | string status = 3; |
| 468 | fixed32 drift = 4; |
| 469 | } |
| 470 | |
| 471 | message OnuActivationFailureIndication { |
| 472 | fixed32 intf_id = 1; |
| 473 | fixed32 onu_id = 2; |
| 474 | } |
| 475 | |
| 476 | message OnuProcessingErrorIndication { |
| 477 | fixed32 intf_id = 1; |
| 478 | fixed32 onu_id = 2; |
| 479 | } |
| 480 | |
Shad Ansari | fd29844 | 2019-01-08 16:19:35 -0800 | [diff] [blame] | 481 | enum Direction { |
| 482 | UPSTREAM = 0; |
| 483 | DOWNSTREAM = 1; |
| 484 | BIDIRECTIONAL = 2; |
| 485 | } |
| 486 | |
| 487 | enum SchedulingPolicy { |
| 488 | WRR = 0; |
| 489 | StrictPriority = 1; |
| 490 | Hybrid = 2; |
| 491 | } |
| 492 | |
| 493 | enum AdditionalBW { |
| 494 | AdditionalBW_None = 0; |
| 495 | AdditionalBW_NA = 1; |
| 496 | AdditionalBW_BestEffort = 2; |
| 497 | AdditionalBW_Auto = 3; |
| 498 | } |
| 499 | |
| 500 | enum DiscardPolicy { |
| 501 | TailDrop = 0; |
| 502 | WTailDrop = 1; |
| 503 | Red = 2; |
| 504 | WRed = 3; |
| 505 | } |
| 506 | |
| 507 | enum InferredAdditionBWIndication { |
| 508 | InferredAdditionBWIndication_None = 0; |
| 509 | InferredAdditionBWIndication_Assured = 1; |
| 510 | InferredAdditionBWIndication_BestEffort = 2; |
| 511 | } |
| 512 | |
| 513 | message Scheduler { |
| 514 | Direction direction = 1; |
| 515 | AdditionalBW additional_bw = 2; // Valid on for “direction == Upstream”. |
| 516 | fixed32 priority = 3; |
| 517 | fixed32 weight = 4; |
| 518 | SchedulingPolicy sched_policy = 5; |
| 519 | } |
| 520 | |
| 521 | message TrafficShapingInfo { |
| 522 | fixed32 cir = 1; |
| 523 | fixed32 cbs = 2; |
| 524 | fixed32 pir = 3; |
| 525 | fixed32 pbs = 4; |
| 526 | fixed32 gir = 5; // only if “direction == Upstream ” |
| 527 | InferredAdditionBWIndication add_bw_ind = 6; // only if “direction == Upstream” |
| 528 | } |
| 529 | |
| 530 | message Tcont { |
| 531 | Direction direction = 1; |
| 532 | fixed32 alloc_id = 2; // valid only if “direction == Upstream ” |
| 533 | Scheduler scheduler = 3; |
| 534 | TrafficShapingInfo traffic_shaping_info = 4; |
| 535 | } |
| 536 | |
| 537 | message Tconts { |
| 538 | fixed32 intf_id = 1; |
| 539 | fixed32 onu_id = 2; |
| 540 | fixed32 uni_id = 4; |
| 541 | fixed32 port_no = 5; |
| 542 | repeated Tcont tconts = 3; |
| 543 | } |
| 544 | |
| 545 | message TailDropDiscardConfig { |
| 546 | fixed32 queue_size = 1; |
| 547 | } |
| 548 | |
| 549 | message RedDiscardConfig { |
| 550 | fixed32 min_threshold = 1; |
| 551 | fixed32 max_threshold = 2; |
| 552 | fixed32 max_probability = 3; |
| 553 | } |
| 554 | |
| 555 | message WRedDiscardConfig { |
| 556 | RedDiscardConfig green = 1; |
| 557 | RedDiscardConfig yellow = 2; |
| 558 | RedDiscardConfig red = 3; |
| 559 | } |
| 560 | |
| 561 | message DiscardConfig { |
| 562 | DiscardPolicy discard_policy = 1; |
| 563 | oneof discard_config { |
| 564 | TailDropDiscardConfig tail_drop_discard_config = 2; |
| 565 | RedDiscardConfig red_discard_config = 3; |
| 566 | WRedDiscardConfig wred_discard_config = 4; |
| 567 | } |
| 568 | } |
Keita NISHIMOTO | 26dab09 | 2018-07-06 09:52:45 +0900 | [diff] [blame] | 569 | |
Shad Ansari | b7b58c7 | 2018-11-06 15:36:41 -0800 | [diff] [blame] | 570 | message Empty {} |