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 | bd731ec | 2020-02-11 16:38:17 +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 | bd731ec | 2020-02-11 16:38:17 +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 | bd731ec | 2020-02-11 16:38:17 +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 | |
Pragya Arya | 3b2df8c | 2020-03-18 12:17:28 +0530 | [diff] [blame^] | 88 | func request_BBSim_RebootOlt_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.RebootOlt(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 93 | return msg, metadata, err |
| 94 | |
| 95 | } |
| 96 | |
| 97 | func local_request_BBSim_RebootOlt_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.RebootOlt(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 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 160 | 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) { |
| 161 | var protoReq Empty |
| 162 | var metadata runtime.ServerMetadata |
| 163 | |
| 164 | msg, err := client.GetONUs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 165 | return msg, metadata, err |
| 166 | |
| 167 | } |
| 168 | |
| 169 | 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) { |
| 170 | var protoReq Empty |
| 171 | var metadata runtime.ServerMetadata |
| 172 | |
| 173 | msg, err := server.GetONUs(ctx, &protoReq) |
| 174 | return msg, metadata, err |
| 175 | |
| 176 | } |
| 177 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 178 | 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) { |
| 179 | var protoReq ONURequest |
| 180 | var metadata runtime.ServerMetadata |
| 181 | |
| 182 | var ( |
| 183 | val string |
| 184 | ok bool |
| 185 | err error |
| 186 | _ = err |
| 187 | ) |
| 188 | |
| 189 | val, ok = pathParams["SerialNumber"] |
| 190 | if !ok { |
| 191 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 192 | } |
| 193 | |
| 194 | protoReq.SerialNumber, err = runtime.String(val) |
| 195 | |
| 196 | if err != nil { |
| 197 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 198 | } |
| 199 | |
| 200 | msg, err := client.ShutdownONU(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 201 | return msg, metadata, err |
| 202 | |
| 203 | } |
| 204 | |
| 205 | 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) { |
| 206 | var protoReq ONURequest |
| 207 | var metadata runtime.ServerMetadata |
| 208 | |
| 209 | var ( |
| 210 | val string |
| 211 | ok bool |
| 212 | err error |
| 213 | _ = err |
| 214 | ) |
| 215 | |
| 216 | val, ok = pathParams["SerialNumber"] |
| 217 | if !ok { |
| 218 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 219 | } |
| 220 | |
| 221 | protoReq.SerialNumber, err = runtime.String(val) |
| 222 | |
| 223 | if err != nil { |
| 224 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 225 | } |
| 226 | |
| 227 | msg, err := server.ShutdownONU(ctx, &protoReq) |
| 228 | return msg, metadata, err |
| 229 | |
| 230 | } |
| 231 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 232 | func request_BBSim_ShutdownAllONUs_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 233 | var protoReq Empty |
| 234 | var metadata runtime.ServerMetadata |
| 235 | |
| 236 | msg, err := client.ShutdownAllONUs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 237 | return msg, metadata, err |
| 238 | |
| 239 | } |
| 240 | |
| 241 | func local_request_BBSim_ShutdownAllONUs_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 242 | var protoReq Empty |
| 243 | var metadata runtime.ServerMetadata |
| 244 | |
| 245 | msg, err := server.ShutdownAllONUs(ctx, &protoReq) |
| 246 | return msg, metadata, err |
| 247 | |
| 248 | } |
| 249 | |
| 250 | func request_BBSim_ShutdownONUsOnPON_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 251 | var protoReq PONRequest |
| 252 | var metadata runtime.ServerMetadata |
| 253 | |
| 254 | var ( |
| 255 | val string |
| 256 | ok bool |
| 257 | err error |
| 258 | _ = err |
| 259 | ) |
| 260 | |
| 261 | val, ok = pathParams["PonPortId"] |
| 262 | if !ok { |
| 263 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "PonPortId") |
| 264 | } |
| 265 | |
| 266 | protoReq.PonPortId, err = runtime.Uint32(val) |
| 267 | |
| 268 | if err != nil { |
| 269 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "PonPortId", err) |
| 270 | } |
| 271 | |
| 272 | msg, err := client.ShutdownONUsOnPON(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 273 | return msg, metadata, err |
| 274 | |
| 275 | } |
| 276 | |
| 277 | func local_request_BBSim_ShutdownONUsOnPON_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 278 | var protoReq PONRequest |
| 279 | var metadata runtime.ServerMetadata |
| 280 | |
| 281 | var ( |
| 282 | val string |
| 283 | ok bool |
| 284 | err error |
| 285 | _ = err |
| 286 | ) |
| 287 | |
| 288 | val, ok = pathParams["PonPortId"] |
| 289 | if !ok { |
| 290 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "PonPortId") |
| 291 | } |
| 292 | |
| 293 | protoReq.PonPortId, err = runtime.Uint32(val) |
| 294 | |
| 295 | if err != nil { |
| 296 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "PonPortId", err) |
| 297 | } |
| 298 | |
| 299 | msg, err := server.ShutdownONUsOnPON(ctx, &protoReq) |
| 300 | return msg, metadata, err |
| 301 | |
| 302 | } |
| 303 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 304 | 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) { |
| 305 | var protoReq ONURequest |
| 306 | var metadata runtime.ServerMetadata |
| 307 | |
| 308 | var ( |
| 309 | val string |
| 310 | ok bool |
| 311 | err error |
| 312 | _ = err |
| 313 | ) |
| 314 | |
| 315 | val, ok = pathParams["SerialNumber"] |
| 316 | if !ok { |
| 317 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 318 | } |
| 319 | |
| 320 | protoReq.SerialNumber, err = runtime.String(val) |
| 321 | |
| 322 | if err != nil { |
| 323 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 324 | } |
| 325 | |
| 326 | msg, err := client.PoweronONU(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 327 | return msg, metadata, err |
| 328 | |
| 329 | } |
| 330 | |
| 331 | 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) { |
| 332 | var protoReq ONURequest |
| 333 | var metadata runtime.ServerMetadata |
| 334 | |
| 335 | var ( |
| 336 | val string |
| 337 | ok bool |
| 338 | err error |
| 339 | _ = err |
| 340 | ) |
| 341 | |
| 342 | val, ok = pathParams["SerialNumber"] |
| 343 | if !ok { |
| 344 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 345 | } |
| 346 | |
| 347 | protoReq.SerialNumber, err = runtime.String(val) |
| 348 | |
| 349 | if err != nil { |
| 350 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 351 | } |
| 352 | |
| 353 | msg, err := server.PoweronONU(ctx, &protoReq) |
| 354 | return msg, metadata, err |
| 355 | |
| 356 | } |
| 357 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 358 | func request_BBSim_PoweronAllONUs_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 359 | var protoReq Empty |
| 360 | var metadata runtime.ServerMetadata |
| 361 | |
| 362 | msg, err := client.PoweronAllONUs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 363 | return msg, metadata, err |
| 364 | |
| 365 | } |
| 366 | |
| 367 | func local_request_BBSim_PoweronAllONUs_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 368 | var protoReq Empty |
| 369 | var metadata runtime.ServerMetadata |
| 370 | |
| 371 | msg, err := server.PoweronAllONUs(ctx, &protoReq) |
| 372 | return msg, metadata, err |
| 373 | |
| 374 | } |
| 375 | |
| 376 | func request_BBSim_PoweronONUsOnPON_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 377 | var protoReq PONRequest |
| 378 | var metadata runtime.ServerMetadata |
| 379 | |
| 380 | var ( |
| 381 | val string |
| 382 | ok bool |
| 383 | err error |
| 384 | _ = err |
| 385 | ) |
| 386 | |
| 387 | val, ok = pathParams["PonPortId"] |
| 388 | if !ok { |
| 389 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "PonPortId") |
| 390 | } |
| 391 | |
| 392 | protoReq.PonPortId, err = runtime.Uint32(val) |
| 393 | |
| 394 | if err != nil { |
| 395 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "PonPortId", err) |
| 396 | } |
| 397 | |
| 398 | msg, err := client.PoweronONUsOnPON(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 399 | return msg, metadata, err |
| 400 | |
| 401 | } |
| 402 | |
| 403 | func local_request_BBSim_PoweronONUsOnPON_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 404 | var protoReq PONRequest |
| 405 | var metadata runtime.ServerMetadata |
| 406 | |
| 407 | var ( |
| 408 | val string |
| 409 | ok bool |
| 410 | err error |
| 411 | _ = err |
| 412 | ) |
| 413 | |
| 414 | val, ok = pathParams["PonPortId"] |
| 415 | if !ok { |
| 416 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "PonPortId") |
| 417 | } |
| 418 | |
| 419 | protoReq.PonPortId, err = runtime.Uint32(val) |
| 420 | |
| 421 | if err != nil { |
| 422 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "PonPortId", err) |
| 423 | } |
| 424 | |
| 425 | msg, err := server.PoweronONUsOnPON(ctx, &protoReq) |
| 426 | return msg, metadata, err |
| 427 | |
| 428 | } |
| 429 | |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 430 | var ( |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 431 | filter_BBSim_SetOnuAlarmIndication_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}} |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 432 | ) |
| 433 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 434 | func request_BBSim_SetOnuAlarmIndication_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 435 | var protoReq ONUAlarmRequest |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 436 | var metadata runtime.ServerMetadata |
| 437 | |
| 438 | var ( |
| 439 | val string |
| 440 | ok bool |
| 441 | err error |
| 442 | _ = err |
| 443 | ) |
| 444 | |
| 445 | val, ok = pathParams["SerialNumber"] |
| 446 | if !ok { |
| 447 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 448 | } |
| 449 | |
| 450 | protoReq.SerialNumber, err = runtime.String(val) |
| 451 | |
| 452 | if err != nil { |
| 453 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 454 | } |
| 455 | |
| 456 | val, ok = pathParams["AlarmType"] |
| 457 | if !ok { |
| 458 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "AlarmType") |
| 459 | } |
| 460 | |
| 461 | protoReq.AlarmType, err = runtime.String(val) |
| 462 | |
| 463 | if err != nil { |
| 464 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "AlarmType", err) |
| 465 | } |
| 466 | |
| 467 | val, ok = pathParams["Status"] |
| 468 | if !ok { |
| 469 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Status") |
| 470 | } |
| 471 | |
| 472 | protoReq.Status, err = runtime.String(val) |
| 473 | |
| 474 | if err != nil { |
| 475 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Status", err) |
| 476 | } |
| 477 | |
| 478 | if err := req.ParseForm(); err != nil { |
| 479 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 480 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 481 | if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BBSim_SetOnuAlarmIndication_0); err != nil { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 482 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 483 | } |
| 484 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 485 | msg, err := client.SetOnuAlarmIndication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 486 | return msg, metadata, err |
| 487 | |
| 488 | } |
| 489 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 490 | func local_request_BBSim_SetOnuAlarmIndication_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 491 | var protoReq ONUAlarmRequest |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 492 | var metadata runtime.ServerMetadata |
| 493 | |
| 494 | var ( |
| 495 | val string |
| 496 | ok bool |
| 497 | err error |
| 498 | _ = err |
| 499 | ) |
| 500 | |
| 501 | val, ok = pathParams["SerialNumber"] |
| 502 | if !ok { |
| 503 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 504 | } |
| 505 | |
| 506 | protoReq.SerialNumber, err = runtime.String(val) |
| 507 | |
| 508 | if err != nil { |
| 509 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 510 | } |
| 511 | |
| 512 | val, ok = pathParams["AlarmType"] |
| 513 | if !ok { |
| 514 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "AlarmType") |
| 515 | } |
| 516 | |
| 517 | protoReq.AlarmType, err = runtime.String(val) |
| 518 | |
| 519 | if err != nil { |
| 520 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "AlarmType", err) |
| 521 | } |
| 522 | |
| 523 | val, ok = pathParams["Status"] |
| 524 | if !ok { |
| 525 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Status") |
| 526 | } |
| 527 | |
| 528 | protoReq.Status, err = runtime.String(val) |
| 529 | |
| 530 | if err != nil { |
| 531 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Status", err) |
| 532 | } |
| 533 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 534 | if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_BBSim_SetOnuAlarmIndication_0); err != nil { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 535 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 536 | } |
| 537 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 538 | msg, err := server.SetOnuAlarmIndication(ctx, &protoReq) |
| 539 | return msg, metadata, err |
| 540 | |
| 541 | } |
| 542 | |
| 543 | func request_BBSim_SetOltAlarmIndication_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 544 | var protoReq OLTAlarmRequest |
| 545 | var metadata runtime.ServerMetadata |
| 546 | |
| 547 | var ( |
| 548 | val string |
| 549 | ok bool |
| 550 | err error |
| 551 | _ = err |
| 552 | ) |
| 553 | |
| 554 | val, ok = pathParams["InterfaceType"] |
| 555 | if !ok { |
| 556 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "InterfaceType") |
| 557 | } |
| 558 | |
| 559 | protoReq.InterfaceType, err = runtime.String(val) |
| 560 | |
| 561 | if err != nil { |
| 562 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "InterfaceType", err) |
| 563 | } |
| 564 | |
| 565 | val, ok = pathParams["InterfaceID"] |
| 566 | if !ok { |
| 567 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "InterfaceID") |
| 568 | } |
| 569 | |
| 570 | protoReq.InterfaceID, err = runtime.Uint32(val) |
| 571 | |
| 572 | if err != nil { |
| 573 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "InterfaceID", err) |
| 574 | } |
| 575 | |
| 576 | val, ok = pathParams["Status"] |
| 577 | if !ok { |
| 578 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Status") |
| 579 | } |
| 580 | |
| 581 | protoReq.Status, err = runtime.String(val) |
| 582 | |
| 583 | if err != nil { |
| 584 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Status", err) |
| 585 | } |
| 586 | |
| 587 | msg, err := client.SetOltAlarmIndication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 588 | return msg, metadata, err |
| 589 | |
| 590 | } |
| 591 | |
| 592 | func local_request_BBSim_SetOltAlarmIndication_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 593 | var protoReq OLTAlarmRequest |
| 594 | var metadata runtime.ServerMetadata |
| 595 | |
| 596 | var ( |
| 597 | val string |
| 598 | ok bool |
| 599 | err error |
| 600 | _ = err |
| 601 | ) |
| 602 | |
| 603 | val, ok = pathParams["InterfaceType"] |
| 604 | if !ok { |
| 605 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "InterfaceType") |
| 606 | } |
| 607 | |
| 608 | protoReq.InterfaceType, err = runtime.String(val) |
| 609 | |
| 610 | if err != nil { |
| 611 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "InterfaceType", err) |
| 612 | } |
| 613 | |
| 614 | val, ok = pathParams["InterfaceID"] |
| 615 | if !ok { |
| 616 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "InterfaceID") |
| 617 | } |
| 618 | |
| 619 | protoReq.InterfaceID, err = runtime.Uint32(val) |
| 620 | |
| 621 | if err != nil { |
| 622 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "InterfaceID", err) |
| 623 | } |
| 624 | |
| 625 | val, ok = pathParams["Status"] |
| 626 | if !ok { |
| 627 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Status") |
| 628 | } |
| 629 | |
| 630 | protoReq.Status, err = runtime.String(val) |
| 631 | |
| 632 | if err != nil { |
| 633 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Status", err) |
| 634 | } |
| 635 | |
| 636 | msg, err := server.SetOltAlarmIndication(ctx, &protoReq) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 637 | return msg, metadata, err |
| 638 | |
| 639 | } |
| 640 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 641 | func request_BBSim_GetFlows_0(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 642 | var protoReq ONURequest |
| 643 | var metadata runtime.ServerMetadata |
| 644 | |
| 645 | var ( |
| 646 | val string |
| 647 | ok bool |
| 648 | err error |
| 649 | _ = err |
| 650 | ) |
| 651 | |
| 652 | val, ok = pathParams["SerialNumber"] |
| 653 | if !ok { |
| 654 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 655 | } |
| 656 | |
| 657 | protoReq.SerialNumber, err = runtime.String(val) |
| 658 | |
| 659 | if err != nil { |
| 660 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 661 | } |
| 662 | |
| 663 | msg, err := client.GetFlows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 664 | return msg, metadata, err |
| 665 | |
| 666 | } |
| 667 | |
| 668 | func local_request_BBSim_GetFlows_0(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 669 | var protoReq ONURequest |
| 670 | var metadata runtime.ServerMetadata |
| 671 | |
| 672 | var ( |
| 673 | val string |
| 674 | ok bool |
| 675 | err error |
| 676 | _ = err |
| 677 | ) |
| 678 | |
| 679 | val, ok = pathParams["SerialNumber"] |
| 680 | if !ok { |
| 681 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 682 | } |
| 683 | |
| 684 | protoReq.SerialNumber, err = runtime.String(val) |
| 685 | |
| 686 | if err != nil { |
| 687 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 688 | } |
| 689 | |
| 690 | msg, err := server.GetFlows(ctx, &protoReq) |
| 691 | return msg, metadata, err |
| 692 | |
| 693 | } |
| 694 | |
| 695 | var ( |
| 696 | filter_BBSim_GetFlows_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} |
| 697 | ) |
| 698 | |
| 699 | func request_BBSim_GetFlows_1(ctx context.Context, marshaler runtime.Marshaler, client BBSimClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 700 | var protoReq ONURequest |
| 701 | var metadata runtime.ServerMetadata |
| 702 | |
| 703 | if err := req.ParseForm(); err != nil { |
| 704 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 705 | } |
| 706 | if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BBSim_GetFlows_1); err != nil { |
| 707 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 708 | } |
| 709 | |
| 710 | msg, err := client.GetFlows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 711 | return msg, metadata, err |
| 712 | |
| 713 | } |
| 714 | |
| 715 | func local_request_BBSim_GetFlows_1(ctx context.Context, marshaler runtime.Marshaler, server BBSimServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { |
| 716 | var protoReq ONURequest |
| 717 | var metadata runtime.ServerMetadata |
| 718 | |
| 719 | if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_BBSim_GetFlows_1); err != nil { |
| 720 | return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) |
| 721 | } |
| 722 | |
| 723 | msg, err := server.GetFlows(ctx, &protoReq) |
| 724 | return msg, metadata, err |
| 725 | |
| 726 | } |
| 727 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 728 | 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) { |
| 729 | var protoReq ONURequest |
| 730 | var metadata runtime.ServerMetadata |
| 731 | |
| 732 | var ( |
| 733 | val string |
| 734 | ok bool |
| 735 | err error |
| 736 | _ = err |
| 737 | ) |
| 738 | |
| 739 | val, ok = pathParams["SerialNumber"] |
| 740 | if !ok { |
| 741 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 742 | } |
| 743 | |
| 744 | protoReq.SerialNumber, err = runtime.String(val) |
| 745 | |
| 746 | if err != nil { |
| 747 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 748 | } |
| 749 | |
| 750 | msg, err := client.GetOnuTrafficSchedulers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) |
| 751 | return msg, metadata, err |
| 752 | |
| 753 | } |
| 754 | |
| 755 | 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) { |
| 756 | var protoReq ONURequest |
| 757 | var metadata runtime.ServerMetadata |
| 758 | |
| 759 | var ( |
| 760 | val string |
| 761 | ok bool |
| 762 | err error |
| 763 | _ = err |
| 764 | ) |
| 765 | |
| 766 | val, ok = pathParams["SerialNumber"] |
| 767 | if !ok { |
| 768 | return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "SerialNumber") |
| 769 | } |
| 770 | |
| 771 | protoReq.SerialNumber, err = runtime.String(val) |
| 772 | |
| 773 | if err != nil { |
| 774 | return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "SerialNumber", err) |
| 775 | } |
| 776 | |
| 777 | msg, err := server.GetOnuTrafficSchedulers(ctx, &protoReq) |
| 778 | return msg, metadata, err |
| 779 | |
| 780 | } |
| 781 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 782 | // RegisterBBSimHandlerServer registers the http handlers for service BBSim to "mux". |
| 783 | // UnaryRPC :call BBSimServer directly. |
| 784 | // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. |
| 785 | func RegisterBBSimHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BBSimServer) error { |
| 786 | |
| 787 | mux.Handle("GET", pattern_BBSim_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 788 | ctx, cancel := context.WithCancel(req.Context()) |
| 789 | defer cancel() |
| 790 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 791 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 792 | if err != nil { |
| 793 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 794 | return |
| 795 | } |
| 796 | resp, md, err := local_request_BBSim_Version_0(rctx, inboundMarshaler, server, req, pathParams) |
| 797 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 798 | if err != nil { |
| 799 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 800 | return |
| 801 | } |
| 802 | |
| 803 | forward_BBSim_Version_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 804 | |
| 805 | }) |
| 806 | |
| 807 | mux.Handle("GET", pattern_BBSim_GetOlt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 808 | ctx, cancel := context.WithCancel(req.Context()) |
| 809 | defer cancel() |
| 810 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 811 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 812 | if err != nil { |
| 813 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 814 | return |
| 815 | } |
| 816 | resp, md, err := local_request_BBSim_GetOlt_0(rctx, inboundMarshaler, server, req, pathParams) |
| 817 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 818 | if err != nil { |
| 819 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 820 | return |
| 821 | } |
| 822 | |
| 823 | forward_BBSim_GetOlt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 824 | |
| 825 | }) |
| 826 | |
| 827 | mux.Handle("GET", pattern_BBSim_GetOlt_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 828 | ctx, cancel := context.WithCancel(req.Context()) |
| 829 | defer cancel() |
| 830 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 831 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 832 | if err != nil { |
| 833 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 834 | return |
| 835 | } |
| 836 | resp, md, err := local_request_BBSim_GetOlt_1(rctx, inboundMarshaler, server, req, pathParams) |
| 837 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 838 | if err != nil { |
| 839 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 840 | return |
| 841 | } |
| 842 | |
| 843 | forward_BBSim_GetOlt_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 844 | |
| 845 | }) |
| 846 | |
Pragya Arya | 3b2df8c | 2020-03-18 12:17:28 +0530 | [diff] [blame^] | 847 | mux.Handle("POST", pattern_BBSim_RebootOlt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 848 | ctx, cancel := context.WithCancel(req.Context()) |
| 849 | defer cancel() |
| 850 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 851 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 852 | if err != nil { |
| 853 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 854 | return |
| 855 | } |
| 856 | resp, md, err := local_request_BBSim_RebootOlt_0(rctx, inboundMarshaler, server, req, pathParams) |
| 857 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 858 | if err != nil { |
| 859 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 860 | return |
| 861 | } |
| 862 | |
| 863 | forward_BBSim_RebootOlt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 864 | |
| 865 | }) |
| 866 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 867 | mux.Handle("GET", pattern_BBSim_GetONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 868 | ctx, cancel := context.WithCancel(req.Context()) |
| 869 | defer cancel() |
| 870 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 871 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 872 | if err != nil { |
| 873 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 874 | return |
| 875 | } |
| 876 | resp, md, err := local_request_BBSim_GetONU_0(rctx, inboundMarshaler, server, req, pathParams) |
| 877 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 878 | if err != nil { |
| 879 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 880 | return |
| 881 | } |
| 882 | |
| 883 | forward_BBSim_GetONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 884 | |
| 885 | }) |
| 886 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 887 | mux.Handle("GET", pattern_BBSim_GetONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 888 | ctx, cancel := context.WithCancel(req.Context()) |
| 889 | defer cancel() |
| 890 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 891 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 892 | if err != nil { |
| 893 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 894 | return |
| 895 | } |
| 896 | resp, md, err := local_request_BBSim_GetONUs_0(rctx, inboundMarshaler, server, req, pathParams) |
| 897 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 898 | if err != nil { |
| 899 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 900 | return |
| 901 | } |
| 902 | |
| 903 | forward_BBSim_GetONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 904 | |
| 905 | }) |
| 906 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 907 | mux.Handle("DELETE", pattern_BBSim_ShutdownONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 908 | ctx, cancel := context.WithCancel(req.Context()) |
| 909 | defer cancel() |
| 910 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 911 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 912 | if err != nil { |
| 913 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 914 | return |
| 915 | } |
| 916 | resp, md, err := local_request_BBSim_ShutdownONU_0(rctx, inboundMarshaler, server, req, pathParams) |
| 917 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 918 | if err != nil { |
| 919 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 920 | return |
| 921 | } |
| 922 | |
| 923 | forward_BBSim_ShutdownONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 924 | |
| 925 | }) |
| 926 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 927 | mux.Handle("DELETE", pattern_BBSim_ShutdownAllONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 928 | ctx, cancel := context.WithCancel(req.Context()) |
| 929 | defer cancel() |
| 930 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 931 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 932 | if err != nil { |
| 933 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 934 | return |
| 935 | } |
| 936 | resp, md, err := local_request_BBSim_ShutdownAllONUs_0(rctx, inboundMarshaler, server, req, pathParams) |
| 937 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 938 | if err != nil { |
| 939 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 940 | return |
| 941 | } |
| 942 | |
| 943 | forward_BBSim_ShutdownAllONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 944 | |
| 945 | }) |
| 946 | |
| 947 | mux.Handle("DELETE", pattern_BBSim_ShutdownONUsOnPON_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 948 | ctx, cancel := context.WithCancel(req.Context()) |
| 949 | defer cancel() |
| 950 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 951 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 952 | if err != nil { |
| 953 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 954 | return |
| 955 | } |
| 956 | resp, md, err := local_request_BBSim_ShutdownONUsOnPON_0(rctx, inboundMarshaler, server, req, pathParams) |
| 957 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 958 | if err != nil { |
| 959 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 960 | return |
| 961 | } |
| 962 | |
| 963 | forward_BBSim_ShutdownONUsOnPON_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 964 | |
| 965 | }) |
| 966 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 967 | mux.Handle("POST", pattern_BBSim_PoweronONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 968 | ctx, cancel := context.WithCancel(req.Context()) |
| 969 | defer cancel() |
| 970 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 971 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 972 | if err != nil { |
| 973 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 974 | return |
| 975 | } |
| 976 | resp, md, err := local_request_BBSim_PoweronONU_0(rctx, inboundMarshaler, server, req, pathParams) |
| 977 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 978 | if err != nil { |
| 979 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 980 | return |
| 981 | } |
| 982 | |
| 983 | forward_BBSim_PoweronONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 984 | |
| 985 | }) |
| 986 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 987 | mux.Handle("POST", pattern_BBSim_PoweronAllONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 988 | ctx, cancel := context.WithCancel(req.Context()) |
| 989 | defer cancel() |
| 990 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 991 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 992 | if err != nil { |
| 993 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 994 | return |
| 995 | } |
| 996 | resp, md, err := local_request_BBSim_PoweronAllONUs_0(rctx, inboundMarshaler, server, req, pathParams) |
| 997 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 998 | if err != nil { |
| 999 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1000 | return |
| 1001 | } |
| 1002 | |
| 1003 | forward_BBSim_PoweronAllONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1004 | |
| 1005 | }) |
| 1006 | |
| 1007 | mux.Handle("POST", pattern_BBSim_PoweronONUsOnPON_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1008 | ctx, cancel := context.WithCancel(req.Context()) |
| 1009 | defer cancel() |
| 1010 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1011 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 1012 | if err != nil { |
| 1013 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1014 | return |
| 1015 | } |
| 1016 | resp, md, err := local_request_BBSim_PoweronONUsOnPON_0(rctx, inboundMarshaler, server, req, pathParams) |
| 1017 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1018 | if err != nil { |
| 1019 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1020 | return |
| 1021 | } |
| 1022 | |
| 1023 | forward_BBSim_PoweronONUsOnPON_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1024 | |
| 1025 | }) |
| 1026 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1027 | mux.Handle("POST", pattern_BBSim_SetOnuAlarmIndication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1028 | ctx, cancel := context.WithCancel(req.Context()) |
| 1029 | defer cancel() |
| 1030 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1031 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 1032 | if err != nil { |
| 1033 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1034 | return |
| 1035 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1036 | resp, md, err := local_request_BBSim_SetOnuAlarmIndication_0(rctx, inboundMarshaler, server, req, pathParams) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1037 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1038 | if err != nil { |
| 1039 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1040 | return |
| 1041 | } |
| 1042 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1043 | forward_BBSim_SetOnuAlarmIndication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1044 | |
| 1045 | }) |
| 1046 | |
| 1047 | mux.Handle("POST", pattern_BBSim_SetOltAlarmIndication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1048 | ctx, cancel := context.WithCancel(req.Context()) |
| 1049 | defer cancel() |
| 1050 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1051 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 1052 | if err != nil { |
| 1053 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1054 | return |
| 1055 | } |
| 1056 | resp, md, err := local_request_BBSim_SetOltAlarmIndication_0(rctx, inboundMarshaler, server, req, pathParams) |
| 1057 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1058 | if err != nil { |
| 1059 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1060 | return |
| 1061 | } |
| 1062 | |
| 1063 | forward_BBSim_SetOltAlarmIndication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1064 | |
| 1065 | }) |
| 1066 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1067 | mux.Handle("GET", pattern_BBSim_GetFlows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1068 | ctx, cancel := context.WithCancel(req.Context()) |
| 1069 | defer cancel() |
| 1070 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1071 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 1072 | if err != nil { |
| 1073 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1074 | return |
| 1075 | } |
| 1076 | resp, md, err := local_request_BBSim_GetFlows_0(rctx, inboundMarshaler, server, req, pathParams) |
| 1077 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1078 | if err != nil { |
| 1079 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1080 | return |
| 1081 | } |
| 1082 | |
| 1083 | forward_BBSim_GetFlows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1084 | |
| 1085 | }) |
| 1086 | |
| 1087 | mux.Handle("GET", pattern_BBSim_GetFlows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1088 | ctx, cancel := context.WithCancel(req.Context()) |
| 1089 | defer cancel() |
| 1090 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1091 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 1092 | if err != nil { |
| 1093 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1094 | return |
| 1095 | } |
| 1096 | resp, md, err := local_request_BBSim_GetFlows_1(rctx, inboundMarshaler, server, req, pathParams) |
| 1097 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1098 | if err != nil { |
| 1099 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1100 | return |
| 1101 | } |
| 1102 | |
| 1103 | forward_BBSim_GetFlows_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1104 | |
| 1105 | }) |
| 1106 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1107 | mux.Handle("GET", pattern_BBSim_GetOnuTrafficSchedulers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1108 | ctx, cancel := context.WithCancel(req.Context()) |
| 1109 | defer cancel() |
| 1110 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1111 | rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) |
| 1112 | if err != nil { |
| 1113 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1114 | return |
| 1115 | } |
| 1116 | resp, md, err := local_request_BBSim_GetOnuTrafficSchedulers_0(rctx, inboundMarshaler, server, req, pathParams) |
| 1117 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1118 | if err != nil { |
| 1119 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1120 | return |
| 1121 | } |
| 1122 | |
| 1123 | forward_BBSim_GetOnuTrafficSchedulers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1124 | |
| 1125 | }) |
| 1126 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1127 | return nil |
| 1128 | } |
| 1129 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1130 | // RegisterBBSimHandlerFromEndpoint is same as RegisterBBSimHandler but |
| 1131 | // automatically dials to "endpoint" and closes the connection when "ctx" gets done. |
| 1132 | func RegisterBBSimHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { |
| 1133 | conn, err := grpc.Dial(endpoint, opts...) |
| 1134 | if err != nil { |
| 1135 | return err |
| 1136 | } |
| 1137 | defer func() { |
| 1138 | if err != nil { |
| 1139 | if cerr := conn.Close(); cerr != nil { |
| 1140 | grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) |
| 1141 | } |
| 1142 | return |
| 1143 | } |
| 1144 | go func() { |
| 1145 | <-ctx.Done() |
| 1146 | if cerr := conn.Close(); cerr != nil { |
| 1147 | grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) |
| 1148 | } |
| 1149 | }() |
| 1150 | }() |
| 1151 | |
| 1152 | return RegisterBBSimHandler(ctx, mux, conn) |
| 1153 | } |
| 1154 | |
| 1155 | // RegisterBBSimHandler registers the http handlers for service BBSim to "mux". |
| 1156 | // The handlers forward requests to the grpc endpoint over "conn". |
| 1157 | func RegisterBBSimHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { |
| 1158 | return RegisterBBSimHandlerClient(ctx, mux, NewBBSimClient(conn)) |
| 1159 | } |
| 1160 | |
| 1161 | // RegisterBBSimHandlerClient registers the http handlers for service BBSim |
| 1162 | // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BBSimClient". |
| 1163 | // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BBSimClient" |
| 1164 | // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in |
| 1165 | // "BBSimClient" to call the correct interceptors. |
| 1166 | func RegisterBBSimHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BBSimClient) error { |
| 1167 | |
| 1168 | mux.Handle("GET", pattern_BBSim_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1169 | ctx, cancel := context.WithCancel(req.Context()) |
| 1170 | defer cancel() |
| 1171 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1172 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1173 | if err != nil { |
| 1174 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1175 | return |
| 1176 | } |
| 1177 | resp, md, err := request_BBSim_Version_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1178 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1179 | if err != nil { |
| 1180 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1181 | return |
| 1182 | } |
| 1183 | |
| 1184 | forward_BBSim_Version_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1185 | |
| 1186 | }) |
| 1187 | |
| 1188 | mux.Handle("GET", pattern_BBSim_GetOlt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1189 | ctx, cancel := context.WithCancel(req.Context()) |
| 1190 | defer cancel() |
| 1191 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1192 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1193 | if err != nil { |
| 1194 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1195 | return |
| 1196 | } |
| 1197 | resp, md, err := request_BBSim_GetOlt_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1198 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1199 | if err != nil { |
| 1200 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1201 | return |
| 1202 | } |
| 1203 | |
| 1204 | forward_BBSim_GetOlt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1205 | |
| 1206 | }) |
| 1207 | |
| 1208 | mux.Handle("GET", pattern_BBSim_GetOlt_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1209 | ctx, cancel := context.WithCancel(req.Context()) |
| 1210 | defer cancel() |
| 1211 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1212 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1213 | if err != nil { |
| 1214 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1215 | return |
| 1216 | } |
| 1217 | resp, md, err := request_BBSim_GetOlt_1(rctx, inboundMarshaler, client, req, pathParams) |
| 1218 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1219 | if err != nil { |
| 1220 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1221 | return |
| 1222 | } |
| 1223 | |
| 1224 | forward_BBSim_GetOlt_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1225 | |
| 1226 | }) |
| 1227 | |
Pragya Arya | 3b2df8c | 2020-03-18 12:17:28 +0530 | [diff] [blame^] | 1228 | mux.Handle("POST", pattern_BBSim_RebootOlt_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1229 | ctx, cancel := context.WithCancel(req.Context()) |
| 1230 | defer cancel() |
| 1231 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1232 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1233 | if err != nil { |
| 1234 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1235 | return |
| 1236 | } |
| 1237 | resp, md, err := request_BBSim_RebootOlt_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1238 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1239 | if err != nil { |
| 1240 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1241 | return |
| 1242 | } |
| 1243 | |
| 1244 | forward_BBSim_RebootOlt_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1245 | |
| 1246 | }) |
| 1247 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1248 | mux.Handle("GET", pattern_BBSim_GetONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1249 | ctx, cancel := context.WithCancel(req.Context()) |
| 1250 | defer cancel() |
| 1251 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1252 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1253 | if err != nil { |
| 1254 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1255 | return |
| 1256 | } |
| 1257 | resp, md, err := request_BBSim_GetONU_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1258 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1259 | if err != nil { |
| 1260 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1261 | return |
| 1262 | } |
| 1263 | |
| 1264 | forward_BBSim_GetONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1265 | |
| 1266 | }) |
| 1267 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1268 | mux.Handle("GET", pattern_BBSim_GetONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1269 | ctx, cancel := context.WithCancel(req.Context()) |
| 1270 | defer cancel() |
| 1271 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1272 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1273 | if err != nil { |
| 1274 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1275 | return |
| 1276 | } |
| 1277 | resp, md, err := request_BBSim_GetONUs_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1278 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1279 | if err != nil { |
| 1280 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1281 | return |
| 1282 | } |
| 1283 | |
| 1284 | forward_BBSim_GetONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1285 | |
| 1286 | }) |
| 1287 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1288 | mux.Handle("DELETE", pattern_BBSim_ShutdownONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1289 | ctx, cancel := context.WithCancel(req.Context()) |
| 1290 | defer cancel() |
| 1291 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1292 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1293 | if err != nil { |
| 1294 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1295 | return |
| 1296 | } |
| 1297 | resp, md, err := request_BBSim_ShutdownONU_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1298 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1299 | if err != nil { |
| 1300 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1301 | return |
| 1302 | } |
| 1303 | |
| 1304 | forward_BBSim_ShutdownONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1305 | |
| 1306 | }) |
| 1307 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1308 | mux.Handle("DELETE", pattern_BBSim_ShutdownAllONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1309 | ctx, cancel := context.WithCancel(req.Context()) |
| 1310 | defer cancel() |
| 1311 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1312 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1313 | if err != nil { |
| 1314 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1315 | return |
| 1316 | } |
| 1317 | resp, md, err := request_BBSim_ShutdownAllONUs_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1318 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1319 | if err != nil { |
| 1320 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1321 | return |
| 1322 | } |
| 1323 | |
| 1324 | forward_BBSim_ShutdownAllONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1325 | |
| 1326 | }) |
| 1327 | |
| 1328 | mux.Handle("DELETE", pattern_BBSim_ShutdownONUsOnPON_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1329 | ctx, cancel := context.WithCancel(req.Context()) |
| 1330 | defer cancel() |
| 1331 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1332 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1333 | if err != nil { |
| 1334 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1335 | return |
| 1336 | } |
| 1337 | resp, md, err := request_BBSim_ShutdownONUsOnPON_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1338 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1339 | if err != nil { |
| 1340 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1341 | return |
| 1342 | } |
| 1343 | |
| 1344 | forward_BBSim_ShutdownONUsOnPON_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1345 | |
| 1346 | }) |
| 1347 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1348 | mux.Handle("POST", pattern_BBSim_PoweronONU_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1349 | ctx, cancel := context.WithCancel(req.Context()) |
| 1350 | defer cancel() |
| 1351 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1352 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1353 | if err != nil { |
| 1354 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1355 | return |
| 1356 | } |
| 1357 | resp, md, err := request_BBSim_PoweronONU_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1358 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1359 | if err != nil { |
| 1360 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1361 | return |
| 1362 | } |
| 1363 | |
| 1364 | forward_BBSim_PoweronONU_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1365 | |
| 1366 | }) |
| 1367 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1368 | mux.Handle("POST", pattern_BBSim_PoweronAllONUs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1369 | ctx, cancel := context.WithCancel(req.Context()) |
| 1370 | defer cancel() |
| 1371 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1372 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1373 | if err != nil { |
| 1374 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1375 | return |
| 1376 | } |
| 1377 | resp, md, err := request_BBSim_PoweronAllONUs_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1378 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1379 | if err != nil { |
| 1380 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1381 | return |
| 1382 | } |
| 1383 | |
| 1384 | forward_BBSim_PoweronAllONUs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1385 | |
| 1386 | }) |
| 1387 | |
| 1388 | mux.Handle("POST", pattern_BBSim_PoweronONUsOnPON_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1389 | ctx, cancel := context.WithCancel(req.Context()) |
| 1390 | defer cancel() |
| 1391 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1392 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1393 | if err != nil { |
| 1394 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1395 | return |
| 1396 | } |
| 1397 | resp, md, err := request_BBSim_PoweronONUsOnPON_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1398 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1399 | if err != nil { |
| 1400 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1401 | return |
| 1402 | } |
| 1403 | |
| 1404 | forward_BBSim_PoweronONUsOnPON_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1405 | |
| 1406 | }) |
| 1407 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1408 | mux.Handle("POST", pattern_BBSim_SetOnuAlarmIndication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1409 | ctx, cancel := context.WithCancel(req.Context()) |
| 1410 | defer cancel() |
| 1411 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1412 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1413 | if err != nil { |
| 1414 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1415 | return |
| 1416 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1417 | resp, md, err := request_BBSim_SetOnuAlarmIndication_0(rctx, inboundMarshaler, client, req, pathParams) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1418 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1419 | if err != nil { |
| 1420 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1421 | return |
| 1422 | } |
| 1423 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1424 | forward_BBSim_SetOnuAlarmIndication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1425 | |
| 1426 | }) |
| 1427 | |
| 1428 | mux.Handle("POST", pattern_BBSim_SetOltAlarmIndication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1429 | ctx, cancel := context.WithCancel(req.Context()) |
| 1430 | defer cancel() |
| 1431 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1432 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1433 | if err != nil { |
| 1434 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1435 | return |
| 1436 | } |
| 1437 | resp, md, err := request_BBSim_SetOltAlarmIndication_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1438 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1439 | if err != nil { |
| 1440 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1441 | return |
| 1442 | } |
| 1443 | |
| 1444 | forward_BBSim_SetOltAlarmIndication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1445 | |
| 1446 | }) |
| 1447 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1448 | mux.Handle("GET", pattern_BBSim_GetFlows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1449 | ctx, cancel := context.WithCancel(req.Context()) |
| 1450 | defer cancel() |
| 1451 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1452 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1453 | if err != nil { |
| 1454 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1455 | return |
| 1456 | } |
| 1457 | resp, md, err := request_BBSim_GetFlows_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1458 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1459 | if err != nil { |
| 1460 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1461 | return |
| 1462 | } |
| 1463 | |
| 1464 | forward_BBSim_GetFlows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1465 | |
| 1466 | }) |
| 1467 | |
| 1468 | mux.Handle("GET", pattern_BBSim_GetFlows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1469 | ctx, cancel := context.WithCancel(req.Context()) |
| 1470 | defer cancel() |
| 1471 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1472 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1473 | if err != nil { |
| 1474 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1475 | return |
| 1476 | } |
| 1477 | resp, md, err := request_BBSim_GetFlows_1(rctx, inboundMarshaler, client, req, pathParams) |
| 1478 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1479 | if err != nil { |
| 1480 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1481 | return |
| 1482 | } |
| 1483 | |
| 1484 | forward_BBSim_GetFlows_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1485 | |
| 1486 | }) |
| 1487 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1488 | mux.Handle("GET", pattern_BBSim_GetOnuTrafficSchedulers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { |
| 1489 | ctx, cancel := context.WithCancel(req.Context()) |
| 1490 | defer cancel() |
| 1491 | inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) |
| 1492 | rctx, err := runtime.AnnotateContext(ctx, mux, req) |
| 1493 | if err != nil { |
| 1494 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1495 | return |
| 1496 | } |
| 1497 | resp, md, err := request_BBSim_GetOnuTrafficSchedulers_0(rctx, inboundMarshaler, client, req, pathParams) |
| 1498 | ctx = runtime.NewServerMetadataContext(ctx, md) |
| 1499 | if err != nil { |
| 1500 | runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) |
| 1501 | return |
| 1502 | } |
| 1503 | |
| 1504 | forward_BBSim_GetOnuTrafficSchedulers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) |
| 1505 | |
| 1506 | }) |
| 1507 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1508 | return nil |
| 1509 | } |
| 1510 | |
| 1511 | var ( |
| 1512 | pattern_BBSim_Version_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "version"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1513 | |
| 1514 | pattern_BBSim_GetOlt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "olt"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1515 | |
| 1516 | pattern_BBSim_GetOlt_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "status"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1517 | |
Pragya Arya | 3b2df8c | 2020-03-18 12:17:28 +0530 | [diff] [blame^] | 1518 | pattern_BBSim_RebootOlt_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "reboot"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1519 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1520 | 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] | 1521 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1522 | pattern_BBSim_GetONUs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "onus"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1523 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1524 | 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))) |
| 1525 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1526 | pattern_BBSim_ShutdownAllONUs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "onus"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1527 | |
| 1528 | pattern_BBSim_ShutdownONUsOnPON_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "olt", "port", "PonPortId", "onus"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1529 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1530 | 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] | 1531 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1532 | pattern_BBSim_PoweronAllONUs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "onus"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1533 | |
| 1534 | pattern_BBSim_PoweronONUsOnPON_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "olt", "port", "PonPortId", "onus"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1535 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1536 | pattern_BBSim_SetOnuAlarmIndication_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))) |
| 1537 | |
| 1538 | pattern_BBSim_SetOltAlarmIndication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"v1", "olt", "ports", "InterfaceType", "InterfaceID", "alarms", "los", "Status"}, "", runtime.AssumeColonVerbOpt(true))) |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1539 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1540 | pattern_BBSim_GetFlows_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", "flows"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1541 | |
| 1542 | pattern_BBSim_GetFlows_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "olt", "flows"}, "", runtime.AssumeColonVerbOpt(true))) |
| 1543 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1544 | 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] | 1545 | ) |
| 1546 | |
| 1547 | var ( |
| 1548 | forward_BBSim_Version_0 = runtime.ForwardResponseMessage |
| 1549 | |
| 1550 | forward_BBSim_GetOlt_0 = runtime.ForwardResponseMessage |
| 1551 | |
| 1552 | forward_BBSim_GetOlt_1 = runtime.ForwardResponseMessage |
| 1553 | |
Pragya Arya | 3b2df8c | 2020-03-18 12:17:28 +0530 | [diff] [blame^] | 1554 | forward_BBSim_RebootOlt_0 = runtime.ForwardResponseMessage |
| 1555 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1556 | forward_BBSim_GetONU_0 = runtime.ForwardResponseMessage |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1557 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1558 | forward_BBSim_GetONUs_0 = runtime.ForwardResponseMessage |
| 1559 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1560 | forward_BBSim_ShutdownONU_0 = runtime.ForwardResponseMessage |
| 1561 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1562 | forward_BBSim_ShutdownAllONUs_0 = runtime.ForwardResponseMessage |
| 1563 | |
| 1564 | forward_BBSim_ShutdownONUsOnPON_0 = runtime.ForwardResponseMessage |
| 1565 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1566 | forward_BBSim_PoweronONU_0 = runtime.ForwardResponseMessage |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1567 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1568 | forward_BBSim_PoweronAllONUs_0 = runtime.ForwardResponseMessage |
| 1569 | |
| 1570 | forward_BBSim_PoweronONUsOnPON_0 = runtime.ForwardResponseMessage |
| 1571 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1572 | forward_BBSim_SetOnuAlarmIndication_0 = runtime.ForwardResponseMessage |
| 1573 | |
| 1574 | forward_BBSim_SetOltAlarmIndication_0 = runtime.ForwardResponseMessage |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1575 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1576 | forward_BBSim_GetFlows_0 = runtime.ForwardResponseMessage |
| 1577 | |
| 1578 | forward_BBSim_GetFlows_1 = runtime.ForwardResponseMessage |
| 1579 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1580 | forward_BBSim_GetOnuTrafficSchedulers_0 = runtime.ForwardResponseMessage |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1581 | ) |