Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. |
| 2 | // source: api/bbsim/bbsim.proto |
| 3 | |
| 4 | /* |
| 5 | Package bbsim is a reverse proxy. |
| 6 | |
| 7 | It translates gRPC into RESTful JSON APIs. |
| 8 | */ |
| 9 | package bbsim |
| 10 | |
| 11 | import ( |
| 12 | "context" |
| 13 | "io" |
| 14 | "net/http" |
| 15 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 16 | "github.com/golang/protobuf/descriptor" |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 17 | "github.com/golang/protobuf/proto" |
| 18 | "github.com/grpc-ecosystem/grpc-gateway/runtime" |
| 19 | "github.com/grpc-ecosystem/grpc-gateway/utilities" |
| 20 | "google.golang.org/grpc" |
| 21 | "google.golang.org/grpc/codes" |
| 22 | "google.golang.org/grpc/grpclog" |
| 23 | "google.golang.org/grpc/status" |
| 24 | ) |
| 25 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 26 | // Suppress "imported and not used" errors |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 27 | var _ codes.Code |
| 28 | var _ io.Reader |
| 29 | var _ status.Status |
| 30 | var _ = runtime.String |
| 31 | var _ = utilities.NewDoubleArray |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 32 | var _ = descriptor.ForMessage |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 33 | |
| 34 | func request_BBSim_Version_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 35 | var protoReq Empty |
| 36 | var metadata runtime.ServerMetadata |
| 37 | |
| 38 | msg, err := client.Version(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 39 | return msg, metadata, err |
| 40 | |
| 41 | } |
| 42 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 43 | func local_request_BBSim_Version_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 44 | var protoReq Empty |
| 45 | var metadata runtime.ServerMetadata |
| 46 | |
| 47 | msg, err := server.Version(ctx, &protoReq) |
| 48 | return msg, metadata, err |
| 49 | |
| 50 | } |
| 51 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 52 | func request_BBSim_GetOlt_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 53 | var protoReq Empty |
| 54 | var metadata runtime.ServerMetadata |
| 55 | |
| 56 | msg, err := client.GetOlt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 57 | return msg, metadata, err |
| 58 | |
| 59 | } |
| 60 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 61 | func local_request_BBSim_GetOlt_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 62 | var protoReq Empty |
| 63 | var metadata runtime.ServerMetadata |
| 64 | |
| 65 | msg, err := server.GetOlt(ctx, &protoReq) |
| 66 | return msg, metadata, err |
| 67 | |
| 68 | } |
| 69 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 70 | func request_BBSim_GetOlt_1(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 71 | var protoReq Empty |
| 72 | var metadata runtime.ServerMetadata |
| 73 | |
| 74 | msg, err := client.GetOlt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 75 | return msg, metadata, err |
| 76 | |
| 77 | } |
| 78 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 79 | func local_request_BBSim_GetOlt_1(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 80 | var protoReq Empty |
| 81 | var metadata runtime.ServerMetadata |
| 82 | |
| 83 | msg, err := server.GetOlt(ctx, &protoReq) |
| 84 | return msg, metadata, err |
| 85 | |
| 86 | } |
| 87 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 88 | func request_BBSim_GetONUs_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 89 | var protoReq Empty |
| 90 | var metadata runtime.ServerMetadata |
| 91 | |
| 92 | msg, err := client.GetONUs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 93 | return msg, metadata, err |
| 94 | |
| 95 | } |
| 96 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 97 | func local_request_BBSim_GetONUs_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 98 | var protoReq Empty |
| 99 | var metadata runtime.ServerMetadata |
| 100 | |
| 101 | msg, err := server.GetONUs(ctx, &protoReq) |
| 102 | return msg, metadata, err |
| 103 | |
| 104 | } |
| 105 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 106 | func request_BBSim_GetONU_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 107 | var protoReq ONURequest |
| 108 | var metadata runtime.ServerMetadata |
| 109 | |
| 110 | var ( |
| 111 | val string |
| 112 | ok bool |
| 113 | err error |
| 114 | _ = err |
| 115 | ) |
| 116 | |
| 117 | val, ok = pathParams["SerialNumber"] |
| 118 | if !ok { |
| 119 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 120 | } |
| 121 | |
| 122 | protoReq.SerialNumber, err = runtime.String(val) |
| 123 | |
| 124 | if err != nil { |
| 125 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 126 | } |
| 127 | |
| 128 | msg, err := client.GetONU(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 129 | return msg, metadata, err |
| 130 | |
| 131 | } |
| 132 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 133 | func local_request_BBSim_GetONU_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 134 | var protoReq ONURequest |
| 135 | var metadata runtime.ServerMetadata |
| 136 | |
| 137 | var ( |
| 138 | val string |
| 139 | ok bool |
| 140 | err error |
| 141 | _ = err |
| 142 | ) |
| 143 | |
| 144 | val, ok = pathParams["SerialNumber"] |
| 145 | if !ok { |
| 146 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 147 | } |
| 148 | |
| 149 | protoReq.SerialNumber, err = runtime.String(val) |
| 150 | |
| 151 | if err != nil { |
| 152 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 153 | } |
| 154 | |
| 155 | msg, err := server.GetONU(ctx, &protoReq) |
| 156 | return msg, metadata, err |
| 157 | |
| 158 | } |
| 159 | |
| 160 | func request_BBSim_ShutdownONU_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 161 | var protoReq ONURequest |
| 162 | var metadata runtime.ServerMetadata |
| 163 | |
| 164 | var ( |
| 165 | val string |
| 166 | ok bool |
| 167 | err error |
| 168 | _ = err |
| 169 | ) |
| 170 | |
| 171 | val, ok = pathParams["SerialNumber"] |
| 172 | if !ok { |
| 173 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 174 | } |
| 175 | |
| 176 | protoReq.SerialNumber, err = runtime.String(val) |
| 177 | |
| 178 | if err != nil { |
| 179 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 180 | } |
| 181 | |
| 182 | msg, err := client.ShutdownONU(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 183 | return msg, metadata, err |
| 184 | |
| 185 | } |
| 186 | |
| 187 | func local_request_BBSim_ShutdownONU_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 188 | var protoReq ONURequest |
| 189 | var metadata runtime.ServerMetadata |
| 190 | |
| 191 | var ( |
| 192 | val string |
| 193 | ok bool |
| 194 | err error |
| 195 | _ = err |
| 196 | ) |
| 197 | |
| 198 | val, ok = pathParams["SerialNumber"] |
| 199 | if !ok { |
| 200 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 201 | } |
| 202 | |
| 203 | protoReq.SerialNumber, err = runtime.String(val) |
| 204 | |
| 205 | if err != nil { |
| 206 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 207 | } |
| 208 | |
| 209 | msg, err := server.ShutdownONU(ctx, &protoReq) |
| 210 | return msg, metadata, err |
| 211 | |
| 212 | } |
| 213 | |
| 214 | func request_BBSim_PoweronONU_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 215 | var protoReq ONURequest |
| 216 | var metadata runtime.ServerMetadata |
| 217 | |
| 218 | var ( |
| 219 | val string |
| 220 | ok bool |
| 221 | err error |
| 222 | _ = err |
| 223 | ) |
| 224 | |
| 225 | val, ok = pathParams["SerialNumber"] |
| 226 | if !ok { |
| 227 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 228 | } |
| 229 | |
| 230 | protoReq.SerialNumber, err = runtime.String(val) |
| 231 | |
| 232 | if err != nil { |
| 233 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 234 | } |
| 235 | |
| 236 | msg, err := client.PoweronONU(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 237 | return msg, metadata, err |
| 238 | |
| 239 | } |
| 240 | |
| 241 | func local_request_BBSim_PoweronONU_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 242 | var protoReq ONURequest |
| 243 | var metadata runtime.ServerMetadata |
| 244 | |
| 245 | var ( |
| 246 | val string |
| 247 | ok bool |
| 248 | err error |
| 249 | _ = err |
| 250 | ) |
| 251 | |
| 252 | val, ok = pathParams["SerialNumber"] |
| 253 | if !ok { |
| 254 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 255 | } |
| 256 | |
| 257 | protoReq.SerialNumber, err = runtime.String(val) |
| 258 | |
| 259 | if err != nil { |
| 260 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 261 | } |
| 262 | |
| 263 | msg, err := server.PoweronONU(ctx, &protoReq) |
| 264 | return msg, metadata, err |
| 265 | |
| 266 | } |
| 267 | |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 268 | var ( |
| 269 | filter_BBSim_SetAlarmIndication_0 = &utilities.DoubleArray{Encoding: map[string]int{"SerialNumber": 0, "AlarmType": 1, "Status": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} |
| 270 | ) |
| 271 | |
| 272 | func request_BBSim_SetAlarmIndication_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 273 | var protoReq AlarmRequest |
| 274 | var metadata runtime.ServerMetadata |
| 275 | |
| 276 | var ( |
| 277 | val string |
| 278 | ok bool |
| 279 | err error |
| 280 | _ = err |
| 281 | ) |
| 282 | |
| 283 | val, ok = pathParams["SerialNumber"] |
| 284 | if !ok { |
| 285 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 286 | } |
| 287 | |
| 288 | protoReq.SerialNumber, err = runtime.String(val) |
| 289 | |
| 290 | if err != nil { |
| 291 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 292 | } |
| 293 | |
| 294 | val, ok = pathParams["AlarmType"] |
| 295 | if !ok { |
| 296 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "AlarmType") |
| 297 | } |
| 298 | |
| 299 | protoReq.AlarmType, err = runtime.String(val) |
| 300 | |
| 301 | if err != nil { |
| 302 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "AlarmType", err) |
| 303 | } |
| 304 | |
| 305 | val, ok = pathParams["Status"] |
| 306 | if !ok { |
| 307 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Status") |
| 308 | } |
| 309 | |
| 310 | protoReq.Status, err = runtime.String(val) |
| 311 | |
| 312 | if err != nil { |
| 313 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Status", err) |
| 314 | } |
| 315 | |
| 316 | if err := req.ParseForm(); err != nil { |
| 317 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 318 | } |
| 319 | if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BBSim_SetAlarmIndication_0); err != nil { |
| 320 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 321 | } |
| 322 | |
| 323 | msg, err := client.SetAlarmIndication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 324 | return msg, metadata, err |
| 325 | |
| 326 | } |
| 327 | |
| 328 | func local_request_BBSim_SetAlarmIndication_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 329 | var protoReq AlarmRequest |
| 330 | var metadata runtime.ServerMetadata |
| 331 | |
| 332 | var ( |
| 333 | val string |
| 334 | ok bool |
| 335 | err error |
| 336 | _ = err |
| 337 | ) |
| 338 | |
| 339 | val, ok = pathParams["SerialNumber"] |
| 340 | if !ok { |
| 341 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 342 | } |
| 343 | |
| 344 | protoReq.SerialNumber, err = runtime.String(val) |
| 345 | |
| 346 | if err != nil { |
| 347 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 348 | } |
| 349 | |
| 350 | val, ok = pathParams["AlarmType"] |
| 351 | if !ok { |
| 352 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "AlarmType") |
| 353 | } |
| 354 | |
| 355 | protoReq.AlarmType, err = runtime.String(val) |
| 356 | |
| 357 | if err != nil { |
| 358 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "AlarmType", err) |
| 359 | } |
| 360 | |
| 361 | val, ok = pathParams["Status"] |
| 362 | if !ok { |
| 363 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Status") |
| 364 | } |
| 365 | |
| 366 | protoReq.Status, err = runtime.String(val) |
| 367 | |
| 368 | if err != nil { |
| 369 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Status", err) |
| 370 | } |
| 371 | |
| 372 | if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_BBSim_SetAlarmIndication_0); err != nil { |
| 373 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 374 | } |
| 375 | |
| 376 | msg, err := server.SetAlarmIndication(ctx, &protoReq) |
| 377 | return msg, metadata, err |
| 378 | |
| 379 | } |
| 380 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 381 | func request_BBSim_GetOnuTrafficSchedulers_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 382 | var protoReq ONURequest |
| 383 | var metadata runtime.ServerMetadata |
| 384 | |
| 385 | var ( |
| 386 | val string |
| 387 | ok bool |
| 388 | err error |
| 389 | _ = err |
| 390 | ) |
| 391 | |
| 392 | val, ok = pathParams["SerialNumber"] |
| 393 | if !ok { |
| 394 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 395 | } |
| 396 | |
| 397 | protoReq.SerialNumber, err = runtime.String(val) |
| 398 | |
| 399 | if err != nil { |
| 400 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 401 | } |
| 402 | |
| 403 | msg, err := client.GetOnuTrafficSchedulers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 404 | return msg, metadata, err |
| 405 | |
| 406 | } |
| 407 | |
| 408 | func local_request_BBSim_GetOnuTrafficSchedulers_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 409 | var protoReq ONURequest |
| 410 | var metadata runtime.ServerMetadata |
| 411 | |
| 412 | var ( |
| 413 | val string |
| 414 | ok bool |
| 415 | err error |
| 416 | _ = err |
| 417 | ) |
| 418 | |
| 419 | val, ok = pathParams["SerialNumber"] |
| 420 | if !ok { |
| 421 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 422 | } |
| 423 | |
| 424 | protoReq.SerialNumber, err = runtime.String(val) |
| 425 | |
| 426 | if err != nil { |
| 427 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 428 | } |
| 429 | |
| 430 | msg, err := server.GetOnuTrafficSchedulers(ctx, &protoReq) |
| 431 | return msg, metadata, err |
| 432 | |
| 433 | } |
| 434 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 435 | // RegisterBBSimHandlerServer registers the http handlers for service BBSim to "mux". |
| 436 | // UnaryRPC :call BBSimServer directly. |
| 437 | // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. |
| 438 | func RegisterBBSimHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BBSimServer) error { |
| 439 | |
| 440 | mux.Handle("GET", pattern_BBSim_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 441 | ctx, cancel := context.WithCancel(req.Context()) |
| 442 | defer cancel() |
| 443 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 444 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 445 | if err != nil { |
| 446 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 447 | return |
| 448 | } |
| 449 | resp, md, err := local_request_BBSim_Version_0(rctx, inboundMarshaler, server, req, pathParams) |
| 450 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 451 | if err != nil { |
| 452 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 453 | return |
| 454 | } |
| 455 | |
| 456 | forward_BBSim_Version_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 457 | |
| 458 | }) |
| 459 | |
| 460 | mux.Handle("GET", pattern_BBSim_GetOlt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 461 | ctx, cancel := context.WithCancel(req.Context()) |
| 462 | defer cancel() |
| 463 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 464 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 465 | if err != nil { |
| 466 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 467 | return |
| 468 | } |
| 469 | resp, md, err := local_request_BBSim_GetOlt_0(rctx, inboundMarshaler, server, req, pathParams) |
| 470 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 471 | if err != nil { |
| 472 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 473 | return |
| 474 | } |
| 475 | |
| 476 | forward_BBSim_GetOlt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 477 | |
| 478 | }) |
| 479 | |
| 480 | mux.Handle("GET", pattern_BBSim_GetOlt_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 481 | ctx, cancel := context.WithCancel(req.Context()) |
| 482 | defer cancel() |
| 483 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 484 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 485 | if err != nil { |
| 486 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 487 | return |
| 488 | } |
| 489 | resp, md, err := local_request_BBSim_GetOlt_1(rctx, inboundMarshaler, server, req, pathParams) |
| 490 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 491 | if err != nil { |
| 492 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 493 | return |
| 494 | } |
| 495 | |
| 496 | forward_BBSim_GetOlt_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 497 | |
| 498 | }) |
| 499 | |
| 500 | mux.Handle("GET", pattern_BBSim_GetONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 501 | ctx, cancel := context.WithCancel(req.Context()) |
| 502 | defer cancel() |
| 503 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 504 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 505 | if err != nil { |
| 506 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 507 | return |
| 508 | } |
| 509 | resp, md, err := local_request_BBSim_GetONUs_0(rctx, inboundMarshaler, server, req, pathParams) |
| 510 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 511 | if err != nil { |
| 512 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 513 | return |
| 514 | } |
| 515 | |
| 516 | forward_BBSim_GetONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 517 | |
| 518 | }) |
| 519 | |
| 520 | mux.Handle("GET", pattern_BBSim_GetONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 521 | ctx, cancel := context.WithCancel(req.Context()) |
| 522 | defer cancel() |
| 523 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 524 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 525 | if err != nil { |
| 526 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 527 | return |
| 528 | } |
| 529 | resp, md, err := local_request_BBSim_GetONU_0(rctx, inboundMarshaler, server, req, pathParams) |
| 530 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 531 | if err != nil { |
| 532 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 533 | return |
| 534 | } |
| 535 | |
| 536 | forward_BBSim_GetONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 537 | |
| 538 | }) |
| 539 | |
| 540 | mux.Handle("DELETE", pattern_BBSim_ShutdownONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 541 | ctx, cancel := context.WithCancel(req.Context()) |
| 542 | defer cancel() |
| 543 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 544 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 545 | if err != nil { |
| 546 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 547 | return |
| 548 | } |
| 549 | resp, md, err := local_request_BBSim_ShutdownONU_0(rctx, inboundMarshaler, server, req, pathParams) |
| 550 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 551 | if err != nil { |
| 552 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 553 | return |
| 554 | } |
| 555 | |
| 556 | forward_BBSim_ShutdownONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 557 | |
| 558 | }) |
| 559 | |
| 560 | mux.Handle("POST", pattern_BBSim_PoweronONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 561 | ctx, cancel := context.WithCancel(req.Context()) |
| 562 | defer cancel() |
| 563 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 564 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 565 | if err != nil { |
| 566 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 567 | return |
| 568 | } |
| 569 | resp, md, err := local_request_BBSim_PoweronONU_0(rctx, inboundMarshaler, server, req, pathParams) |
| 570 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 571 | if err != nil { |
| 572 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 573 | return |
| 574 | } |
| 575 | |
| 576 | forward_BBSim_PoweronONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 577 | |
| 578 | }) |
| 579 | |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 580 | mux.Handle("POST", pattern_BBSim_SetAlarmIndication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 581 | ctx, cancel := context.WithCancel(req.Context()) |
| 582 | defer cancel() |
| 583 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 584 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 585 | if err != nil { |
| 586 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 587 | return |
| 588 | } |
| 589 | resp, md, err := local_request_BBSim_SetAlarmIndication_0(rctx, inboundMarshaler, server, req, pathParams) |
| 590 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 591 | if err != nil { |
| 592 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 593 | return |
| 594 | } |
| 595 | |
| 596 | forward_BBSim_SetAlarmIndication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 597 | |
| 598 | }) |
| 599 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 600 | mux.Handle("GET", pattern_BBSim_GetOnuTrafficSchedulers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 601 | ctx, cancel := context.WithCancel(req.Context()) |
| 602 | defer cancel() |
| 603 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 604 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 605 | if err != nil { |
| 606 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 607 | return |
| 608 | } |
| 609 | resp, md, err := local_request_BBSim_GetOnuTrafficSchedulers_0(rctx, inboundMarshaler, server, req, pathParams) |
| 610 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 611 | if err != nil { |
| 612 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 613 | return |
| 614 | } |
| 615 | |
| 616 | forward_BBSim_GetOnuTrafficSchedulers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 617 | |
| 618 | }) |
| 619 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 620 | return nil |
| 621 | } |
| 622 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 623 | // RegisterBBSimHandlerFromEndpoint is same as RegisterBBSimHandler but |
| 624 | // automatically dials to "endpoint" and closes the connection when "ctx" gets done. |
| 625 | func RegisterBBSimHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { |
| 626 | conn, err := grpc.Dial(endpoint, opts...) |
| 627 | if err != nil { |
| 628 | return err |
| 629 | } |
| 630 | defer func() { |
| 631 | if err != nil { |
| 632 | if cerr := conn.Close(); cerr != nil { |
| 633 | grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) |
| 634 | } |
| 635 | return |
| 636 | } |
| 637 | go func() { |
| 638 | <-ctx.Done() |
| 639 | if cerr := conn.Close(); cerr != nil { |
| 640 | grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) |
| 641 | } |
| 642 | }() |
| 643 | }() |
| 644 | |
| 645 | return RegisterBBSimHandler(ctx, mux, conn) |
| 646 | } |
| 647 | |
| 648 | // RegisterBBSimHandler registers the http handlers for service BBSim to "mux". |
| 649 | // The handlers forward requests to the grpc endpoint over "conn". |
| 650 | func RegisterBBSimHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { |
| 651 | return RegisterBBSimHandlerClient(ctx, mux, NewBBSimClient(conn)) |
| 652 | } |
| 653 | |
| 654 | // RegisterBBSimHandlerClient registers the http handlers for service BBSim |
| 655 | // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BBSimClient". |
| 656 | // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BBSimClient" |
| 657 | // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in |
| 658 | // "BBSimClient" to call the correct interceptors. |
| 659 | func RegisterBBSimHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BBSimClient) error { |
| 660 | |
| 661 | mux.Handle("GET", pattern_BBSim_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 662 | ctx, cancel := context.WithCancel(req.Context()) |
| 663 | defer cancel() |
| 664 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 665 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 666 | if err != nil { |
| 667 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 668 | return |
| 669 | } |
| 670 | resp, md, err := request_BBSim_Version_0(rctx, inboundMarshaler, client, req, pathParams) |
| 671 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 672 | if err != nil { |
| 673 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 674 | return |
| 675 | } |
| 676 | |
| 677 | forward_BBSim_Version_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 678 | |
| 679 | }) |
| 680 | |
| 681 | mux.Handle("GET", pattern_BBSim_GetOlt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 682 | ctx, cancel := context.WithCancel(req.Context()) |
| 683 | defer cancel() |
| 684 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 685 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 686 | if err != nil { |
| 687 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 688 | return |
| 689 | } |
| 690 | resp, md, err := request_BBSim_GetOlt_0(rctx, inboundMarshaler, client, req, pathParams) |
| 691 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 692 | if err != nil { |
| 693 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 694 | return |
| 695 | } |
| 696 | |
| 697 | forward_BBSim_GetOlt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 698 | |
| 699 | }) |
| 700 | |
| 701 | mux.Handle("GET", pattern_BBSim_GetOlt_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 702 | ctx, cancel := context.WithCancel(req.Context()) |
| 703 | defer cancel() |
| 704 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 705 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 706 | if err != nil { |
| 707 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 708 | return |
| 709 | } |
| 710 | resp, md, err := request_BBSim_GetOlt_1(rctx, inboundMarshaler, client, req, pathParams) |
| 711 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 712 | if err != nil { |
| 713 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 714 | return |
| 715 | } |
| 716 | |
| 717 | forward_BBSim_GetOlt_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 718 | |
| 719 | }) |
| 720 | |
| 721 | mux.Handle("GET", pattern_BBSim_GetONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 722 | ctx, cancel := context.WithCancel(req.Context()) |
| 723 | defer cancel() |
| 724 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 725 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 726 | if err != nil { |
| 727 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 728 | return |
| 729 | } |
| 730 | resp, md, err := request_BBSim_GetONUs_0(rctx, inboundMarshaler, client, req, pathParams) |
| 731 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 732 | if err != nil { |
| 733 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 734 | return |
| 735 | } |
| 736 | |
| 737 | forward_BBSim_GetONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 738 | |
| 739 | }) |
| 740 | |
| 741 | mux.Handle("GET", pattern_BBSim_GetONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 742 | ctx, cancel := context.WithCancel(req.Context()) |
| 743 | defer cancel() |
| 744 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 745 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 746 | if err != nil { |
| 747 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 748 | return |
| 749 | } |
| 750 | resp, md, err := request_BBSim_GetONU_0(rctx, inboundMarshaler, client, req, pathParams) |
| 751 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 752 | if err != nil { |
| 753 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 754 | return |
| 755 | } |
| 756 | |
| 757 | forward_BBSim_GetONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 758 | |
| 759 | }) |
| 760 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 761 | mux.Handle("DELETE", pattern_BBSim_ShutdownONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 762 | ctx, cancel := context.WithCancel(req.Context()) |
| 763 | defer cancel() |
| 764 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 765 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 766 | if err != nil { |
| 767 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 768 | return |
| 769 | } |
| 770 | resp, md, err := request_BBSim_ShutdownONU_0(rctx, inboundMarshaler, client, req, pathParams) |
| 771 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 772 | if err != nil { |
| 773 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 774 | return |
| 775 | } |
| 776 | |
| 777 | forward_BBSim_ShutdownONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 778 | |
| 779 | }) |
| 780 | |
| 781 | mux.Handle("POST", pattern_BBSim_PoweronONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 782 | ctx, cancel := context.WithCancel(req.Context()) |
| 783 | defer cancel() |
| 784 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 785 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 786 | if err != nil { |
| 787 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 788 | return |
| 789 | } |
| 790 | resp, md, err := request_BBSim_PoweronONU_0(rctx, inboundMarshaler, client, req, pathParams) |
| 791 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 792 | if err != nil { |
| 793 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 794 | return |
| 795 | } |
| 796 | |
| 797 | forward_BBSim_PoweronONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 798 | |
| 799 | }) |
| 800 | |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 801 | mux.Handle("POST", pattern_BBSim_SetAlarmIndication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 802 | ctx, cancel := context.WithCancel(req.Context()) |
| 803 | defer cancel() |
| 804 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 805 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 806 | if err != nil { |
| 807 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 808 | return |
| 809 | } |
| 810 | resp, md, err := request_BBSim_SetAlarmIndication_0(rctx, inboundMarshaler, client, req, pathParams) |
| 811 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 812 | if err != nil { |
| 813 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 814 | return |
| 815 | } |
| 816 | |
| 817 | forward_BBSim_SetAlarmIndication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 818 | |
| 819 | }) |
| 820 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 821 | mux.Handle("GET", pattern_BBSim_GetOnuTrafficSchedulers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 822 | ctx, cancel := context.WithCancel(req.Context()) |
| 823 | defer cancel() |
| 824 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 825 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 826 | if err != nil { |
| 827 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 828 | return |
| 829 | } |
| 830 | resp, md, err := request_BBSim_GetOnuTrafficSchedulers_0(rctx, inboundMarshaler, client, req, pathParams) |
| 831 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 832 | if err != nil { |
| 833 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 834 | return |
| 835 | } |
| 836 | |
| 837 | forward_BBSim_GetOnuTrafficSchedulers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 838 | |
| 839 | }) |
| 840 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 841 | return nil |
| 842 | } |
| 843 | |
| 844 | var ( |
| 845 | pattern_BBSim_Version_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "version"}, "", runtime.AssumeColonVerbOpt(true))) |
| 846 | |
| 847 | pattern_BBSim_GetOlt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "olt"}, "", runtime.AssumeColonVerbOpt(true))) |
| 848 | |
| 849 | pattern_BBSim_GetOlt_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "status"}, "", runtime.AssumeColonVerbOpt(true))) |
| 850 | |
| 851 | pattern_BBSim_GetONUs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "onus"}, "", runtime.AssumeColonVerbOpt(true))) |
| 852 | |
| 853 | pattern_BBSim_GetONU_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "olt", "onus", "SerialNumber"}, "", runtime.AssumeColonVerbOpt(true))) |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 854 | |
| 855 | pattern_BBSim_ShutdownONU_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "olt", "onus", "SerialNumber"}, "", runtime.AssumeColonVerbOpt(true))) |
| 856 | |
| 857 | pattern_BBSim_PoweronONU_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "olt", "onus", "SerialNumber"}, "", runtime.AssumeColonVerbOpt(true))) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 858 | |
| 859 | pattern_BBSim_SetAlarmIndication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"v1", "olt", "onus", "SerialNumber", "alarms", "AlarmType", "Status"}, "", runtime.AssumeColonVerbOpt(true))) |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 860 | |
| 861 | pattern_BBSim_GetOnuTrafficSchedulers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "olt", "onus", "SerialNumber", "trafficschedulers"}, "", runtime.AssumeColonVerbOpt(true))) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 862 | ) |
| 863 | |
| 864 | var ( |
| 865 | forward_BBSim_Version_0 = runtime.ForwardResponseMessage |
| 866 | |
| 867 | forward_BBSim_GetOlt_0 = runtime.ForwardResponseMessage |
| 868 | |
| 869 | forward_BBSim_GetOlt_1 = runtime.ForwardResponseMessage |
| 870 | |
| 871 | forward_BBSim_GetONUs_0 = runtime.ForwardResponseMessage |
| 872 | |
| 873 | forward_BBSim_GetONU_0 = runtime.ForwardResponseMessage |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 874 | |
| 875 | forward_BBSim_ShutdownONU_0 = runtime.ForwardResponseMessage |
| 876 | |
| 877 | forward_BBSim_PoweronONU_0 = runtime.ForwardResponseMessage |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 878 | |
| 879 | forward_BBSim_SetAlarmIndication_0 = runtime.ForwardResponseMessage |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 880 | |
| 881 | forward_BBSim_GetOnuTrafficSchedulers_0 = runtime.ForwardResponseMessage |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 882 | ) |