khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package common |
| 17 | |
| 18 | import ( |
| 19 | "errors" |
| 20 | "github.com/golang/protobuf/ptypes" |
| 21 | "github.com/golang/protobuf/ptypes/empty" |
| 22 | "github.com/opencord/voltha-go/adapters" |
| 23 | "github.com/opencord/voltha-go/common/log" |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 24 | "github.com/opencord/voltha-go/kafka" |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 25 | ic "github.com/opencord/voltha-protos/go/inter_container" |
khenaidoo | 2c6a099 | 2019-04-29 13:46:56 -0400 | [diff] [blame] | 26 | "github.com/opencord/voltha-protos/go/openflow_13" |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 27 | "github.com/opencord/voltha-protos/go/voltha" |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 28 | "google.golang.org/grpc/codes" |
| 29 | "google.golang.org/grpc/status" |
| 30 | ) |
| 31 | |
| 32 | type RequestHandlerProxy struct { |
| 33 | TestMode bool |
| 34 | coreInstanceId string |
| 35 | adapter adapters.IAdapter |
khenaidoo | 2c6a099 | 2019-04-29 13:46:56 -0400 | [diff] [blame] | 36 | coreProxy *CoreProxy |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 37 | } |
| 38 | |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 39 | func NewRequestHandlerProxy(coreInstanceId string, iadapter adapters.IAdapter, cProxy *CoreProxy) *RequestHandlerProxy { |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 40 | var proxy RequestHandlerProxy |
| 41 | proxy.coreInstanceId = coreInstanceId |
| 42 | proxy.adapter = iadapter |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 43 | proxy.coreProxy = cProxy |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 44 | return &proxy |
| 45 | } |
| 46 | |
| 47 | func (rhp *RequestHandlerProxy) Adapter_descriptor() (*empty.Empty, error) { |
| 48 | return new(empty.Empty), nil |
| 49 | } |
| 50 | |
| 51 | func (rhp *RequestHandlerProxy) Device_types() (*voltha.DeviceTypes, error) { |
| 52 | return nil, nil |
| 53 | } |
| 54 | |
| 55 | func (rhp *RequestHandlerProxy) Health() (*voltha.HealthStatus, error) { |
| 56 | return nil, nil |
| 57 | } |
| 58 | |
| 59 | func (rhp *RequestHandlerProxy) Adopt_device(args []*ic.Argument) (*empty.Empty, error) { |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 60 | if len(args) < 3 { |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 61 | log.Warn("invalid-number-of-args", log.Fields{"args": args}) |
| 62 | err := errors.New("invalid-number-of-args") |
| 63 | return nil, err |
| 64 | } |
| 65 | device := &voltha.Device{} |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 66 | transactionID := &ic.StrType{} |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 67 | fromTopic := &ic.StrType{} |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 68 | for _, arg := range args { |
| 69 | switch arg.Key { |
| 70 | case "device": |
| 71 | if err := ptypes.UnmarshalAny(arg.Value, device); err != nil { |
| 72 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 73 | return nil, err |
| 74 | } |
| 75 | case kafka.TransactionKey: |
| 76 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 77 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 78 | return nil, err |
| 79 | } |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 80 | case kafka.FromTopic: |
| 81 | if err := ptypes.UnmarshalAny(arg.Value, fromTopic); err != nil { |
| 82 | log.Warnw("cannot-unmarshal-from-topic", log.Fields{"error": err}) |
| 83 | return nil, err |
| 84 | } |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 85 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 86 | } |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 87 | |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 88 | log.Debugw("Adopt_device", log.Fields{"deviceId": device.Id}) |
| 89 | |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 90 | //Update the core reference for that device |
| 91 | rhp.coreProxy.UpdateCoreReference(device.Id, fromTopic.Val) |
| 92 | |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 93 | //Invoke the adopt device on the adapter |
| 94 | if err := rhp.adapter.Adopt_device(device); err != nil { |
| 95 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 96 | } |
| 97 | |
| 98 | return new(empty.Empty), nil |
| 99 | } |
| 100 | |
| 101 | func (rhp *RequestHandlerProxy) Reconcile_device(args []*ic.Argument) (*empty.Empty, error) { |
| 102 | return new(empty.Empty), nil |
| 103 | } |
| 104 | |
| 105 | func (rhp *RequestHandlerProxy) Abandon_device(args []*ic.Argument) (*empty.Empty, error) { |
| 106 | return new(empty.Empty), nil |
| 107 | } |
| 108 | |
| 109 | func (rhp *RequestHandlerProxy) Disable_device(args []*ic.Argument) (*empty.Empty, error) { |
khenaidoo | 3ab3488 | 2019-05-02 21:33:30 -0400 | [diff] [blame] | 110 | if len(args) < 3 { |
| 111 | log.Warn("invalid-number-of-args", log.Fields{"args": args}) |
| 112 | err := errors.New("invalid-number-of-args") |
| 113 | return nil, err |
| 114 | } |
| 115 | |
| 116 | device := &voltha.Device{} |
| 117 | transactionID := &ic.StrType{} |
| 118 | fromTopic := &ic.StrType{} |
| 119 | for _, arg := range args { |
| 120 | switch arg.Key { |
| 121 | case "device": |
| 122 | if err := ptypes.UnmarshalAny(arg.Value, device); err != nil { |
| 123 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 124 | return nil, err |
| 125 | } |
| 126 | case kafka.TransactionKey: |
| 127 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 128 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 129 | return nil, err |
| 130 | } |
| 131 | case kafka.FromTopic: |
| 132 | if err := ptypes.UnmarshalAny(arg.Value, fromTopic); err != nil { |
| 133 | log.Warnw("cannot-unmarshal-from-topic", log.Fields{"error": err}) |
| 134 | return nil, err |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | //Update the core reference for that device |
| 139 | rhp.coreProxy.UpdateCoreReference(device.Id, fromTopic.Val) |
| 140 | //Invoke the Disable_device API on the adapter |
| 141 | if err := rhp.adapter.Disable_device(device); err != nil { |
| 142 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 143 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 144 | return new(empty.Empty), nil |
| 145 | } |
| 146 | |
| 147 | func (rhp *RequestHandlerProxy) Reenable_device(args []*ic.Argument) (*empty.Empty, error) { |
khenaidoo | 3ab3488 | 2019-05-02 21:33:30 -0400 | [diff] [blame] | 148 | if len(args) < 3 { |
| 149 | log.Warn("invalid-number-of-args", log.Fields{"args": args}) |
| 150 | err := errors.New("invalid-number-of-args") |
| 151 | return nil, err |
| 152 | } |
| 153 | |
| 154 | device := &voltha.Device{} |
| 155 | transactionID := &ic.StrType{} |
| 156 | fromTopic := &ic.StrType{} |
| 157 | for _, arg := range args { |
| 158 | switch arg.Key { |
| 159 | case "device": |
| 160 | if err := ptypes.UnmarshalAny(arg.Value, device); err != nil { |
| 161 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 162 | return nil, err |
| 163 | } |
| 164 | case kafka.TransactionKey: |
| 165 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 166 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 167 | return nil, err |
| 168 | } |
| 169 | case kafka.FromTopic: |
| 170 | if err := ptypes.UnmarshalAny(arg.Value, fromTopic); err != nil { |
| 171 | log.Warnw("cannot-unmarshal-from-topic", log.Fields{"error": err}) |
| 172 | return nil, err |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 | //Update the core reference for that device |
| 177 | rhp.coreProxy.UpdateCoreReference(device.Id, fromTopic.Val) |
| 178 | //Invoke the Reenable_device API on the adapter |
| 179 | if err := rhp.adapter.Reenable_device(device); err != nil { |
| 180 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 181 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 182 | return new(empty.Empty), nil |
| 183 | } |
| 184 | |
| 185 | func (rhp *RequestHandlerProxy) Reboot_device(args []*ic.Argument) (*empty.Empty, error) { |
| 186 | return new(empty.Empty), nil |
| 187 | } |
| 188 | |
| 189 | func (rhp *RequestHandlerProxy) Self_test_device(args []*ic.Argument) (*empty.Empty, error) { |
| 190 | return new(empty.Empty), nil |
| 191 | } |
| 192 | |
| 193 | func (rhp *RequestHandlerProxy) Delete_device(args []*ic.Argument) (*empty.Empty, error) { |
| 194 | return new(empty.Empty), nil |
| 195 | } |
| 196 | |
| 197 | func (rhp *RequestHandlerProxy) Get_device_details(args []*ic.Argument) (*empty.Empty, error) { |
| 198 | return new(empty.Empty), nil |
| 199 | } |
| 200 | |
| 201 | func (rhp *RequestHandlerProxy) Update_flows_bulk(args []*ic.Argument) (*empty.Empty, error) { |
| 202 | return new(empty.Empty), nil |
| 203 | } |
| 204 | |
| 205 | func (rhp *RequestHandlerProxy) Update_flows_incrementally(args []*ic.Argument) (*empty.Empty, error) { |
khenaidoo | 2c6a099 | 2019-04-29 13:46:56 -0400 | [diff] [blame] | 206 | log.Debug("Update_flows_incrementally") |
mkoodali | 252f767 | 2019-03-25 12:13:12 +0530 | [diff] [blame] | 207 | if len(args) < 3 { |
| 208 | log.Warn("Update_flows_incrementally-invalid-number-of-args", log.Fields{"args": args}) |
| 209 | err := errors.New("invalid-number-of-args") |
| 210 | return nil, err |
| 211 | } |
| 212 | device := &voltha.Device{} |
| 213 | transactionID := &ic.StrType{} |
khenaidoo | 2c6a099 | 2019-04-29 13:46:56 -0400 | [diff] [blame] | 214 | flows := &openflow_13.FlowChanges{} |
| 215 | groups := &openflow_13.FlowGroupChanges{} |
mkoodali | 252f767 | 2019-03-25 12:13:12 +0530 | [diff] [blame] | 216 | for _, arg := range args { |
| 217 | switch arg.Key { |
| 218 | case "device": |
| 219 | if err := ptypes.UnmarshalAny(arg.Value, device); err != nil { |
| 220 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 221 | return nil, err |
| 222 | } |
| 223 | case "flow_changes": |
| 224 | if err := ptypes.UnmarshalAny(arg.Value, flows); err != nil { |
| 225 | log.Warnw("cannot-unmarshal-flows", log.Fields{"error": err}) |
| 226 | return nil, err |
| 227 | } |
| 228 | case "group_changes": |
| 229 | if err := ptypes.UnmarshalAny(arg.Value, groups); err != nil { |
| 230 | log.Warnw("cannot-unmarshal-groups", log.Fields{"error": err}) |
| 231 | return nil, err |
| 232 | } |
| 233 | case kafka.TransactionKey: |
| 234 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 235 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 236 | return nil, err |
| 237 | } |
| 238 | } |
| 239 | } |
khenaidoo | 2c6a099 | 2019-04-29 13:46:56 -0400 | [diff] [blame] | 240 | log.Debugw("Update_flows_incrementally", log.Fields{"flows": flows, "groups": groups}) |
| 241 | //Invoke the adopt device on the adapter |
| 242 | if err := rhp.adapter.Update_flows_incrementally(device, flows, groups); err != nil { |
| 243 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 244 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 245 | return new(empty.Empty), nil |
| 246 | } |
| 247 | |
| 248 | func (rhp *RequestHandlerProxy) Update_pm_config(args []*ic.Argument) (*empty.Empty, error) { |
| 249 | return new(empty.Empty), nil |
| 250 | } |
| 251 | |
| 252 | func (rhp *RequestHandlerProxy) Receive_packet_out(args []*ic.Argument) (*empty.Empty, error) { |
| 253 | return new(empty.Empty), nil |
| 254 | } |
| 255 | |
| 256 | func (rhp *RequestHandlerProxy) Suppress_alarm(args []*ic.Argument) (*empty.Empty, error) { |
| 257 | return new(empty.Empty), nil |
| 258 | } |
| 259 | |
| 260 | func (rhp *RequestHandlerProxy) Unsuppress_alarm(args []*ic.Argument) (*empty.Empty, error) { |
| 261 | return new(empty.Empty), nil |
| 262 | } |
| 263 | |
| 264 | func (rhp *RequestHandlerProxy) Get_ofp_device_info(args []*ic.Argument) (*ic.SwitchCapability, error) { |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 265 | if len(args) < 2 { |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 266 | log.Warn("invalid-number-of-args", log.Fields{"args": args}) |
| 267 | err := errors.New("invalid-number-of-args") |
| 268 | return nil, err |
| 269 | } |
| 270 | device := &voltha.Device{} |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 271 | transactionID := &ic.StrType{} |
| 272 | for _, arg := range args { |
| 273 | switch arg.Key { |
| 274 | case "device": |
| 275 | if err := ptypes.UnmarshalAny(arg.Value, device); err != nil { |
| 276 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 277 | return nil, err |
| 278 | } |
| 279 | case kafka.TransactionKey: |
| 280 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 281 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 282 | return nil, err |
| 283 | } |
| 284 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 285 | } |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 286 | |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 287 | log.Debugw("Get_ofp_device_info", log.Fields{"deviceId": device.Id}) |
| 288 | |
| 289 | var cap *ic.SwitchCapability |
| 290 | var err error |
| 291 | if cap, err = rhp.adapter.Get_ofp_device_info(device); err != nil { |
| 292 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 293 | } |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 294 | log.Debugw("Get_ofp_device_info", log.Fields{"cap": cap}) |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 295 | return cap, nil |
| 296 | } |
| 297 | |
| 298 | func (rhp *RequestHandlerProxy) Get_ofp_port_info(args []*ic.Argument) (*ic.PortCapability, error) { |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 299 | if len(args) < 3 { |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 300 | log.Warn("invalid-number-of-args", log.Fields{"args": args}) |
| 301 | err := errors.New("invalid-number-of-args") |
| 302 | return nil, err |
| 303 | } |
| 304 | device := &voltha.Device{} |
| 305 | pNo := &ic.IntType{} |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 306 | transactionID := &ic.StrType{} |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 307 | for _, arg := range args { |
| 308 | switch arg.Key { |
| 309 | case "device": |
| 310 | if err := ptypes.UnmarshalAny(arg.Value, device); err != nil { |
| 311 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 312 | return nil, err |
| 313 | } |
| 314 | case "port_no": |
| 315 | if err := ptypes.UnmarshalAny(arg.Value, pNo); err != nil { |
| 316 | log.Warnw("cannot-unmarshal-port-no", log.Fields{"error": err}) |
| 317 | return nil, err |
| 318 | } |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 319 | case kafka.TransactionKey: |
| 320 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 321 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 322 | return nil, err |
| 323 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 324 | } |
| 325 | } |
| 326 | log.Debugw("Get_ofp_port_info", log.Fields{"deviceId": device.Id, "portNo": pNo.Val}) |
| 327 | var cap *ic.PortCapability |
| 328 | var err error |
| 329 | if cap, err = rhp.adapter.Get_ofp_port_info(device, pNo.Val); err != nil { |
| 330 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 331 | } |
| 332 | return cap, nil |
| 333 | } |
| 334 | |
| 335 | func (rhp *RequestHandlerProxy) Process_inter_adapter_message(args []*ic.Argument) (*empty.Empty, error) { |
khenaidoo | 54e0ddf | 2019-02-27 16:21:33 -0500 | [diff] [blame] | 336 | if len(args) < 2 { |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 337 | log.Warn("invalid-number-of-args", log.Fields{"args": args}) |
| 338 | err := errors.New("invalid-number-of-args") |
| 339 | return nil, err |
| 340 | } |
| 341 | iaMsg := &ic.InterAdapterMessage{} |
khenaidoo | 6d05513 | 2019-02-12 16:51:19 -0500 | [diff] [blame] | 342 | transactionID := &ic.StrType{} |
| 343 | for _, arg := range args { |
| 344 | switch arg.Key { |
| 345 | case "msg": |
| 346 | if err := ptypes.UnmarshalAny(arg.Value, iaMsg); err != nil { |
| 347 | log.Warnw("cannot-unmarshal-device", log.Fields{"error": err}) |
| 348 | return nil, err |
| 349 | } |
| 350 | case kafka.TransactionKey: |
| 351 | if err := ptypes.UnmarshalAny(arg.Value, transactionID); err != nil { |
| 352 | log.Warnw("cannot-unmarshal-transaction-ID", log.Fields{"error": err}) |
| 353 | return nil, err |
| 354 | } |
| 355 | } |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 356 | } |
| 357 | |
| 358 | log.Debugw("Process_inter_adapter_message", log.Fields{"msgId": iaMsg.Header.Id}) |
| 359 | |
| 360 | //Invoke the inter adapter API on the handler |
| 361 | if err := rhp.adapter.Process_inter_adapter_message(iaMsg); err != nil { |
| 362 | return nil, status.Errorf(codes.NotFound, "%s", err.Error()) |
| 363 | } |
| 364 | |
| 365 | return new(empty.Empty), nil |
| 366 | } |
| 367 | |
khenaidoo | f5a5bfa | 2019-01-23 22:20:29 -0500 | [diff] [blame] | 368 | func (rhp *RequestHandlerProxy) Download_image(args []*ic.Argument) (*voltha.ImageDownload, error) { |
| 369 | return &voltha.ImageDownload{}, nil |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 370 | } |
| 371 | |
khenaidoo | f5a5bfa | 2019-01-23 22:20:29 -0500 | [diff] [blame] | 372 | func (rhp *RequestHandlerProxy) Get_image_download_status(args []*ic.Argument) (*voltha.ImageDownload, error) { |
| 373 | return &voltha.ImageDownload{}, nil |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 374 | } |
| 375 | |
khenaidoo | f5a5bfa | 2019-01-23 22:20:29 -0500 | [diff] [blame] | 376 | func (rhp *RequestHandlerProxy) Cancel_image_download(args []*ic.Argument) (*voltha.ImageDownload, error) { |
| 377 | return &voltha.ImageDownload{}, nil |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 378 | } |
| 379 | |
khenaidoo | f5a5bfa | 2019-01-23 22:20:29 -0500 | [diff] [blame] | 380 | func (rhp *RequestHandlerProxy) Activate_image_update(args []*ic.Argument) (*voltha.ImageDownload, error) { |
| 381 | return &voltha.ImageDownload{}, nil |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 382 | } |
| 383 | |
khenaidoo | f5a5bfa | 2019-01-23 22:20:29 -0500 | [diff] [blame] | 384 | func (rhp *RequestHandlerProxy) Revert_image_update(args []*ic.Argument) (*voltha.ImageDownload, error) { |
| 385 | return &voltha.ImageDownload{}, nil |
khenaidoo | d2b6df9 | 2018-12-13 16:37:20 -0500 | [diff] [blame] | 386 | } |