| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 1 | // Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors |
| 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 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 | // versions: |
| 17 | // - protoc-gen-go-grpc v1.6.0 |
| 18 | // - protoc v4.25.8 |
| 19 | // source: voltha_protos/openolt.proto |
| 20 | |
| 21 | package openolt |
| 22 | |
| 23 | import ( |
| 24 | context "context" |
| 25 | common "github.com/opencord/voltha-protos/v5/go/common" |
| 26 | config "github.com/opencord/voltha-protos/v5/go/ext/config" |
| 27 | extension "github.com/opencord/voltha-protos/v5/go/extension" |
| 28 | tech_profile "github.com/opencord/voltha-protos/v5/go/tech_profile" |
| 29 | grpc "google.golang.org/grpc" |
| 30 | codes "google.golang.org/grpc/codes" |
| 31 | status "google.golang.org/grpc/status" |
| 32 | ) |
| 33 | |
| 34 | // This is a compile-time assertion to ensure that this generated file |
| 35 | // is compatible with the grpc package it is being compiled against. |
| 36 | // Requires gRPC-Go v1.64.0 or later. |
| 37 | const _ = grpc.SupportPackageIsVersion9 |
| 38 | |
| 39 | const ( |
| 40 | Openolt_DisableOlt_FullMethodName = "/openolt.Openolt/DisableOlt" |
| 41 | Openolt_ReenableOlt_FullMethodName = "/openolt.Openolt/ReenableOlt" |
| 42 | Openolt_ActivateOnu_FullMethodName = "/openolt.Openolt/ActivateOnu" |
| 43 | Openolt_DeactivateOnu_FullMethodName = "/openolt.Openolt/DeactivateOnu" |
| 44 | Openolt_DeleteOnu_FullMethodName = "/openolt.Openolt/DeleteOnu" |
| 45 | Openolt_OmciMsgOut_FullMethodName = "/openolt.Openolt/OmciMsgOut" |
| 46 | Openolt_OnuPacketOut_FullMethodName = "/openolt.Openolt/OnuPacketOut" |
| 47 | Openolt_UplinkPacketOut_FullMethodName = "/openolt.Openolt/UplinkPacketOut" |
| 48 | Openolt_FlowAdd_FullMethodName = "/openolt.Openolt/FlowAdd" |
| 49 | Openolt_FlowRemove_FullMethodName = "/openolt.Openolt/FlowRemove" |
| 50 | Openolt_HeartbeatCheck_FullMethodName = "/openolt.Openolt/HeartbeatCheck" |
| 51 | Openolt_EnablePonIf_FullMethodName = "/openolt.Openolt/EnablePonIf" |
| 52 | Openolt_DisablePonIf_FullMethodName = "/openolt.Openolt/DisablePonIf" |
| 53 | Openolt_GetDeviceInfo_FullMethodName = "/openolt.Openolt/GetDeviceInfo" |
| 54 | Openolt_Reboot_FullMethodName = "/openolt.Openolt/Reboot" |
| 55 | Openolt_CollectStatistics_FullMethodName = "/openolt.Openolt/CollectStatistics" |
| 56 | Openolt_GetOnuStatistics_FullMethodName = "/openolt.Openolt/GetOnuStatistics" |
| 57 | Openolt_GetGemPortStatistics_FullMethodName = "/openolt.Openolt/GetGemPortStatistics" |
| 58 | Openolt_CreateTrafficSchedulers_FullMethodName = "/openolt.Openolt/CreateTrafficSchedulers" |
| 59 | Openolt_RemoveTrafficSchedulers_FullMethodName = "/openolt.Openolt/RemoveTrafficSchedulers" |
| 60 | Openolt_CreateTrafficQueues_FullMethodName = "/openolt.Openolt/CreateTrafficQueues" |
| 61 | Openolt_RemoveTrafficQueues_FullMethodName = "/openolt.Openolt/RemoveTrafficQueues" |
| 62 | Openolt_EnableIndication_FullMethodName = "/openolt.Openolt/EnableIndication" |
| 63 | Openolt_PerformGroupOperation_FullMethodName = "/openolt.Openolt/PerformGroupOperation" |
| 64 | Openolt_DeleteGroup_FullMethodName = "/openolt.Openolt/DeleteGroup" |
| 65 | Openolt_GetExtValue_FullMethodName = "/openolt.Openolt/GetExtValue" |
| 66 | Openolt_OnuItuPonAlarmSet_FullMethodName = "/openolt.Openolt/OnuItuPonAlarmSet" |
| 67 | Openolt_GetLogicalOnuDistanceZero_FullMethodName = "/openolt.Openolt/GetLogicalOnuDistanceZero" |
| 68 | Openolt_GetLogicalOnuDistance_FullMethodName = "/openolt.Openolt/GetLogicalOnuDistance" |
| 69 | Openolt_GetPonRxPower_FullMethodName = "/openolt.Openolt/GetPonRxPower" |
| 70 | Openolt_GetOnuInfo_FullMethodName = "/openolt.Openolt/GetOnuInfo" |
| 71 | Openolt_GetPonInterfaceInfo_FullMethodName = "/openolt.Openolt/GetPonInterfaceInfo" |
| 72 | Openolt_GetAllocIdStatistics_FullMethodName = "/openolt.Openolt/GetAllocIdStatistics" |
| 73 | Openolt_GetPonPortStatistics_FullMethodName = "/openolt.Openolt/GetPonPortStatistics" |
| 74 | Openolt_GetNniPortStatistics_FullMethodName = "/openolt.Openolt/GetNniPortStatistics" |
| 75 | Openolt_DisableOnu_FullMethodName = "/openolt.Openolt/DisableOnu" |
| 76 | Openolt_EnableOnu_FullMethodName = "/openolt.Openolt/EnableOnu" |
| 77 | Openolt_DisableOnuSerialNumber_FullMethodName = "/openolt.Openolt/DisableOnuSerialNumber" |
| 78 | Openolt_EnableOnuSerialNumber_FullMethodName = "/openolt.Openolt/EnableOnuSerialNumber" |
| 79 | ) |
| 80 | |
| 81 | // OpenoltClient is the client API for Openolt service. |
| 82 | // |
| 83 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 84 | type OpenoltClient interface { |
| 85 | DisableOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) |
| 86 | ReenableOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) |
| 87 | ActivateOnu(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*Empty, error) |
| 88 | DeactivateOnu(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*Empty, error) |
| 89 | DeleteOnu(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*Empty, error) |
| 90 | OmciMsgOut(ctx context.Context, in *OmciMsg, opts ...grpc.CallOption) (*Empty, error) |
| 91 | OnuPacketOut(ctx context.Context, in *OnuPacket, opts ...grpc.CallOption) (*Empty, error) |
| 92 | UplinkPacketOut(ctx context.Context, in *UplinkPacket, opts ...grpc.CallOption) (*Empty, error) |
| 93 | FlowAdd(ctx context.Context, in *Flow, opts ...grpc.CallOption) (*Empty, error) |
| 94 | FlowRemove(ctx context.Context, in *Flow, opts ...grpc.CallOption) (*Empty, error) |
| 95 | HeartbeatCheck(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Heartbeat, error) |
| 96 | EnablePonIf(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*Empty, error) |
| 97 | DisablePonIf(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*Empty, error) |
| 98 | GetDeviceInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DeviceInfo, error) |
| 99 | Reboot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) |
| 100 | CollectStatistics(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) |
| 101 | GetOnuStatistics(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuStatistics, error) |
| 102 | GetGemPortStatistics(ctx context.Context, in *OnuPacket, opts ...grpc.CallOption) (*GemPortStatistics, error) |
| 103 | CreateTrafficSchedulers(ctx context.Context, in *tech_profile.TrafficSchedulers, opts ...grpc.CallOption) (*Empty, error) |
| 104 | RemoveTrafficSchedulers(ctx context.Context, in *tech_profile.TrafficSchedulers, opts ...grpc.CallOption) (*Empty, error) |
| 105 | CreateTrafficQueues(ctx context.Context, in *tech_profile.TrafficQueues, opts ...grpc.CallOption) (*Empty, error) |
| 106 | RemoveTrafficQueues(ctx context.Context, in *tech_profile.TrafficQueues, opts ...grpc.CallOption) (*Empty, error) |
| 107 | EnableIndication(ctx context.Context, in *Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Indication], error) |
| 108 | PerformGroupOperation(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Empty, error) |
| 109 | DeleteGroup(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Empty, error) |
| 110 | GetExtValue(ctx context.Context, in *ValueParam, opts ...grpc.CallOption) (*extension.ReturnValues, error) |
| 111 | OnuItuPonAlarmSet(ctx context.Context, in *config.OnuItuPonAlarm, opts ...grpc.CallOption) (*Empty, error) |
| 112 | GetLogicalOnuDistanceZero(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuLogicalDistance, error) |
| 113 | GetLogicalOnuDistance(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuLogicalDistance, error) |
| 114 | GetPonRxPower(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*PonRxPowerData, error) |
| 115 | // GetOnuInfo takes Onu id, serialnumber, and pon interface as argument from the onu structure. |
| 116 | // Returns the Onu info from the device. |
| 117 | GetOnuInfo(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuInfo, error) |
| 118 | // GetPonInterfaceInfo takes the pon intf id as argument. |
| 119 | // Returns the pon interface information from the device. |
| 120 | GetPonInterfaceInfo(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*PonIntfInfo, error) |
| 121 | // GetAllocIdStatistics takes onuId and allocId as argument. |
| 122 | // This method includes a default wait period of 10 secs before collecting the stats. |
| 123 | // The caller has to be aware of this wait and handle it accordingly. |
| 124 | // Returns AllocId statistics in the form of OnuAllocStatistics structure |
| 125 | GetAllocIdStatistics(ctx context.Context, in *OnuPacket, opts ...grpc.CallOption) (*OnuAllocIdStatistics, error) |
| 126 | // GetPonPortStatistics takes interface id and type as argument from Interface structure. |
| 127 | // Returns Pon port statistics in the form of PonStatsData structure. |
| 128 | GetPonPortStatistics(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*common.PortStatistics, error) |
| 129 | // GetNniPortStatistics takes takes interface id and type as argument from Interface structure. |
| 130 | // Returns Nni port statistics in the form of NniStatsData structure |
| 131 | GetNniPortStatistics(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*common.PortStatistics, error) |
| 132 | // Disable ONU serailnumber, disable device at PLOAM. |
| 133 | // Takes input as intfid, onuid, sn of the ONU. |
| 134 | // Returns success if the call towards the device is success, error otherwise. |
| 135 | DisableOnu(ctx context.Context, in *InterfaceOnuSerialNumberOnuId, opts ...grpc.CallOption) (*Empty, error) |
| 136 | // Enables ONU serailnumber, enable device at PLOAM. |
| 137 | // Takes input as intfid, onuid, sn of the ONU. |
| 138 | // Returns success if the call towards the device is success, error otherwise. |
| 139 | EnableOnu(ctx context.Context, in *InterfaceOnuSerialNumberOnuId, opts ...grpc.CallOption) (*Empty, error) |
| 140 | // Disable ONU serailnumber, disable device at PLOAM |
| 141 | // Takes input as intfid and sn of the ONU. Generally used when the onu is not present in the OLT. |
| 142 | // Returns success if the call towards the device is success, error otherwise. |
| 143 | DisableOnuSerialNumber(ctx context.Context, in *InterfaceOnuSerialNumber, opts ...grpc.CallOption) (*Empty, error) |
| 144 | // Enables ONU serailnumber, enable device at PLOAM |
| 145 | // Takes input as intfid and sn of the ONU. Generally used when the onu is not present in the OLT. |
| 146 | // Returns success if the call towards the device is success, error otherwise. |
| 147 | EnableOnuSerialNumber(ctx context.Context, in *InterfaceOnuSerialNumber, opts ...grpc.CallOption) (*Empty, error) |
| 148 | } |
| 149 | |
| 150 | type openoltClient struct { |
| 151 | cc grpc.ClientConnInterface |
| 152 | } |
| 153 | |
| 154 | func NewOpenoltClient(cc grpc.ClientConnInterface) OpenoltClient { |
| 155 | return &openoltClient{cc} |
| 156 | } |
| 157 | |
| 158 | func (c *openoltClient) DisableOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { |
| 159 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 160 | out := new(Empty) |
| 161 | err := c.cc.Invoke(ctx, Openolt_DisableOlt_FullMethodName, in, out, cOpts...) |
| 162 | if err != nil { |
| 163 | return nil, err |
| 164 | } |
| 165 | return out, nil |
| 166 | } |
| 167 | |
| 168 | func (c *openoltClient) ReenableOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { |
| 169 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 170 | out := new(Empty) |
| 171 | err := c.cc.Invoke(ctx, Openolt_ReenableOlt_FullMethodName, in, out, cOpts...) |
| 172 | if err != nil { |
| 173 | return nil, err |
| 174 | } |
| 175 | return out, nil |
| 176 | } |
| 177 | |
| 178 | func (c *openoltClient) ActivateOnu(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*Empty, error) { |
| 179 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 180 | out := new(Empty) |
| 181 | err := c.cc.Invoke(ctx, Openolt_ActivateOnu_FullMethodName, in, out, cOpts...) |
| 182 | if err != nil { |
| 183 | return nil, err |
| 184 | } |
| 185 | return out, nil |
| 186 | } |
| 187 | |
| 188 | func (c *openoltClient) DeactivateOnu(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*Empty, error) { |
| 189 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 190 | out := new(Empty) |
| 191 | err := c.cc.Invoke(ctx, Openolt_DeactivateOnu_FullMethodName, in, out, cOpts...) |
| 192 | if err != nil { |
| 193 | return nil, err |
| 194 | } |
| 195 | return out, nil |
| 196 | } |
| 197 | |
| 198 | func (c *openoltClient) DeleteOnu(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*Empty, error) { |
| 199 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 200 | out := new(Empty) |
| 201 | err := c.cc.Invoke(ctx, Openolt_DeleteOnu_FullMethodName, in, out, cOpts...) |
| 202 | if err != nil { |
| 203 | return nil, err |
| 204 | } |
| 205 | return out, nil |
| 206 | } |
| 207 | |
| 208 | func (c *openoltClient) OmciMsgOut(ctx context.Context, in *OmciMsg, opts ...grpc.CallOption) (*Empty, error) { |
| 209 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 210 | out := new(Empty) |
| 211 | err := c.cc.Invoke(ctx, Openolt_OmciMsgOut_FullMethodName, in, out, cOpts...) |
| 212 | if err != nil { |
| 213 | return nil, err |
| 214 | } |
| 215 | return out, nil |
| 216 | } |
| 217 | |
| 218 | func (c *openoltClient) OnuPacketOut(ctx context.Context, in *OnuPacket, opts ...grpc.CallOption) (*Empty, error) { |
| 219 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 220 | out := new(Empty) |
| 221 | err := c.cc.Invoke(ctx, Openolt_OnuPacketOut_FullMethodName, in, out, cOpts...) |
| 222 | if err != nil { |
| 223 | return nil, err |
| 224 | } |
| 225 | return out, nil |
| 226 | } |
| 227 | |
| 228 | func (c *openoltClient) UplinkPacketOut(ctx context.Context, in *UplinkPacket, opts ...grpc.CallOption) (*Empty, error) { |
| 229 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 230 | out := new(Empty) |
| 231 | err := c.cc.Invoke(ctx, Openolt_UplinkPacketOut_FullMethodName, in, out, cOpts...) |
| 232 | if err != nil { |
| 233 | return nil, err |
| 234 | } |
| 235 | return out, nil |
| 236 | } |
| 237 | |
| 238 | func (c *openoltClient) FlowAdd(ctx context.Context, in *Flow, opts ...grpc.CallOption) (*Empty, error) { |
| 239 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 240 | out := new(Empty) |
| 241 | err := c.cc.Invoke(ctx, Openolt_FlowAdd_FullMethodName, in, out, cOpts...) |
| 242 | if err != nil { |
| 243 | return nil, err |
| 244 | } |
| 245 | return out, nil |
| 246 | } |
| 247 | |
| 248 | func (c *openoltClient) FlowRemove(ctx context.Context, in *Flow, opts ...grpc.CallOption) (*Empty, error) { |
| 249 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 250 | out := new(Empty) |
| 251 | err := c.cc.Invoke(ctx, Openolt_FlowRemove_FullMethodName, in, out, cOpts...) |
| 252 | if err != nil { |
| 253 | return nil, err |
| 254 | } |
| 255 | return out, nil |
| 256 | } |
| 257 | |
| 258 | func (c *openoltClient) HeartbeatCheck(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Heartbeat, error) { |
| 259 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 260 | out := new(Heartbeat) |
| 261 | err := c.cc.Invoke(ctx, Openolt_HeartbeatCheck_FullMethodName, in, out, cOpts...) |
| 262 | if err != nil { |
| 263 | return nil, err |
| 264 | } |
| 265 | return out, nil |
| 266 | } |
| 267 | |
| 268 | func (c *openoltClient) EnablePonIf(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*Empty, error) { |
| 269 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 270 | out := new(Empty) |
| 271 | err := c.cc.Invoke(ctx, Openolt_EnablePonIf_FullMethodName, in, out, cOpts...) |
| 272 | if err != nil { |
| 273 | return nil, err |
| 274 | } |
| 275 | return out, nil |
| 276 | } |
| 277 | |
| 278 | func (c *openoltClient) DisablePonIf(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*Empty, error) { |
| 279 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 280 | out := new(Empty) |
| 281 | err := c.cc.Invoke(ctx, Openolt_DisablePonIf_FullMethodName, in, out, cOpts...) |
| 282 | if err != nil { |
| 283 | return nil, err |
| 284 | } |
| 285 | return out, nil |
| 286 | } |
| 287 | |
| 288 | func (c *openoltClient) GetDeviceInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DeviceInfo, error) { |
| 289 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 290 | out := new(DeviceInfo) |
| 291 | err := c.cc.Invoke(ctx, Openolt_GetDeviceInfo_FullMethodName, in, out, cOpts...) |
| 292 | if err != nil { |
| 293 | return nil, err |
| 294 | } |
| 295 | return out, nil |
| 296 | } |
| 297 | |
| 298 | func (c *openoltClient) Reboot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { |
| 299 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 300 | out := new(Empty) |
| 301 | err := c.cc.Invoke(ctx, Openolt_Reboot_FullMethodName, in, out, cOpts...) |
| 302 | if err != nil { |
| 303 | return nil, err |
| 304 | } |
| 305 | return out, nil |
| 306 | } |
| 307 | |
| 308 | func (c *openoltClient) CollectStatistics(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { |
| 309 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 310 | out := new(Empty) |
| 311 | err := c.cc.Invoke(ctx, Openolt_CollectStatistics_FullMethodName, in, out, cOpts...) |
| 312 | if err != nil { |
| 313 | return nil, err |
| 314 | } |
| 315 | return out, nil |
| 316 | } |
| 317 | |
| 318 | func (c *openoltClient) GetOnuStatistics(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuStatistics, error) { |
| 319 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 320 | out := new(OnuStatistics) |
| 321 | err := c.cc.Invoke(ctx, Openolt_GetOnuStatistics_FullMethodName, in, out, cOpts...) |
| 322 | if err != nil { |
| 323 | return nil, err |
| 324 | } |
| 325 | return out, nil |
| 326 | } |
| 327 | |
| 328 | func (c *openoltClient) GetGemPortStatistics(ctx context.Context, in *OnuPacket, opts ...grpc.CallOption) (*GemPortStatistics, error) { |
| 329 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 330 | out := new(GemPortStatistics) |
| 331 | err := c.cc.Invoke(ctx, Openolt_GetGemPortStatistics_FullMethodName, in, out, cOpts...) |
| 332 | if err != nil { |
| 333 | return nil, err |
| 334 | } |
| 335 | return out, nil |
| 336 | } |
| 337 | |
| 338 | func (c *openoltClient) CreateTrafficSchedulers(ctx context.Context, in *tech_profile.TrafficSchedulers, opts ...grpc.CallOption) (*Empty, error) { |
| 339 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 340 | out := new(Empty) |
| 341 | err := c.cc.Invoke(ctx, Openolt_CreateTrafficSchedulers_FullMethodName, in, out, cOpts...) |
| 342 | if err != nil { |
| 343 | return nil, err |
| 344 | } |
| 345 | return out, nil |
| 346 | } |
| 347 | |
| 348 | func (c *openoltClient) RemoveTrafficSchedulers(ctx context.Context, in *tech_profile.TrafficSchedulers, opts ...grpc.CallOption) (*Empty, error) { |
| 349 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 350 | out := new(Empty) |
| 351 | err := c.cc.Invoke(ctx, Openolt_RemoveTrafficSchedulers_FullMethodName, in, out, cOpts...) |
| 352 | if err != nil { |
| 353 | return nil, err |
| 354 | } |
| 355 | return out, nil |
| 356 | } |
| 357 | |
| 358 | func (c *openoltClient) CreateTrafficQueues(ctx context.Context, in *tech_profile.TrafficQueues, opts ...grpc.CallOption) (*Empty, error) { |
| 359 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 360 | out := new(Empty) |
| 361 | err := c.cc.Invoke(ctx, Openolt_CreateTrafficQueues_FullMethodName, in, out, cOpts...) |
| 362 | if err != nil { |
| 363 | return nil, err |
| 364 | } |
| 365 | return out, nil |
| 366 | } |
| 367 | |
| 368 | func (c *openoltClient) RemoveTrafficQueues(ctx context.Context, in *tech_profile.TrafficQueues, opts ...grpc.CallOption) (*Empty, error) { |
| 369 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 370 | out := new(Empty) |
| 371 | err := c.cc.Invoke(ctx, Openolt_RemoveTrafficQueues_FullMethodName, in, out, cOpts...) |
| 372 | if err != nil { |
| 373 | return nil, err |
| 374 | } |
| 375 | return out, nil |
| 376 | } |
| 377 | |
| 378 | func (c *openoltClient) EnableIndication(ctx context.Context, in *Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Indication], error) { |
| 379 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 380 | stream, err := c.cc.NewStream(ctx, &Openolt_ServiceDesc.Streams[0], Openolt_EnableIndication_FullMethodName, cOpts...) |
| 381 | if err != nil { |
| 382 | return nil, err |
| 383 | } |
| 384 | x := &grpc.GenericClientStream[Empty, Indication]{ClientStream: stream} |
| 385 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 386 | return nil, err |
| 387 | } |
| 388 | if err := x.ClientStream.CloseSend(); err != nil { |
| 389 | return nil, err |
| 390 | } |
| 391 | return x, nil |
| 392 | } |
| 393 | |
| 394 | // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. |
| 395 | type Openolt_EnableIndicationClient = grpc.ServerStreamingClient[Indication] |
| 396 | |
| 397 | func (c *openoltClient) PerformGroupOperation(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Empty, error) { |
| 398 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 399 | out := new(Empty) |
| 400 | err := c.cc.Invoke(ctx, Openolt_PerformGroupOperation_FullMethodName, in, out, cOpts...) |
| 401 | if err != nil { |
| 402 | return nil, err |
| 403 | } |
| 404 | return out, nil |
| 405 | } |
| 406 | |
| 407 | func (c *openoltClient) DeleteGroup(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Empty, error) { |
| 408 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 409 | out := new(Empty) |
| 410 | err := c.cc.Invoke(ctx, Openolt_DeleteGroup_FullMethodName, in, out, cOpts...) |
| 411 | if err != nil { |
| 412 | return nil, err |
| 413 | } |
| 414 | return out, nil |
| 415 | } |
| 416 | |
| 417 | func (c *openoltClient) GetExtValue(ctx context.Context, in *ValueParam, opts ...grpc.CallOption) (*extension.ReturnValues, error) { |
| 418 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 419 | out := new(extension.ReturnValues) |
| 420 | err := c.cc.Invoke(ctx, Openolt_GetExtValue_FullMethodName, in, out, cOpts...) |
| 421 | if err != nil { |
| 422 | return nil, err |
| 423 | } |
| 424 | return out, nil |
| 425 | } |
| 426 | |
| 427 | func (c *openoltClient) OnuItuPonAlarmSet(ctx context.Context, in *config.OnuItuPonAlarm, opts ...grpc.CallOption) (*Empty, error) { |
| 428 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 429 | out := new(Empty) |
| 430 | err := c.cc.Invoke(ctx, Openolt_OnuItuPonAlarmSet_FullMethodName, in, out, cOpts...) |
| 431 | if err != nil { |
| 432 | return nil, err |
| 433 | } |
| 434 | return out, nil |
| 435 | } |
| 436 | |
| 437 | func (c *openoltClient) GetLogicalOnuDistanceZero(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuLogicalDistance, error) { |
| 438 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 439 | out := new(OnuLogicalDistance) |
| 440 | err := c.cc.Invoke(ctx, Openolt_GetLogicalOnuDistanceZero_FullMethodName, in, out, cOpts...) |
| 441 | if err != nil { |
| 442 | return nil, err |
| 443 | } |
| 444 | return out, nil |
| 445 | } |
| 446 | |
| 447 | func (c *openoltClient) GetLogicalOnuDistance(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuLogicalDistance, error) { |
| 448 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 449 | out := new(OnuLogicalDistance) |
| 450 | err := c.cc.Invoke(ctx, Openolt_GetLogicalOnuDistance_FullMethodName, in, out, cOpts...) |
| 451 | if err != nil { |
| 452 | return nil, err |
| 453 | } |
| 454 | return out, nil |
| 455 | } |
| 456 | |
| 457 | func (c *openoltClient) GetPonRxPower(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*PonRxPowerData, error) { |
| 458 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 459 | out := new(PonRxPowerData) |
| 460 | err := c.cc.Invoke(ctx, Openolt_GetPonRxPower_FullMethodName, in, out, cOpts...) |
| 461 | if err != nil { |
| 462 | return nil, err |
| 463 | } |
| 464 | return out, nil |
| 465 | } |
| 466 | |
| 467 | func (c *openoltClient) GetOnuInfo(ctx context.Context, in *Onu, opts ...grpc.CallOption) (*OnuInfo, error) { |
| 468 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 469 | out := new(OnuInfo) |
| 470 | err := c.cc.Invoke(ctx, Openolt_GetOnuInfo_FullMethodName, in, out, cOpts...) |
| 471 | if err != nil { |
| 472 | return nil, err |
| 473 | } |
| 474 | return out, nil |
| 475 | } |
| 476 | |
| 477 | func (c *openoltClient) GetPonInterfaceInfo(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*PonIntfInfo, error) { |
| 478 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 479 | out := new(PonIntfInfo) |
| 480 | err := c.cc.Invoke(ctx, Openolt_GetPonInterfaceInfo_FullMethodName, in, out, cOpts...) |
| 481 | if err != nil { |
| 482 | return nil, err |
| 483 | } |
| 484 | return out, nil |
| 485 | } |
| 486 | |
| 487 | func (c *openoltClient) GetAllocIdStatistics(ctx context.Context, in *OnuPacket, opts ...grpc.CallOption) (*OnuAllocIdStatistics, error) { |
| 488 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 489 | out := new(OnuAllocIdStatistics) |
| 490 | err := c.cc.Invoke(ctx, Openolt_GetAllocIdStatistics_FullMethodName, in, out, cOpts...) |
| 491 | if err != nil { |
| 492 | return nil, err |
| 493 | } |
| 494 | return out, nil |
| 495 | } |
| 496 | |
| 497 | func (c *openoltClient) GetPonPortStatistics(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*common.PortStatistics, error) { |
| 498 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 499 | out := new(common.PortStatistics) |
| 500 | err := c.cc.Invoke(ctx, Openolt_GetPonPortStatistics_FullMethodName, in, out, cOpts...) |
| 501 | if err != nil { |
| 502 | return nil, err |
| 503 | } |
| 504 | return out, nil |
| 505 | } |
| 506 | |
| 507 | func (c *openoltClient) GetNniPortStatistics(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*common.PortStatistics, error) { |
| 508 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 509 | out := new(common.PortStatistics) |
| 510 | err := c.cc.Invoke(ctx, Openolt_GetNniPortStatistics_FullMethodName, in, out, cOpts...) |
| 511 | if err != nil { |
| 512 | return nil, err |
| 513 | } |
| 514 | return out, nil |
| 515 | } |
| 516 | |
| 517 | func (c *openoltClient) DisableOnu(ctx context.Context, in *InterfaceOnuSerialNumberOnuId, opts ...grpc.CallOption) (*Empty, error) { |
| 518 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 519 | out := new(Empty) |
| 520 | err := c.cc.Invoke(ctx, Openolt_DisableOnu_FullMethodName, in, out, cOpts...) |
| 521 | if err != nil { |
| 522 | return nil, err |
| 523 | } |
| 524 | return out, nil |
| 525 | } |
| 526 | |
| 527 | func (c *openoltClient) EnableOnu(ctx context.Context, in *InterfaceOnuSerialNumberOnuId, opts ...grpc.CallOption) (*Empty, error) { |
| 528 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 529 | out := new(Empty) |
| 530 | err := c.cc.Invoke(ctx, Openolt_EnableOnu_FullMethodName, in, out, cOpts...) |
| 531 | if err != nil { |
| 532 | return nil, err |
| 533 | } |
| 534 | return out, nil |
| 535 | } |
| 536 | |
| 537 | func (c *openoltClient) DisableOnuSerialNumber(ctx context.Context, in *InterfaceOnuSerialNumber, opts ...grpc.CallOption) (*Empty, error) { |
| 538 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 539 | out := new(Empty) |
| 540 | err := c.cc.Invoke(ctx, Openolt_DisableOnuSerialNumber_FullMethodName, in, out, cOpts...) |
| 541 | if err != nil { |
| 542 | return nil, err |
| 543 | } |
| 544 | return out, nil |
| 545 | } |
| 546 | |
| 547 | func (c *openoltClient) EnableOnuSerialNumber(ctx context.Context, in *InterfaceOnuSerialNumber, opts ...grpc.CallOption) (*Empty, error) { |
| 548 | cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |
| 549 | out := new(Empty) |
| 550 | err := c.cc.Invoke(ctx, Openolt_EnableOnuSerialNumber_FullMethodName, in, out, cOpts...) |
| 551 | if err != nil { |
| 552 | return nil, err |
| 553 | } |
| 554 | return out, nil |
| 555 | } |
| 556 | |
| 557 | // OpenoltServer is the server API for Openolt service. |
| 558 | // All implementations must embed UnimplementedOpenoltServer |
| 559 | // for forward compatibility. |
| 560 | type OpenoltServer interface { |
| 561 | DisableOlt(context.Context, *Empty) (*Empty, error) |
| 562 | ReenableOlt(context.Context, *Empty) (*Empty, error) |
| 563 | ActivateOnu(context.Context, *Onu) (*Empty, error) |
| 564 | DeactivateOnu(context.Context, *Onu) (*Empty, error) |
| 565 | DeleteOnu(context.Context, *Onu) (*Empty, error) |
| 566 | OmciMsgOut(context.Context, *OmciMsg) (*Empty, error) |
| 567 | OnuPacketOut(context.Context, *OnuPacket) (*Empty, error) |
| 568 | UplinkPacketOut(context.Context, *UplinkPacket) (*Empty, error) |
| 569 | FlowAdd(context.Context, *Flow) (*Empty, error) |
| 570 | FlowRemove(context.Context, *Flow) (*Empty, error) |
| 571 | HeartbeatCheck(context.Context, *Empty) (*Heartbeat, error) |
| 572 | EnablePonIf(context.Context, *Interface) (*Empty, error) |
| 573 | DisablePonIf(context.Context, *Interface) (*Empty, error) |
| 574 | GetDeviceInfo(context.Context, *Empty) (*DeviceInfo, error) |
| 575 | Reboot(context.Context, *Empty) (*Empty, error) |
| 576 | CollectStatistics(context.Context, *Empty) (*Empty, error) |
| 577 | GetOnuStatistics(context.Context, *Onu) (*OnuStatistics, error) |
| 578 | GetGemPortStatistics(context.Context, *OnuPacket) (*GemPortStatistics, error) |
| 579 | CreateTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*Empty, error) |
| 580 | RemoveTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*Empty, error) |
| 581 | CreateTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*Empty, error) |
| 582 | RemoveTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*Empty, error) |
| 583 | EnableIndication(*Empty, grpc.ServerStreamingServer[Indication]) error |
| 584 | PerformGroupOperation(context.Context, *Group) (*Empty, error) |
| 585 | DeleteGroup(context.Context, *Group) (*Empty, error) |
| 586 | GetExtValue(context.Context, *ValueParam) (*extension.ReturnValues, error) |
| 587 | OnuItuPonAlarmSet(context.Context, *config.OnuItuPonAlarm) (*Empty, error) |
| 588 | GetLogicalOnuDistanceZero(context.Context, *Onu) (*OnuLogicalDistance, error) |
| 589 | GetLogicalOnuDistance(context.Context, *Onu) (*OnuLogicalDistance, error) |
| 590 | GetPonRxPower(context.Context, *Onu) (*PonRxPowerData, error) |
| 591 | // GetOnuInfo takes Onu id, serialnumber, and pon interface as argument from the onu structure. |
| 592 | // Returns the Onu info from the device. |
| 593 | GetOnuInfo(context.Context, *Onu) (*OnuInfo, error) |
| 594 | // GetPonInterfaceInfo takes the pon intf id as argument. |
| 595 | // Returns the pon interface information from the device. |
| 596 | GetPonInterfaceInfo(context.Context, *Interface) (*PonIntfInfo, error) |
| 597 | // GetAllocIdStatistics takes onuId and allocId as argument. |
| 598 | // This method includes a default wait period of 10 secs before collecting the stats. |
| 599 | // The caller has to be aware of this wait and handle it accordingly. |
| 600 | // Returns AllocId statistics in the form of OnuAllocStatistics structure |
| 601 | GetAllocIdStatistics(context.Context, *OnuPacket) (*OnuAllocIdStatistics, error) |
| 602 | // GetPonPortStatistics takes interface id and type as argument from Interface structure. |
| 603 | // Returns Pon port statistics in the form of PonStatsData structure. |
| 604 | GetPonPortStatistics(context.Context, *Interface) (*common.PortStatistics, error) |
| 605 | // GetNniPortStatistics takes takes interface id and type as argument from Interface structure. |
| 606 | // Returns Nni port statistics in the form of NniStatsData structure |
| 607 | GetNniPortStatistics(context.Context, *Interface) (*common.PortStatistics, error) |
| 608 | // Disable ONU serailnumber, disable device at PLOAM. |
| 609 | // Takes input as intfid, onuid, sn of the ONU. |
| 610 | // Returns success if the call towards the device is success, error otherwise. |
| 611 | DisableOnu(context.Context, *InterfaceOnuSerialNumberOnuId) (*Empty, error) |
| 612 | // Enables ONU serailnumber, enable device at PLOAM. |
| 613 | // Takes input as intfid, onuid, sn of the ONU. |
| 614 | // Returns success if the call towards the device is success, error otherwise. |
| 615 | EnableOnu(context.Context, *InterfaceOnuSerialNumberOnuId) (*Empty, error) |
| 616 | // Disable ONU serailnumber, disable device at PLOAM |
| 617 | // Takes input as intfid and sn of the ONU. Generally used when the onu is not present in the OLT. |
| 618 | // Returns success if the call towards the device is success, error otherwise. |
| 619 | DisableOnuSerialNumber(context.Context, *InterfaceOnuSerialNumber) (*Empty, error) |
| 620 | // Enables ONU serailnumber, enable device at PLOAM |
| 621 | // Takes input as intfid and sn of the ONU. Generally used when the onu is not present in the OLT. |
| 622 | // Returns success if the call towards the device is success, error otherwise. |
| 623 | EnableOnuSerialNumber(context.Context, *InterfaceOnuSerialNumber) (*Empty, error) |
| 624 | mustEmbedUnimplementedOpenoltServer() |
| 625 | } |
| 626 | |
| 627 | // UnimplementedOpenoltServer must be embedded to have |
| 628 | // forward compatible implementations. |
| 629 | // |
| 630 | // NOTE: this should be embedded by value instead of pointer to avoid a nil |
| 631 | // pointer dereference when methods are called. |
| 632 | type UnimplementedOpenoltServer struct{} |
| 633 | |
| 634 | func (UnimplementedOpenoltServer) DisableOlt(context.Context, *Empty) (*Empty, error) { |
| 635 | return nil, status.Error(codes.Unimplemented, "method DisableOlt not implemented") |
| 636 | } |
| 637 | func (UnimplementedOpenoltServer) ReenableOlt(context.Context, *Empty) (*Empty, error) { |
| 638 | return nil, status.Error(codes.Unimplemented, "method ReenableOlt not implemented") |
| 639 | } |
| 640 | func (UnimplementedOpenoltServer) ActivateOnu(context.Context, *Onu) (*Empty, error) { |
| 641 | return nil, status.Error(codes.Unimplemented, "method ActivateOnu not implemented") |
| 642 | } |
| 643 | func (UnimplementedOpenoltServer) DeactivateOnu(context.Context, *Onu) (*Empty, error) { |
| 644 | return nil, status.Error(codes.Unimplemented, "method DeactivateOnu not implemented") |
| 645 | } |
| 646 | func (UnimplementedOpenoltServer) DeleteOnu(context.Context, *Onu) (*Empty, error) { |
| 647 | return nil, status.Error(codes.Unimplemented, "method DeleteOnu not implemented") |
| 648 | } |
| 649 | func (UnimplementedOpenoltServer) OmciMsgOut(context.Context, *OmciMsg) (*Empty, error) { |
| 650 | return nil, status.Error(codes.Unimplemented, "method OmciMsgOut not implemented") |
| 651 | } |
| 652 | func (UnimplementedOpenoltServer) OnuPacketOut(context.Context, *OnuPacket) (*Empty, error) { |
| 653 | return nil, status.Error(codes.Unimplemented, "method OnuPacketOut not implemented") |
| 654 | } |
| 655 | func (UnimplementedOpenoltServer) UplinkPacketOut(context.Context, *UplinkPacket) (*Empty, error) { |
| 656 | return nil, status.Error(codes.Unimplemented, "method UplinkPacketOut not implemented") |
| 657 | } |
| 658 | func (UnimplementedOpenoltServer) FlowAdd(context.Context, *Flow) (*Empty, error) { |
| 659 | return nil, status.Error(codes.Unimplemented, "method FlowAdd not implemented") |
| 660 | } |
| 661 | func (UnimplementedOpenoltServer) FlowRemove(context.Context, *Flow) (*Empty, error) { |
| 662 | return nil, status.Error(codes.Unimplemented, "method FlowRemove not implemented") |
| 663 | } |
| 664 | func (UnimplementedOpenoltServer) HeartbeatCheck(context.Context, *Empty) (*Heartbeat, error) { |
| 665 | return nil, status.Error(codes.Unimplemented, "method HeartbeatCheck not implemented") |
| 666 | } |
| 667 | func (UnimplementedOpenoltServer) EnablePonIf(context.Context, *Interface) (*Empty, error) { |
| 668 | return nil, status.Error(codes.Unimplemented, "method EnablePonIf not implemented") |
| 669 | } |
| 670 | func (UnimplementedOpenoltServer) DisablePonIf(context.Context, *Interface) (*Empty, error) { |
| 671 | return nil, status.Error(codes.Unimplemented, "method DisablePonIf not implemented") |
| 672 | } |
| 673 | func (UnimplementedOpenoltServer) GetDeviceInfo(context.Context, *Empty) (*DeviceInfo, error) { |
| 674 | return nil, status.Error(codes.Unimplemented, "method GetDeviceInfo not implemented") |
| 675 | } |
| 676 | func (UnimplementedOpenoltServer) Reboot(context.Context, *Empty) (*Empty, error) { |
| 677 | return nil, status.Error(codes.Unimplemented, "method Reboot not implemented") |
| 678 | } |
| 679 | func (UnimplementedOpenoltServer) CollectStatistics(context.Context, *Empty) (*Empty, error) { |
| 680 | return nil, status.Error(codes.Unimplemented, "method CollectStatistics not implemented") |
| 681 | } |
| 682 | func (UnimplementedOpenoltServer) GetOnuStatistics(context.Context, *Onu) (*OnuStatistics, error) { |
| 683 | return nil, status.Error(codes.Unimplemented, "method GetOnuStatistics not implemented") |
| 684 | } |
| 685 | func (UnimplementedOpenoltServer) GetGemPortStatistics(context.Context, *OnuPacket) (*GemPortStatistics, error) { |
| 686 | return nil, status.Error(codes.Unimplemented, "method GetGemPortStatistics not implemented") |
| 687 | } |
| 688 | func (UnimplementedOpenoltServer) CreateTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*Empty, error) { |
| 689 | return nil, status.Error(codes.Unimplemented, "method CreateTrafficSchedulers not implemented") |
| 690 | } |
| 691 | func (UnimplementedOpenoltServer) RemoveTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*Empty, error) { |
| 692 | return nil, status.Error(codes.Unimplemented, "method RemoveTrafficSchedulers not implemented") |
| 693 | } |
| 694 | func (UnimplementedOpenoltServer) CreateTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*Empty, error) { |
| 695 | return nil, status.Error(codes.Unimplemented, "method CreateTrafficQueues not implemented") |
| 696 | } |
| 697 | func (UnimplementedOpenoltServer) RemoveTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*Empty, error) { |
| 698 | return nil, status.Error(codes.Unimplemented, "method RemoveTrafficQueues not implemented") |
| 699 | } |
| 700 | func (UnimplementedOpenoltServer) EnableIndication(*Empty, grpc.ServerStreamingServer[Indication]) error { |
| 701 | return status.Error(codes.Unimplemented, "method EnableIndication not implemented") |
| 702 | } |
| 703 | func (UnimplementedOpenoltServer) PerformGroupOperation(context.Context, *Group) (*Empty, error) { |
| 704 | return nil, status.Error(codes.Unimplemented, "method PerformGroupOperation not implemented") |
| 705 | } |
| 706 | func (UnimplementedOpenoltServer) DeleteGroup(context.Context, *Group) (*Empty, error) { |
| 707 | return nil, status.Error(codes.Unimplemented, "method DeleteGroup not implemented") |
| 708 | } |
| 709 | func (UnimplementedOpenoltServer) GetExtValue(context.Context, *ValueParam) (*extension.ReturnValues, error) { |
| 710 | return nil, status.Error(codes.Unimplemented, "method GetExtValue not implemented") |
| 711 | } |
| 712 | func (UnimplementedOpenoltServer) OnuItuPonAlarmSet(context.Context, *config.OnuItuPonAlarm) (*Empty, error) { |
| 713 | return nil, status.Error(codes.Unimplemented, "method OnuItuPonAlarmSet not implemented") |
| 714 | } |
| 715 | func (UnimplementedOpenoltServer) GetLogicalOnuDistanceZero(context.Context, *Onu) (*OnuLogicalDistance, error) { |
| 716 | return nil, status.Error(codes.Unimplemented, "method GetLogicalOnuDistanceZero not implemented") |
| 717 | } |
| 718 | func (UnimplementedOpenoltServer) GetLogicalOnuDistance(context.Context, *Onu) (*OnuLogicalDistance, error) { |
| 719 | return nil, status.Error(codes.Unimplemented, "method GetLogicalOnuDistance not implemented") |
| 720 | } |
| 721 | func (UnimplementedOpenoltServer) GetPonRxPower(context.Context, *Onu) (*PonRxPowerData, error) { |
| 722 | return nil, status.Error(codes.Unimplemented, "method GetPonRxPower not implemented") |
| 723 | } |
| 724 | func (UnimplementedOpenoltServer) GetOnuInfo(context.Context, *Onu) (*OnuInfo, error) { |
| 725 | return nil, status.Error(codes.Unimplemented, "method GetOnuInfo not implemented") |
| 726 | } |
| 727 | func (UnimplementedOpenoltServer) GetPonInterfaceInfo(context.Context, *Interface) (*PonIntfInfo, error) { |
| 728 | return nil, status.Error(codes.Unimplemented, "method GetPonInterfaceInfo not implemented") |
| 729 | } |
| 730 | func (UnimplementedOpenoltServer) GetAllocIdStatistics(context.Context, *OnuPacket) (*OnuAllocIdStatistics, error) { |
| 731 | return nil, status.Error(codes.Unimplemented, "method GetAllocIdStatistics not implemented") |
| 732 | } |
| 733 | func (UnimplementedOpenoltServer) GetPonPortStatistics(context.Context, *Interface) (*common.PortStatistics, error) { |
| 734 | return nil, status.Error(codes.Unimplemented, "method GetPonPortStatistics not implemented") |
| 735 | } |
| 736 | func (UnimplementedOpenoltServer) GetNniPortStatistics(context.Context, *Interface) (*common.PortStatistics, error) { |
| 737 | return nil, status.Error(codes.Unimplemented, "method GetNniPortStatistics not implemented") |
| 738 | } |
| 739 | func (UnimplementedOpenoltServer) DisableOnu(context.Context, *InterfaceOnuSerialNumberOnuId) (*Empty, error) { |
| 740 | return nil, status.Error(codes.Unimplemented, "method DisableOnu not implemented") |
| 741 | } |
| 742 | func (UnimplementedOpenoltServer) EnableOnu(context.Context, *InterfaceOnuSerialNumberOnuId) (*Empty, error) { |
| 743 | return nil, status.Error(codes.Unimplemented, "method EnableOnu not implemented") |
| 744 | } |
| 745 | func (UnimplementedOpenoltServer) DisableOnuSerialNumber(context.Context, *InterfaceOnuSerialNumber) (*Empty, error) { |
| 746 | return nil, status.Error(codes.Unimplemented, "method DisableOnuSerialNumber not implemented") |
| 747 | } |
| 748 | func (UnimplementedOpenoltServer) EnableOnuSerialNumber(context.Context, *InterfaceOnuSerialNumber) (*Empty, error) { |
| 749 | return nil, status.Error(codes.Unimplemented, "method EnableOnuSerialNumber not implemented") |
| 750 | } |
| 751 | func (UnimplementedOpenoltServer) mustEmbedUnimplementedOpenoltServer() {} |
| 752 | func (UnimplementedOpenoltServer) testEmbeddedByValue() {} |
| 753 | |
| 754 | // UnsafeOpenoltServer may be embedded to opt out of forward compatibility for this service. |
| 755 | // Use of this interface is not recommended, as added methods to OpenoltServer will |
| 756 | // result in compilation errors. |
| 757 | type UnsafeOpenoltServer interface { |
| 758 | mustEmbedUnimplementedOpenoltServer() |
| 759 | } |
| 760 | |
| 761 | func RegisterOpenoltServer(s grpc.ServiceRegistrar, srv OpenoltServer) { |
| 762 | // If the following call panics, it indicates UnimplementedOpenoltServer was |
| 763 | // embedded by pointer and is nil. This will cause panics if an |
| 764 | // unimplemented method is ever invoked, so we test this at initialization |
| 765 | // time to prevent it from happening at runtime later due to I/O. |
| 766 | if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { |
| 767 | t.testEmbeddedByValue() |
| 768 | } |
| 769 | s.RegisterService(&Openolt_ServiceDesc, srv) |
| 770 | } |
| 771 | |
| 772 | func _Openolt_DisableOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 773 | in := new(Empty) |
| 774 | if err := dec(in); err != nil { |
| 775 | return nil, err |
| 776 | } |
| 777 | if interceptor == nil { |
| 778 | return srv.(OpenoltServer).DisableOlt(ctx, in) |
| 779 | } |
| 780 | info := &grpc.UnaryServerInfo{ |
| 781 | Server: srv, |
| 782 | FullMethod: Openolt_DisableOlt_FullMethodName, |
| 783 | } |
| 784 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 785 | return srv.(OpenoltServer).DisableOlt(ctx, req.(*Empty)) |
| 786 | } |
| 787 | return interceptor(ctx, in, info, handler) |
| 788 | } |
| 789 | |
| 790 | func _Openolt_ReenableOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 791 | in := new(Empty) |
| 792 | if err := dec(in); err != nil { |
| 793 | return nil, err |
| 794 | } |
| 795 | if interceptor == nil { |
| 796 | return srv.(OpenoltServer).ReenableOlt(ctx, in) |
| 797 | } |
| 798 | info := &grpc.UnaryServerInfo{ |
| 799 | Server: srv, |
| 800 | FullMethod: Openolt_ReenableOlt_FullMethodName, |
| 801 | } |
| 802 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 803 | return srv.(OpenoltServer).ReenableOlt(ctx, req.(*Empty)) |
| 804 | } |
| 805 | return interceptor(ctx, in, info, handler) |
| 806 | } |
| 807 | |
| 808 | func _Openolt_ActivateOnu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 809 | in := new(Onu) |
| 810 | if err := dec(in); err != nil { |
| 811 | return nil, err |
| 812 | } |
| 813 | if interceptor == nil { |
| 814 | return srv.(OpenoltServer).ActivateOnu(ctx, in) |
| 815 | } |
| 816 | info := &grpc.UnaryServerInfo{ |
| 817 | Server: srv, |
| 818 | FullMethod: Openolt_ActivateOnu_FullMethodName, |
| 819 | } |
| 820 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 821 | return srv.(OpenoltServer).ActivateOnu(ctx, req.(*Onu)) |
| 822 | } |
| 823 | return interceptor(ctx, in, info, handler) |
| 824 | } |
| 825 | |
| 826 | func _Openolt_DeactivateOnu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 827 | in := new(Onu) |
| 828 | if err := dec(in); err != nil { |
| 829 | return nil, err |
| 830 | } |
| 831 | if interceptor == nil { |
| 832 | return srv.(OpenoltServer).DeactivateOnu(ctx, in) |
| 833 | } |
| 834 | info := &grpc.UnaryServerInfo{ |
| 835 | Server: srv, |
| 836 | FullMethod: Openolt_DeactivateOnu_FullMethodName, |
| 837 | } |
| 838 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 839 | return srv.(OpenoltServer).DeactivateOnu(ctx, req.(*Onu)) |
| 840 | } |
| 841 | return interceptor(ctx, in, info, handler) |
| 842 | } |
| 843 | |
| 844 | func _Openolt_DeleteOnu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 845 | in := new(Onu) |
| 846 | if err := dec(in); err != nil { |
| 847 | return nil, err |
| 848 | } |
| 849 | if interceptor == nil { |
| 850 | return srv.(OpenoltServer).DeleteOnu(ctx, in) |
| 851 | } |
| 852 | info := &grpc.UnaryServerInfo{ |
| 853 | Server: srv, |
| 854 | FullMethod: Openolt_DeleteOnu_FullMethodName, |
| 855 | } |
| 856 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 857 | return srv.(OpenoltServer).DeleteOnu(ctx, req.(*Onu)) |
| 858 | } |
| 859 | return interceptor(ctx, in, info, handler) |
| 860 | } |
| 861 | |
| 862 | func _Openolt_OmciMsgOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 863 | in := new(OmciMsg) |
| 864 | if err := dec(in); err != nil { |
| 865 | return nil, err |
| 866 | } |
| 867 | if interceptor == nil { |
| 868 | return srv.(OpenoltServer).OmciMsgOut(ctx, in) |
| 869 | } |
| 870 | info := &grpc.UnaryServerInfo{ |
| 871 | Server: srv, |
| 872 | FullMethod: Openolt_OmciMsgOut_FullMethodName, |
| 873 | } |
| 874 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 875 | return srv.(OpenoltServer).OmciMsgOut(ctx, req.(*OmciMsg)) |
| 876 | } |
| 877 | return interceptor(ctx, in, info, handler) |
| 878 | } |
| 879 | |
| 880 | func _Openolt_OnuPacketOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 881 | in := new(OnuPacket) |
| 882 | if err := dec(in); err != nil { |
| 883 | return nil, err |
| 884 | } |
| 885 | if interceptor == nil { |
| 886 | return srv.(OpenoltServer).OnuPacketOut(ctx, in) |
| 887 | } |
| 888 | info := &grpc.UnaryServerInfo{ |
| 889 | Server: srv, |
| 890 | FullMethod: Openolt_OnuPacketOut_FullMethodName, |
| 891 | } |
| 892 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 893 | return srv.(OpenoltServer).OnuPacketOut(ctx, req.(*OnuPacket)) |
| 894 | } |
| 895 | return interceptor(ctx, in, info, handler) |
| 896 | } |
| 897 | |
| 898 | func _Openolt_UplinkPacketOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 899 | in := new(UplinkPacket) |
| 900 | if err := dec(in); err != nil { |
| 901 | return nil, err |
| 902 | } |
| 903 | if interceptor == nil { |
| 904 | return srv.(OpenoltServer).UplinkPacketOut(ctx, in) |
| 905 | } |
| 906 | info := &grpc.UnaryServerInfo{ |
| 907 | Server: srv, |
| 908 | FullMethod: Openolt_UplinkPacketOut_FullMethodName, |
| 909 | } |
| 910 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 911 | return srv.(OpenoltServer).UplinkPacketOut(ctx, req.(*UplinkPacket)) |
| 912 | } |
| 913 | return interceptor(ctx, in, info, handler) |
| 914 | } |
| 915 | |
| 916 | func _Openolt_FlowAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 917 | in := new(Flow) |
| 918 | if err := dec(in); err != nil { |
| 919 | return nil, err |
| 920 | } |
| 921 | if interceptor == nil { |
| 922 | return srv.(OpenoltServer).FlowAdd(ctx, in) |
| 923 | } |
| 924 | info := &grpc.UnaryServerInfo{ |
| 925 | Server: srv, |
| 926 | FullMethod: Openolt_FlowAdd_FullMethodName, |
| 927 | } |
| 928 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 929 | return srv.(OpenoltServer).FlowAdd(ctx, req.(*Flow)) |
| 930 | } |
| 931 | return interceptor(ctx, in, info, handler) |
| 932 | } |
| 933 | |
| 934 | func _Openolt_FlowRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 935 | in := new(Flow) |
| 936 | if err := dec(in); err != nil { |
| 937 | return nil, err |
| 938 | } |
| 939 | if interceptor == nil { |
| 940 | return srv.(OpenoltServer).FlowRemove(ctx, in) |
| 941 | } |
| 942 | info := &grpc.UnaryServerInfo{ |
| 943 | Server: srv, |
| 944 | FullMethod: Openolt_FlowRemove_FullMethodName, |
| 945 | } |
| 946 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 947 | return srv.(OpenoltServer).FlowRemove(ctx, req.(*Flow)) |
| 948 | } |
| 949 | return interceptor(ctx, in, info, handler) |
| 950 | } |
| 951 | |
| 952 | func _Openolt_HeartbeatCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 953 | in := new(Empty) |
| 954 | if err := dec(in); err != nil { |
| 955 | return nil, err |
| 956 | } |
| 957 | if interceptor == nil { |
| 958 | return srv.(OpenoltServer).HeartbeatCheck(ctx, in) |
| 959 | } |
| 960 | info := &grpc.UnaryServerInfo{ |
| 961 | Server: srv, |
| 962 | FullMethod: Openolt_HeartbeatCheck_FullMethodName, |
| 963 | } |
| 964 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 965 | return srv.(OpenoltServer).HeartbeatCheck(ctx, req.(*Empty)) |
| 966 | } |
| 967 | return interceptor(ctx, in, info, handler) |
| 968 | } |
| 969 | |
| 970 | func _Openolt_EnablePonIf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 971 | in := new(Interface) |
| 972 | if err := dec(in); err != nil { |
| 973 | return nil, err |
| 974 | } |
| 975 | if interceptor == nil { |
| 976 | return srv.(OpenoltServer).EnablePonIf(ctx, in) |
| 977 | } |
| 978 | info := &grpc.UnaryServerInfo{ |
| 979 | Server: srv, |
| 980 | FullMethod: Openolt_EnablePonIf_FullMethodName, |
| 981 | } |
| 982 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 983 | return srv.(OpenoltServer).EnablePonIf(ctx, req.(*Interface)) |
| 984 | } |
| 985 | return interceptor(ctx, in, info, handler) |
| 986 | } |
| 987 | |
| 988 | func _Openolt_DisablePonIf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 989 | in := new(Interface) |
| 990 | if err := dec(in); err != nil { |
| 991 | return nil, err |
| 992 | } |
| 993 | if interceptor == nil { |
| 994 | return srv.(OpenoltServer).DisablePonIf(ctx, in) |
| 995 | } |
| 996 | info := &grpc.UnaryServerInfo{ |
| 997 | Server: srv, |
| 998 | FullMethod: Openolt_DisablePonIf_FullMethodName, |
| 999 | } |
| 1000 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1001 | return srv.(OpenoltServer).DisablePonIf(ctx, req.(*Interface)) |
| 1002 | } |
| 1003 | return interceptor(ctx, in, info, handler) |
| 1004 | } |
| 1005 | |
| 1006 | func _Openolt_GetDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1007 | in := new(Empty) |
| 1008 | if err := dec(in); err != nil { |
| 1009 | return nil, err |
| 1010 | } |
| 1011 | if interceptor == nil { |
| 1012 | return srv.(OpenoltServer).GetDeviceInfo(ctx, in) |
| 1013 | } |
| 1014 | info := &grpc.UnaryServerInfo{ |
| 1015 | Server: srv, |
| 1016 | FullMethod: Openolt_GetDeviceInfo_FullMethodName, |
| 1017 | } |
| 1018 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1019 | return srv.(OpenoltServer).GetDeviceInfo(ctx, req.(*Empty)) |
| 1020 | } |
| 1021 | return interceptor(ctx, in, info, handler) |
| 1022 | } |
| 1023 | |
| 1024 | func _Openolt_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1025 | in := new(Empty) |
| 1026 | if err := dec(in); err != nil { |
| 1027 | return nil, err |
| 1028 | } |
| 1029 | if interceptor == nil { |
| 1030 | return srv.(OpenoltServer).Reboot(ctx, in) |
| 1031 | } |
| 1032 | info := &grpc.UnaryServerInfo{ |
| 1033 | Server: srv, |
| 1034 | FullMethod: Openolt_Reboot_FullMethodName, |
| 1035 | } |
| 1036 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1037 | return srv.(OpenoltServer).Reboot(ctx, req.(*Empty)) |
| 1038 | } |
| 1039 | return interceptor(ctx, in, info, handler) |
| 1040 | } |
| 1041 | |
| 1042 | func _Openolt_CollectStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1043 | in := new(Empty) |
| 1044 | if err := dec(in); err != nil { |
| 1045 | return nil, err |
| 1046 | } |
| 1047 | if interceptor == nil { |
| 1048 | return srv.(OpenoltServer).CollectStatistics(ctx, in) |
| 1049 | } |
| 1050 | info := &grpc.UnaryServerInfo{ |
| 1051 | Server: srv, |
| 1052 | FullMethod: Openolt_CollectStatistics_FullMethodName, |
| 1053 | } |
| 1054 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1055 | return srv.(OpenoltServer).CollectStatistics(ctx, req.(*Empty)) |
| 1056 | } |
| 1057 | return interceptor(ctx, in, info, handler) |
| 1058 | } |
| 1059 | |
| 1060 | func _Openolt_GetOnuStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1061 | in := new(Onu) |
| 1062 | if err := dec(in); err != nil { |
| 1063 | return nil, err |
| 1064 | } |
| 1065 | if interceptor == nil { |
| 1066 | return srv.(OpenoltServer).GetOnuStatistics(ctx, in) |
| 1067 | } |
| 1068 | info := &grpc.UnaryServerInfo{ |
| 1069 | Server: srv, |
| 1070 | FullMethod: Openolt_GetOnuStatistics_FullMethodName, |
| 1071 | } |
| 1072 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1073 | return srv.(OpenoltServer).GetOnuStatistics(ctx, req.(*Onu)) |
| 1074 | } |
| 1075 | return interceptor(ctx, in, info, handler) |
| 1076 | } |
| 1077 | |
| 1078 | func _Openolt_GetGemPortStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1079 | in := new(OnuPacket) |
| 1080 | if err := dec(in); err != nil { |
| 1081 | return nil, err |
| 1082 | } |
| 1083 | if interceptor == nil { |
| 1084 | return srv.(OpenoltServer).GetGemPortStatistics(ctx, in) |
| 1085 | } |
| 1086 | info := &grpc.UnaryServerInfo{ |
| 1087 | Server: srv, |
| 1088 | FullMethod: Openolt_GetGemPortStatistics_FullMethodName, |
| 1089 | } |
| 1090 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1091 | return srv.(OpenoltServer).GetGemPortStatistics(ctx, req.(*OnuPacket)) |
| 1092 | } |
| 1093 | return interceptor(ctx, in, info, handler) |
| 1094 | } |
| 1095 | |
| 1096 | func _Openolt_CreateTrafficSchedulers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1097 | in := new(tech_profile.TrafficSchedulers) |
| 1098 | if err := dec(in); err != nil { |
| 1099 | return nil, err |
| 1100 | } |
| 1101 | if interceptor == nil { |
| 1102 | return srv.(OpenoltServer).CreateTrafficSchedulers(ctx, in) |
| 1103 | } |
| 1104 | info := &grpc.UnaryServerInfo{ |
| 1105 | Server: srv, |
| 1106 | FullMethod: Openolt_CreateTrafficSchedulers_FullMethodName, |
| 1107 | } |
| 1108 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1109 | return srv.(OpenoltServer).CreateTrafficSchedulers(ctx, req.(*tech_profile.TrafficSchedulers)) |
| 1110 | } |
| 1111 | return interceptor(ctx, in, info, handler) |
| 1112 | } |
| 1113 | |
| 1114 | func _Openolt_RemoveTrafficSchedulers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1115 | in := new(tech_profile.TrafficSchedulers) |
| 1116 | if err := dec(in); err != nil { |
| 1117 | return nil, err |
| 1118 | } |
| 1119 | if interceptor == nil { |
| 1120 | return srv.(OpenoltServer).RemoveTrafficSchedulers(ctx, in) |
| 1121 | } |
| 1122 | info := &grpc.UnaryServerInfo{ |
| 1123 | Server: srv, |
| 1124 | FullMethod: Openolt_RemoveTrafficSchedulers_FullMethodName, |
| 1125 | } |
| 1126 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1127 | return srv.(OpenoltServer).RemoveTrafficSchedulers(ctx, req.(*tech_profile.TrafficSchedulers)) |
| 1128 | } |
| 1129 | return interceptor(ctx, in, info, handler) |
| 1130 | } |
| 1131 | |
| 1132 | func _Openolt_CreateTrafficQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1133 | in := new(tech_profile.TrafficQueues) |
| 1134 | if err := dec(in); err != nil { |
| 1135 | return nil, err |
| 1136 | } |
| 1137 | if interceptor == nil { |
| 1138 | return srv.(OpenoltServer).CreateTrafficQueues(ctx, in) |
| 1139 | } |
| 1140 | info := &grpc.UnaryServerInfo{ |
| 1141 | Server: srv, |
| 1142 | FullMethod: Openolt_CreateTrafficQueues_FullMethodName, |
| 1143 | } |
| 1144 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1145 | return srv.(OpenoltServer).CreateTrafficQueues(ctx, req.(*tech_profile.TrafficQueues)) |
| 1146 | } |
| 1147 | return interceptor(ctx, in, info, handler) |
| 1148 | } |
| 1149 | |
| 1150 | func _Openolt_RemoveTrafficQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1151 | in := new(tech_profile.TrafficQueues) |
| 1152 | if err := dec(in); err != nil { |
| 1153 | return nil, err |
| 1154 | } |
| 1155 | if interceptor == nil { |
| 1156 | return srv.(OpenoltServer).RemoveTrafficQueues(ctx, in) |
| 1157 | } |
| 1158 | info := &grpc.UnaryServerInfo{ |
| 1159 | Server: srv, |
| 1160 | FullMethod: Openolt_RemoveTrafficQueues_FullMethodName, |
| 1161 | } |
| 1162 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1163 | return srv.(OpenoltServer).RemoveTrafficQueues(ctx, req.(*tech_profile.TrafficQueues)) |
| 1164 | } |
| 1165 | return interceptor(ctx, in, info, handler) |
| 1166 | } |
| 1167 | |
| 1168 | func _Openolt_EnableIndication_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1169 | m := new(Empty) |
| 1170 | if err := stream.RecvMsg(m); err != nil { |
| 1171 | return err |
| 1172 | } |
| 1173 | return srv.(OpenoltServer).EnableIndication(m, &grpc.GenericServerStream[Empty, Indication]{ServerStream: stream}) |
| 1174 | } |
| 1175 | |
| 1176 | // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. |
| 1177 | type Openolt_EnableIndicationServer = grpc.ServerStreamingServer[Indication] |
| 1178 | |
| 1179 | func _Openolt_PerformGroupOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1180 | in := new(Group) |
| 1181 | if err := dec(in); err != nil { |
| 1182 | return nil, err |
| 1183 | } |
| 1184 | if interceptor == nil { |
| 1185 | return srv.(OpenoltServer).PerformGroupOperation(ctx, in) |
| 1186 | } |
| 1187 | info := &grpc.UnaryServerInfo{ |
| 1188 | Server: srv, |
| 1189 | FullMethod: Openolt_PerformGroupOperation_FullMethodName, |
| 1190 | } |
| 1191 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1192 | return srv.(OpenoltServer).PerformGroupOperation(ctx, req.(*Group)) |
| 1193 | } |
| 1194 | return interceptor(ctx, in, info, handler) |
| 1195 | } |
| 1196 | |
| 1197 | func _Openolt_DeleteGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1198 | in := new(Group) |
| 1199 | if err := dec(in); err != nil { |
| 1200 | return nil, err |
| 1201 | } |
| 1202 | if interceptor == nil { |
| 1203 | return srv.(OpenoltServer).DeleteGroup(ctx, in) |
| 1204 | } |
| 1205 | info := &grpc.UnaryServerInfo{ |
| 1206 | Server: srv, |
| 1207 | FullMethod: Openolt_DeleteGroup_FullMethodName, |
| 1208 | } |
| 1209 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1210 | return srv.(OpenoltServer).DeleteGroup(ctx, req.(*Group)) |
| 1211 | } |
| 1212 | return interceptor(ctx, in, info, handler) |
| 1213 | } |
| 1214 | |
| 1215 | func _Openolt_GetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1216 | in := new(ValueParam) |
| 1217 | if err := dec(in); err != nil { |
| 1218 | return nil, err |
| 1219 | } |
| 1220 | if interceptor == nil { |
| 1221 | return srv.(OpenoltServer).GetExtValue(ctx, in) |
| 1222 | } |
| 1223 | info := &grpc.UnaryServerInfo{ |
| 1224 | Server: srv, |
| 1225 | FullMethod: Openolt_GetExtValue_FullMethodName, |
| 1226 | } |
| 1227 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1228 | return srv.(OpenoltServer).GetExtValue(ctx, req.(*ValueParam)) |
| 1229 | } |
| 1230 | return interceptor(ctx, in, info, handler) |
| 1231 | } |
| 1232 | |
| 1233 | func _Openolt_OnuItuPonAlarmSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1234 | in := new(config.OnuItuPonAlarm) |
| 1235 | if err := dec(in); err != nil { |
| 1236 | return nil, err |
| 1237 | } |
| 1238 | if interceptor == nil { |
| 1239 | return srv.(OpenoltServer).OnuItuPonAlarmSet(ctx, in) |
| 1240 | } |
| 1241 | info := &grpc.UnaryServerInfo{ |
| 1242 | Server: srv, |
| 1243 | FullMethod: Openolt_OnuItuPonAlarmSet_FullMethodName, |
| 1244 | } |
| 1245 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1246 | return srv.(OpenoltServer).OnuItuPonAlarmSet(ctx, req.(*config.OnuItuPonAlarm)) |
| 1247 | } |
| 1248 | return interceptor(ctx, in, info, handler) |
| 1249 | } |
| 1250 | |
| 1251 | func _Openolt_GetLogicalOnuDistanceZero_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1252 | in := new(Onu) |
| 1253 | if err := dec(in); err != nil { |
| 1254 | return nil, err |
| 1255 | } |
| 1256 | if interceptor == nil { |
| 1257 | return srv.(OpenoltServer).GetLogicalOnuDistanceZero(ctx, in) |
| 1258 | } |
| 1259 | info := &grpc.UnaryServerInfo{ |
| 1260 | Server: srv, |
| 1261 | FullMethod: Openolt_GetLogicalOnuDistanceZero_FullMethodName, |
| 1262 | } |
| 1263 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1264 | return srv.(OpenoltServer).GetLogicalOnuDistanceZero(ctx, req.(*Onu)) |
| 1265 | } |
| 1266 | return interceptor(ctx, in, info, handler) |
| 1267 | } |
| 1268 | |
| 1269 | func _Openolt_GetLogicalOnuDistance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1270 | in := new(Onu) |
| 1271 | if err := dec(in); err != nil { |
| 1272 | return nil, err |
| 1273 | } |
| 1274 | if interceptor == nil { |
| 1275 | return srv.(OpenoltServer).GetLogicalOnuDistance(ctx, in) |
| 1276 | } |
| 1277 | info := &grpc.UnaryServerInfo{ |
| 1278 | Server: srv, |
| 1279 | FullMethod: Openolt_GetLogicalOnuDistance_FullMethodName, |
| 1280 | } |
| 1281 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1282 | return srv.(OpenoltServer).GetLogicalOnuDistance(ctx, req.(*Onu)) |
| 1283 | } |
| 1284 | return interceptor(ctx, in, info, handler) |
| 1285 | } |
| 1286 | |
| 1287 | func _Openolt_GetPonRxPower_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1288 | in := new(Onu) |
| 1289 | if err := dec(in); err != nil { |
| 1290 | return nil, err |
| 1291 | } |
| 1292 | if interceptor == nil { |
| 1293 | return srv.(OpenoltServer).GetPonRxPower(ctx, in) |
| 1294 | } |
| 1295 | info := &grpc.UnaryServerInfo{ |
| 1296 | Server: srv, |
| 1297 | FullMethod: Openolt_GetPonRxPower_FullMethodName, |
| 1298 | } |
| 1299 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1300 | return srv.(OpenoltServer).GetPonRxPower(ctx, req.(*Onu)) |
| 1301 | } |
| 1302 | return interceptor(ctx, in, info, handler) |
| 1303 | } |
| 1304 | |
| 1305 | func _Openolt_GetOnuInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1306 | in := new(Onu) |
| 1307 | if err := dec(in); err != nil { |
| 1308 | return nil, err |
| 1309 | } |
| 1310 | if interceptor == nil { |
| 1311 | return srv.(OpenoltServer).GetOnuInfo(ctx, in) |
| 1312 | } |
| 1313 | info := &grpc.UnaryServerInfo{ |
| 1314 | Server: srv, |
| 1315 | FullMethod: Openolt_GetOnuInfo_FullMethodName, |
| 1316 | } |
| 1317 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1318 | return srv.(OpenoltServer).GetOnuInfo(ctx, req.(*Onu)) |
| 1319 | } |
| 1320 | return interceptor(ctx, in, info, handler) |
| 1321 | } |
| 1322 | |
| 1323 | func _Openolt_GetPonInterfaceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1324 | in := new(Interface) |
| 1325 | if err := dec(in); err != nil { |
| 1326 | return nil, err |
| 1327 | } |
| 1328 | if interceptor == nil { |
| 1329 | return srv.(OpenoltServer).GetPonInterfaceInfo(ctx, in) |
| 1330 | } |
| 1331 | info := &grpc.UnaryServerInfo{ |
| 1332 | Server: srv, |
| 1333 | FullMethod: Openolt_GetPonInterfaceInfo_FullMethodName, |
| 1334 | } |
| 1335 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1336 | return srv.(OpenoltServer).GetPonInterfaceInfo(ctx, req.(*Interface)) |
| 1337 | } |
| 1338 | return interceptor(ctx, in, info, handler) |
| 1339 | } |
| 1340 | |
| 1341 | func _Openolt_GetAllocIdStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1342 | in := new(OnuPacket) |
| 1343 | if err := dec(in); err != nil { |
| 1344 | return nil, err |
| 1345 | } |
| 1346 | if interceptor == nil { |
| 1347 | return srv.(OpenoltServer).GetAllocIdStatistics(ctx, in) |
| 1348 | } |
| 1349 | info := &grpc.UnaryServerInfo{ |
| 1350 | Server: srv, |
| 1351 | FullMethod: Openolt_GetAllocIdStatistics_FullMethodName, |
| 1352 | } |
| 1353 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1354 | return srv.(OpenoltServer).GetAllocIdStatistics(ctx, req.(*OnuPacket)) |
| 1355 | } |
| 1356 | return interceptor(ctx, in, info, handler) |
| 1357 | } |
| 1358 | |
| 1359 | func _Openolt_GetPonPortStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1360 | in := new(Interface) |
| 1361 | if err := dec(in); err != nil { |
| 1362 | return nil, err |
| 1363 | } |
| 1364 | if interceptor == nil { |
| 1365 | return srv.(OpenoltServer).GetPonPortStatistics(ctx, in) |
| 1366 | } |
| 1367 | info := &grpc.UnaryServerInfo{ |
| 1368 | Server: srv, |
| 1369 | FullMethod: Openolt_GetPonPortStatistics_FullMethodName, |
| 1370 | } |
| 1371 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1372 | return srv.(OpenoltServer).GetPonPortStatistics(ctx, req.(*Interface)) |
| 1373 | } |
| 1374 | return interceptor(ctx, in, info, handler) |
| 1375 | } |
| 1376 | |
| 1377 | func _Openolt_GetNniPortStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1378 | in := new(Interface) |
| 1379 | if err := dec(in); err != nil { |
| 1380 | return nil, err |
| 1381 | } |
| 1382 | if interceptor == nil { |
| 1383 | return srv.(OpenoltServer).GetNniPortStatistics(ctx, in) |
| 1384 | } |
| 1385 | info := &grpc.UnaryServerInfo{ |
| 1386 | Server: srv, |
| 1387 | FullMethod: Openolt_GetNniPortStatistics_FullMethodName, |
| 1388 | } |
| 1389 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1390 | return srv.(OpenoltServer).GetNniPortStatistics(ctx, req.(*Interface)) |
| 1391 | } |
| 1392 | return interceptor(ctx, in, info, handler) |
| 1393 | } |
| 1394 | |
| 1395 | func _Openolt_DisableOnu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1396 | in := new(InterfaceOnuSerialNumberOnuId) |
| 1397 | if err := dec(in); err != nil { |
| 1398 | return nil, err |
| 1399 | } |
| 1400 | if interceptor == nil { |
| 1401 | return srv.(OpenoltServer).DisableOnu(ctx, in) |
| 1402 | } |
| 1403 | info := &grpc.UnaryServerInfo{ |
| 1404 | Server: srv, |
| 1405 | FullMethod: Openolt_DisableOnu_FullMethodName, |
| 1406 | } |
| 1407 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1408 | return srv.(OpenoltServer).DisableOnu(ctx, req.(*InterfaceOnuSerialNumberOnuId)) |
| 1409 | } |
| 1410 | return interceptor(ctx, in, info, handler) |
| 1411 | } |
| 1412 | |
| 1413 | func _Openolt_EnableOnu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1414 | in := new(InterfaceOnuSerialNumberOnuId) |
| 1415 | if err := dec(in); err != nil { |
| 1416 | return nil, err |
| 1417 | } |
| 1418 | if interceptor == nil { |
| 1419 | return srv.(OpenoltServer).EnableOnu(ctx, in) |
| 1420 | } |
| 1421 | info := &grpc.UnaryServerInfo{ |
| 1422 | Server: srv, |
| 1423 | FullMethod: Openolt_EnableOnu_FullMethodName, |
| 1424 | } |
| 1425 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1426 | return srv.(OpenoltServer).EnableOnu(ctx, req.(*InterfaceOnuSerialNumberOnuId)) |
| 1427 | } |
| 1428 | return interceptor(ctx, in, info, handler) |
| 1429 | } |
| 1430 | |
| 1431 | func _Openolt_DisableOnuSerialNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1432 | in := new(InterfaceOnuSerialNumber) |
| 1433 | if err := dec(in); err != nil { |
| 1434 | return nil, err |
| 1435 | } |
| 1436 | if interceptor == nil { |
| 1437 | return srv.(OpenoltServer).DisableOnuSerialNumber(ctx, in) |
| 1438 | } |
| 1439 | info := &grpc.UnaryServerInfo{ |
| 1440 | Server: srv, |
| 1441 | FullMethod: Openolt_DisableOnuSerialNumber_FullMethodName, |
| 1442 | } |
| 1443 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1444 | return srv.(OpenoltServer).DisableOnuSerialNumber(ctx, req.(*InterfaceOnuSerialNumber)) |
| 1445 | } |
| 1446 | return interceptor(ctx, in, info, handler) |
| 1447 | } |
| 1448 | |
| 1449 | func _Openolt_EnableOnuSerialNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1450 | in := new(InterfaceOnuSerialNumber) |
| 1451 | if err := dec(in); err != nil { |
| 1452 | return nil, err |
| 1453 | } |
| 1454 | if interceptor == nil { |
| 1455 | return srv.(OpenoltServer).EnableOnuSerialNumber(ctx, in) |
| 1456 | } |
| 1457 | info := &grpc.UnaryServerInfo{ |
| 1458 | Server: srv, |
| 1459 | FullMethod: Openolt_EnableOnuSerialNumber_FullMethodName, |
| 1460 | } |
| 1461 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1462 | return srv.(OpenoltServer).EnableOnuSerialNumber(ctx, req.(*InterfaceOnuSerialNumber)) |
| 1463 | } |
| 1464 | return interceptor(ctx, in, info, handler) |
| 1465 | } |
| 1466 | |
| 1467 | // Openolt_ServiceDesc is the grpc.ServiceDesc for Openolt service. |
| 1468 | // It's only intended for direct use with grpc.RegisterService, |
| 1469 | // and not to be introspected or modified (even as a copy) |
| 1470 | var Openolt_ServiceDesc = grpc.ServiceDesc{ |
| 1471 | ServiceName: "openolt.Openolt", |
| 1472 | HandlerType: (*OpenoltServer)(nil), |
| 1473 | Methods: []grpc.MethodDesc{ |
| 1474 | { |
| 1475 | MethodName: "DisableOlt", |
| 1476 | Handler: _Openolt_DisableOlt_Handler, |
| 1477 | }, |
| 1478 | { |
| 1479 | MethodName: "ReenableOlt", |
| 1480 | Handler: _Openolt_ReenableOlt_Handler, |
| 1481 | }, |
| 1482 | { |
| 1483 | MethodName: "ActivateOnu", |
| 1484 | Handler: _Openolt_ActivateOnu_Handler, |
| 1485 | }, |
| 1486 | { |
| 1487 | MethodName: "DeactivateOnu", |
| 1488 | Handler: _Openolt_DeactivateOnu_Handler, |
| 1489 | }, |
| 1490 | { |
| 1491 | MethodName: "DeleteOnu", |
| 1492 | Handler: _Openolt_DeleteOnu_Handler, |
| 1493 | }, |
| 1494 | { |
| 1495 | MethodName: "OmciMsgOut", |
| 1496 | Handler: _Openolt_OmciMsgOut_Handler, |
| 1497 | }, |
| 1498 | { |
| 1499 | MethodName: "OnuPacketOut", |
| 1500 | Handler: _Openolt_OnuPacketOut_Handler, |
| 1501 | }, |
| 1502 | { |
| 1503 | MethodName: "UplinkPacketOut", |
| 1504 | Handler: _Openolt_UplinkPacketOut_Handler, |
| 1505 | }, |
| 1506 | { |
| 1507 | MethodName: "FlowAdd", |
| 1508 | Handler: _Openolt_FlowAdd_Handler, |
| 1509 | }, |
| 1510 | { |
| 1511 | MethodName: "FlowRemove", |
| 1512 | Handler: _Openolt_FlowRemove_Handler, |
| 1513 | }, |
| 1514 | { |
| 1515 | MethodName: "HeartbeatCheck", |
| 1516 | Handler: _Openolt_HeartbeatCheck_Handler, |
| 1517 | }, |
| 1518 | { |
| 1519 | MethodName: "EnablePonIf", |
| 1520 | Handler: _Openolt_EnablePonIf_Handler, |
| 1521 | }, |
| 1522 | { |
| 1523 | MethodName: "DisablePonIf", |
| 1524 | Handler: _Openolt_DisablePonIf_Handler, |
| 1525 | }, |
| 1526 | { |
| 1527 | MethodName: "GetDeviceInfo", |
| 1528 | Handler: _Openolt_GetDeviceInfo_Handler, |
| 1529 | }, |
| 1530 | { |
| 1531 | MethodName: "Reboot", |
| 1532 | Handler: _Openolt_Reboot_Handler, |
| 1533 | }, |
| 1534 | { |
| 1535 | MethodName: "CollectStatistics", |
| 1536 | Handler: _Openolt_CollectStatistics_Handler, |
| 1537 | }, |
| 1538 | { |
| 1539 | MethodName: "GetOnuStatistics", |
| 1540 | Handler: _Openolt_GetOnuStatistics_Handler, |
| 1541 | }, |
| 1542 | { |
| 1543 | MethodName: "GetGemPortStatistics", |
| 1544 | Handler: _Openolt_GetGemPortStatistics_Handler, |
| 1545 | }, |
| 1546 | { |
| 1547 | MethodName: "CreateTrafficSchedulers", |
| 1548 | Handler: _Openolt_CreateTrafficSchedulers_Handler, |
| 1549 | }, |
| 1550 | { |
| 1551 | MethodName: "RemoveTrafficSchedulers", |
| 1552 | Handler: _Openolt_RemoveTrafficSchedulers_Handler, |
| 1553 | }, |
| 1554 | { |
| 1555 | MethodName: "CreateTrafficQueues", |
| 1556 | Handler: _Openolt_CreateTrafficQueues_Handler, |
| 1557 | }, |
| 1558 | { |
| 1559 | MethodName: "RemoveTrafficQueues", |
| 1560 | Handler: _Openolt_RemoveTrafficQueues_Handler, |
| 1561 | }, |
| 1562 | { |
| 1563 | MethodName: "PerformGroupOperation", |
| 1564 | Handler: _Openolt_PerformGroupOperation_Handler, |
| 1565 | }, |
| 1566 | { |
| 1567 | MethodName: "DeleteGroup", |
| 1568 | Handler: _Openolt_DeleteGroup_Handler, |
| 1569 | }, |
| 1570 | { |
| 1571 | MethodName: "GetExtValue", |
| 1572 | Handler: _Openolt_GetExtValue_Handler, |
| 1573 | }, |
| 1574 | { |
| 1575 | MethodName: "OnuItuPonAlarmSet", |
| 1576 | Handler: _Openolt_OnuItuPonAlarmSet_Handler, |
| 1577 | }, |
| 1578 | { |
| 1579 | MethodName: "GetLogicalOnuDistanceZero", |
| 1580 | Handler: _Openolt_GetLogicalOnuDistanceZero_Handler, |
| 1581 | }, |
| 1582 | { |
| 1583 | MethodName: "GetLogicalOnuDistance", |
| 1584 | Handler: _Openolt_GetLogicalOnuDistance_Handler, |
| 1585 | }, |
| 1586 | { |
| 1587 | MethodName: "GetPonRxPower", |
| 1588 | Handler: _Openolt_GetPonRxPower_Handler, |
| 1589 | }, |
| 1590 | { |
| 1591 | MethodName: "GetOnuInfo", |
| 1592 | Handler: _Openolt_GetOnuInfo_Handler, |
| 1593 | }, |
| 1594 | { |
| 1595 | MethodName: "GetPonInterfaceInfo", |
| 1596 | Handler: _Openolt_GetPonInterfaceInfo_Handler, |
| 1597 | }, |
| 1598 | { |
| 1599 | MethodName: "GetAllocIdStatistics", |
| 1600 | Handler: _Openolt_GetAllocIdStatistics_Handler, |
| 1601 | }, |
| 1602 | { |
| 1603 | MethodName: "GetPonPortStatistics", |
| 1604 | Handler: _Openolt_GetPonPortStatistics_Handler, |
| 1605 | }, |
| 1606 | { |
| 1607 | MethodName: "GetNniPortStatistics", |
| 1608 | Handler: _Openolt_GetNniPortStatistics_Handler, |
| 1609 | }, |
| 1610 | { |
| 1611 | MethodName: "DisableOnu", |
| 1612 | Handler: _Openolt_DisableOnu_Handler, |
| 1613 | }, |
| 1614 | { |
| 1615 | MethodName: "EnableOnu", |
| 1616 | Handler: _Openolt_EnableOnu_Handler, |
| 1617 | }, |
| 1618 | { |
| 1619 | MethodName: "DisableOnuSerialNumber", |
| 1620 | Handler: _Openolt_DisableOnuSerialNumber_Handler, |
| 1621 | }, |
| 1622 | { |
| 1623 | MethodName: "EnableOnuSerialNumber", |
| 1624 | Handler: _Openolt_EnableOnuSerialNumber_Handler, |
| 1625 | }, |
| 1626 | }, |
| 1627 | Streams: []grpc.StreamDesc{ |
| 1628 | { |
| 1629 | StreamName: "EnableIndication", |
| 1630 | Handler: _Openolt_EnableIndication_Handler, |
| 1631 | ServerStreams: true, |
| 1632 | }, |
| 1633 | }, |
| 1634 | Metadata: "voltha_protos/openolt.proto", |
| 1635 | } |