Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -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"; |
amit.ghosh | ee17c00 | 2021-06-10 12:14:38 +0200 | [diff] [blame] | 16 | |
| 17 | option go_package = "github.com/opencord/bbsim/api/bbsim"; |
| 18 | |
Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame] | 19 | package bbsim; |
| 20 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 21 | import "voltha_protos/openolt.proto"; |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 22 | import "voltha_protos/tech_profile.proto"; |
Matteo Scandolo | 10f965c | 2019-09-24 10:40:46 -0700 | [diff] [blame] | 23 | // Models |
| 24 | |
Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame] | 25 | message PONPort { |
| 26 | int32 ID = 1; |
| 27 | string OperState = 2; |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 28 | string InternalState = 3; |
| 29 | uint64 PacketCount = 4; |
| 30 | // ONU ID are reported by VOLTHA in the ActivateOnu call |
| 31 | repeated PonAllocatedResources AllocatedOnuIds = 5; |
| 32 | // these are the stored resource IDs as reported via OMCI |
| 33 | repeated PonAllocatedResources AllocatedGemPorts = 6; |
| 34 | repeated PonAllocatedResources AllocatedAllocIds = 7; |
Elia Battiston | b7bea22 | 2022-02-18 16:25:00 +0100 | [diff] [blame] | 35 | string Technology = 8; |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | message PonAllocatedResources { |
| 39 | string SerialNumber = 1; |
| 40 | int32 Id = 2; |
Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | message NNIPort { |
| 44 | int32 ID = 1; |
| 45 | string OperState = 2; |
| 46 | } |
| 47 | |
| 48 | message Olt { |
| 49 | int32 ID = 1; |
Matteo Scandolo | 8df63df | 2019-09-12 10:34:32 -0700 | [diff] [blame] | 50 | string SerialNumber = 2; |
| 51 | string OperState = 3; |
| 52 | string InternalState = 4; |
rajesh | f921f88 | 2020-03-06 18:24:28 +0530 | [diff] [blame] | 53 | string IP = 7; |
Matteo Scandolo | 8df63df | 2019-09-12 10:34:32 -0700 | [diff] [blame] | 54 | repeated NNIPort NNIPorts = 5; |
| 55 | repeated PONPort PONPorts = 6; |
Andrea Campanella | 6f5f355 | 2022-03-10 17:14:25 +0100 | [diff] [blame] | 56 | int32 NniDhcpTrapVid = 8; |
Matteo Scandolo | 9a3518c | 2019-08-13 14:36:01 -0700 | [diff] [blame] | 57 | } |
| 58 | |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 59 | message OltAllocatedResourceType { |
| 60 | enum Type { |
| 61 | UNKNOWN = 0; |
| 62 | ALLOC_ID = 1; |
| 63 | GEM_PORT = 2; |
| 64 | } |
| 65 | Type type = 1; |
| 66 | } |
| 67 | |
| 68 | message OltAllocatedResource { |
| 69 | string Type = 1; |
| 70 | uint32 PonPortId = 2; |
| 71 | uint32 OnuId = 3; |
| 72 | uint32 PortNo = 4; |
| 73 | int32 ResourceId = 5; |
| 74 | uint64 FlowId = 6; |
| 75 | } |
| 76 | |
| 77 | message OltAllocatedResources { |
| 78 | repeated OltAllocatedResource resources = 1; |
| 79 | } |
| 80 | |
Matteo Scandolo | 9a3518c | 2019-08-13 14:36:01 -0700 | [diff] [blame] | 81 | message ONU { |
| 82 | int32 ID = 1; |
| 83 | string SerialNumber = 2; |
| 84 | string OperState = 3; |
| 85 | string InternalState = 4; |
| 86 | int32 PonPortID = 5; |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 87 | string HwAddress = 8 [deprecated = true]; |
| 88 | int32 PortNo = 9 [deprecated = true]; |
| 89 | repeated Service services = 10 [deprecated = true]; |
Matteo Scandolo | cedde46 | 2021-03-09 17:37:16 -0800 | [diff] [blame] | 90 | int32 ImageSoftwareExpectedSections = 11; |
| 91 | int32 ImageSoftwareReceivedSections = 12; |
| 92 | int32 ActiveImageEntityId = 13; |
| 93 | int32 CommittedImageEntityId = 14; |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 94 | repeated UNI unis = 15; |
| 95 | } |
| 96 | |
Elia Battiston | ac63b11 | 2022-01-12 18:40:49 +0100 | [diff] [blame] | 97 | enum UniType{ |
| 98 | ETH = 0; |
| 99 | POTS = 1; |
| 100 | } |
| 101 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 102 | message UNI { |
| 103 | int32 ID = 1; |
| 104 | int32 OnuID = 2; |
| 105 | string OnuSn = 3; |
| 106 | uint32 MeID = 4; |
| 107 | string OperState = 5; |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 108 | int32 PortNo = 6; |
| 109 | repeated Service services = 7; |
Elia Battiston | ac63b11 | 2022-01-12 18:40:49 +0100 | [diff] [blame] | 110 | UniType Type = 8; |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | message Service { |
| 114 | string Name = 1; |
| 115 | string HwAddress = 2; |
| 116 | string OnuSn = 3; |
| 117 | int32 STag = 4; |
| 118 | int32 CTag = 5; |
| 119 | bool NeedsEapol = 6; |
| 120 | bool NeedsDhcp = 7; |
| 121 | bool NeedsIgmp = 8; |
| 122 | int32 GemPort = 9; |
| 123 | string EapolState = 10; |
| 124 | string DhcpState = 11; |
Matteo Scandolo | 75ed5b9 | 2020-09-03 09:03:16 -0700 | [diff] [blame] | 125 | string InternalState = 12; |
Matteo Scandolo | 618a658 | 2020-09-09 12:21:29 -0700 | [diff] [blame] | 126 | string IGMPState = 13; |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 127 | uint32 UniId = 14; |
Elia Battiston | 9a1da62 | 2022-02-09 14:43:52 +0100 | [diff] [blame] | 128 | int32 UniTagMatch = 15; |
| 129 | uint32 UsCTagPriority = 16; //Upstream |
| 130 | uint32 UsSTagPriority = 17; //Upstream |
| 131 | uint32 DsCTagPriority = 18; //Downstream |
| 132 | uint32 DsSTagPriority = 19; //Downstream |
| 133 | bool NeedsPPPoE = 20; |
| 134 | bool ConfigureMacAddress = 21; |
| 135 | bool EnableMacLearning = 22; |
Matteo Scandolo | 9a3518c | 2019-08-13 14:36:01 -0700 | [diff] [blame] | 136 | } |
| 137 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 138 | message ONUTrafficSchedulers { |
| 139 | tech_profile.TrafficSchedulers traffSchedulers = 1; |
| 140 | } |
| 141 | |
Matteo Scandolo | 9a3518c | 2019-08-13 14:36:01 -0700 | [diff] [blame] | 142 | message ONUs { |
| 143 | repeated ONU items = 1; |
Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame] | 144 | } |
| 145 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 146 | message Services { |
| 147 | repeated Service items = 1; |
| 148 | } |
| 149 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 150 | message UNIs { |
| 151 | repeated UNI items = 1; |
| 152 | } |
| 153 | |
Matteo Scandolo | 10f965c | 2019-09-24 10:40:46 -0700 | [diff] [blame] | 154 | // Inputs |
| 155 | |
| 156 | message ONURequest { |
| 157 | string SerialNumber = 1; |
| 158 | } |
| 159 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 160 | message PONRequest { |
| 161 | uint32 PonPortId = 1; |
| 162 | } |
| 163 | |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 164 | message UNIRequest { |
| 165 | string OnuSerialNumber = 1; |
| 166 | string UniID = 2; |
| 167 | } |
| 168 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 169 | // Alarms |
| 170 | |
| 171 | message AlarmType { |
| 172 | // These types correspond to the messages permitted in the oneof |
| 173 | // in AlarmIndication in the openolt protos |
| 174 | enum Types { |
| 175 | LOS = 0; // LOS is an OLT alarm for an entire PON |
| 176 | DYING_GASP = 1; |
| 177 | ONU_ALARM = 2; |
| 178 | ONU_STARTUP_FAILURE = 3; |
| 179 | ONU_SIGNAL_DEGRADE = 4; |
| 180 | ONU_DRIFT_OF_WINDOW = 5; |
| 181 | ONU_LOSS_OF_OMCI_CHANNEL = 6; |
| 182 | ONU_SIGNALS_FAILURE = 7; |
| 183 | ONU_TRANSMISSION_INTERFERENCE_WARNING = 8; |
| 184 | ONU_ACTIVATION_FAILURE = 9; |
| 185 | ONU_PROCESSING_ERROR = 10; |
| 186 | ONU_LOSS_OF_KEY_SYNC_FAILURE = 11; |
| 187 | ONU_ITU_PON_STATS = 12; |
| 188 | |
| 189 | // These break out ONU_ALARM, which is a single message, but |
| 190 | // includes statuses for these six alarms. |
| 191 | ONU_ALARM_LOS = 13; |
| 192 | ONU_ALARM_LOB = 14; |
| 193 | ONU_ALARM_LOPC_MISS = 15; |
| 194 | ONU_ALARM_LOPC_MIC_ERROR = 16; |
| 195 | ONU_ALARM_LOFI = 17; |
| 196 | ONU_ALARM_LOAMI = 18; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | message AlarmParameter { |
| 201 | string Key = 1; |
| 202 | string Value = 2; |
| 203 | } |
| 204 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 205 | // ONUAlarmRequest includes fields common to every Onu alarm, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 206 | // plus an optional list of AlarmParameter list that can be used |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 207 | // to set additional fields in alarms that support them. |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 208 | message ONUAlarmRequest { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 209 | string AlarmType = 1; // name of alarm to raise |
| 210 | string SerialNumber = 2; // serial number of ONU |
| 211 | string Status = 3; // status of Alarm |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 212 | repeated AlarmParameter Parameters = 4; // optional list of additional parameters |
| 213 | } |
| 214 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 215 | // OLT alarm request |
| 216 | message OLTAlarmRequest { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 217 | uint32 InterfaceID = 1; // Switch Interface Id |
| 218 | string InterfaceType = 2; // PON or NNI Type |
| 219 | string Status = 3; // Interface Operstatus |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 220 | } |
| 221 | |
Matteo Scandolo | 10f965c | 2019-09-24 10:40:46 -0700 | [diff] [blame] | 222 | // Utils |
| 223 | |
Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame] | 224 | message VersionNumber { |
| 225 | string version = 1; |
| 226 | string buildTime = 2; |
| 227 | string commitHash = 3; |
| 228 | string gitStatus = 4; |
| 229 | } |
| 230 | |
Matteo Scandolo | 2bf742a | 2019-10-01 11:33:34 -0700 | [diff] [blame] | 231 | message LogLevel { |
| 232 | string level = 1; |
| 233 | bool caller = 2; |
| 234 | } |
| 235 | |
Matteo Scandolo | 10f965c | 2019-09-24 10:40:46 -0700 | [diff] [blame] | 236 | message Response { |
| 237 | int32 status_code = 1; |
| 238 | string message = 2; |
| 239 | } |
| 240 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 241 | enum SubActionTypes { |
| 242 | JOIN = 0; |
| 243 | LEAVE = 1; |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 244 | JOINV3 = 2; |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | message IgmpRequest { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 248 | ONURequest OnuReq = 1; |
| 249 | SubActionTypes SubActionVal = 2; |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 250 | string GroupAddress = 3; |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 251 | } |
| 252 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 253 | message Flows { |
| 254 | uint32 flow_count = 1; |
| 255 | repeated openolt.Flow flows = 2; |
| 256 | } |
| 257 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 258 | message Timeout { |
| 259 | uint32 delay = 1; |
| 260 | } |
| 261 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 262 | message Empty { |
| 263 | } |
Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame] | 264 | |
| 265 | service BBSim { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 266 | // Get BBSim version |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 267 | rpc Version (Empty) returns (VersionNumber) { |
| 268 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 269 | // Set BBSim log level |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 270 | rpc SetLogLevel (LogLevel) returns (LogLevel) { |
| 271 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 272 | |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 273 | // Get current status of OLT |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 274 | rpc GetOlt (Empty) returns (Olt) { |
| 275 | } |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 276 | |
| 277 | rpc GetOltAllocatedResources (OltAllocatedResourceType) returns (OltAllocatedResources) { |
| 278 | } |
| 279 | |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 280 | // Poweron OLT |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 281 | rpc PoweronOlt (Empty) returns (Response) { |
| 282 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 283 | // Shutdown OLT |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 284 | rpc ShutdownOlt (Empty) returns (Response) { |
| 285 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 286 | // Reboot OLT |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 287 | rpc RebootOlt (Empty) returns (Response) { |
| 288 | } |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 289 | // Closes the Openolt gRPC server |
| 290 | rpc StopgRPCServer (Empty) returns (Response) { |
| 291 | } |
| 292 | // Start the Openolt gRPC server |
| 293 | rpc StartgRPCServer (Empty) returns (Response) { |
| 294 | } |
| 295 | // Restart the Openolt gRPC server after the given timeout |
| 296 | rpc RestartgRPCServer (Timeout) returns (Response) { |
| 297 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 298 | |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 299 | // Get status of an ONU by serial number |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 300 | rpc GetONU (ONURequest) returns (ONU) { |
| 301 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 302 | // Get status of all ONUs |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 303 | rpc GetONUs (Empty) returns (ONUs) { |
| 304 | } |
| 305 | |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 306 | // Get all the Services by Uni ID |
| 307 | rpc GetServices (UNIRequest) returns (Services) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 308 | } |
| 309 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 310 | // Get all the UNIs of an ONU by serial number |
| 311 | rpc GetOnuUnis (ONURequest) returns (UNIs) { |
| 312 | } |
| 313 | |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 314 | // Shutdown an ONU by serial number |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 315 | rpc ShutdownONU (ONURequest) returns (Response) { |
| 316 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 317 | // Shutdown all ONUs in OLT |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 318 | rpc ShutdownAllONUs (Empty) returns (Response) { |
| 319 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 320 | // Shutdown all ONUs under a PON by pon-port-ID |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 321 | rpc ShutdownONUsOnPON (PONRequest) returns (Response) { |
| 322 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 323 | |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 324 | // Poweron an ONU by serial number |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 325 | rpc PoweronONU (ONURequest) returns (Response) { |
| 326 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 327 | // Poweron all ONUs in OLT |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 328 | rpc PoweronAllONUs (Empty) returns (Response) { |
| 329 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 330 | // Poweron all ONUs under a PON by pon-port-ID |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 331 | rpc PoweronONUsOnPON (PONRequest) returns (Response) { |
| 332 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 333 | |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 334 | // Restart EAPOL for ONU |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame] | 335 | rpc RestartEapol (UNIRequest) returns (Response) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 336 | } |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 337 | // Restart DHCP for ONU |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame] | 338 | rpc RestartDhcp (UNIRequest) returns (Response) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 339 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 340 | // Send ONU alarm indication |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 341 | rpc SetOnuAlarmIndication (ONUAlarmRequest) returns (Response) { |
| 342 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 343 | // Send OLT alarm indication for Interface type NNI or PON |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 344 | rpc SetOltAlarmIndication (OLTAlarmRequest) returns (Response) { |
| 345 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 346 | // Get all flows or ONU specific flows |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 347 | rpc GetFlows (ONURequest) returns (Flows) { |
| 348 | } |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 349 | // Change IGMP state |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 350 | rpc ChangeIgmpState (IgmpRequest) returns (Response) { |
| 351 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 352 | // Get Traffic scheduler information for ONU |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 353 | rpc GetOnuTrafficSchedulers (ONURequest) returns (ONUTrafficSchedulers) { |
| 354 | } |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 355 | //Return all the UNIs for all the ONUs |
| 356 | rpc GetUnis (Empty) returns (UNIs) { |
| 357 | } |
Elia Battiston | fe01766 | 2022-01-05 11:43:16 +0100 | [diff] [blame] | 358 | |
| 359 | //Invalidate the MDS counter for the ONU |
| 360 | rpc InvalidateMds (ONURequest) returns (Response) { |
| 361 | } |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 362 | } |