Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 1 | { |
| 2 | "swagger": "2.0", |
| 3 | "info": { |
| 4 | "title": "bbsim/bbsim.proto", |
| 5 | "version": "version not set" |
| 6 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 7 | "consumes": [ |
| 8 | "application/json" |
| 9 | ], |
| 10 | "produces": [ |
| 11 | "application/json" |
| 12 | ], |
| 13 | "paths": { |
| 14 | "/v1/olt": { |
| 15 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 16 | "summary": "Get current status of OLT", |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 17 | "operationId": "GetOlt", |
| 18 | "responses": { |
| 19 | "200": { |
| 20 | "description": "A successful response.", |
| 21 | "schema": { |
| 22 | "$ref": "#/definitions/bbsimOlt" |
| 23 | } |
| 24 | } |
| 25 | }, |
| 26 | "tags": [ |
| 27 | "BBSim" |
| 28 | ] |
| 29 | } |
| 30 | }, |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 31 | "/v1/olt/flows": { |
| 32 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 33 | "summary": "Get all flows or ONU specific flows", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 34 | "operationId": "GetFlows2", |
| 35 | "responses": { |
| 36 | "200": { |
| 37 | "description": "A successful response.", |
| 38 | "schema": { |
| 39 | "$ref": "#/definitions/bbsimFlows" |
| 40 | } |
| 41 | } |
| 42 | }, |
| 43 | "parameters": [ |
| 44 | { |
| 45 | "name": "SerialNumber", |
| 46 | "in": "query", |
| 47 | "required": false, |
| 48 | "type": "string" |
| 49 | } |
| 50 | ], |
| 51 | "tags": [ |
| 52 | "BBSim" |
| 53 | ] |
| 54 | } |
| 55 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 56 | "/v1/olt/onus": { |
| 57 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 58 | "summary": "Get status of all ONUs", |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 59 | "operationId": "GetONUs", |
| 60 | "responses": { |
| 61 | "200": { |
| 62 | "description": "A successful response.", |
| 63 | "schema": { |
| 64 | "$ref": "#/definitions/bbsimONUs" |
| 65 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 66 | } |
| 67 | }, |
| 68 | "tags": [ |
| 69 | "BBSim" |
| 70 | ] |
| 71 | }, |
| 72 | "delete": { |
| 73 | "summary": "Shutdown all ONUs in OLT", |
| 74 | "operationId": "ShutdownAllONUs", |
| 75 | "responses": { |
| 76 | "200": { |
| 77 | "description": "A successful response.", |
| 78 | "schema": { |
| 79 | "$ref": "#/definitions/bbsimResponse" |
| 80 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 81 | } |
| 82 | }, |
| 83 | "tags": [ |
| 84 | "BBSim" |
| 85 | ] |
| 86 | }, |
| 87 | "post": { |
| 88 | "summary": "Poweron all ONUs in OLT", |
| 89 | "operationId": "PoweronAllONUs", |
| 90 | "responses": { |
| 91 | "200": { |
| 92 | "description": "A successful response.", |
| 93 | "schema": { |
| 94 | "$ref": "#/definitions/bbsimResponse" |
| 95 | } |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 96 | } |
| 97 | }, |
| 98 | "tags": [ |
| 99 | "BBSim" |
| 100 | ] |
| 101 | } |
| 102 | }, |
| 103 | "/v1/olt/onus/{SerialNumber}": { |
| 104 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 105 | "summary": "Get status of an ONU by serial number", |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 106 | "operationId": "GetONU", |
| 107 | "responses": { |
| 108 | "200": { |
| 109 | "description": "A successful response.", |
| 110 | "schema": { |
| 111 | "$ref": "#/definitions/bbsimONU" |
| 112 | } |
| 113 | } |
| 114 | }, |
| 115 | "parameters": [ |
| 116 | { |
| 117 | "name": "SerialNumber", |
| 118 | "in": "path", |
| 119 | "required": true, |
| 120 | "type": "string" |
| 121 | } |
| 122 | ], |
| 123 | "tags": [ |
| 124 | "BBSim" |
| 125 | ] |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 126 | }, |
| 127 | "delete": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 128 | "summary": "Shutdown an ONU by serial number", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 129 | "operationId": "ShutdownONU", |
| 130 | "responses": { |
| 131 | "200": { |
| 132 | "description": "A successful response.", |
| 133 | "schema": { |
| 134 | "$ref": "#/definitions/bbsimResponse" |
| 135 | } |
| 136 | } |
| 137 | }, |
| 138 | "parameters": [ |
| 139 | { |
| 140 | "name": "SerialNumber", |
| 141 | "in": "path", |
| 142 | "required": true, |
| 143 | "type": "string" |
| 144 | } |
| 145 | ], |
| 146 | "tags": [ |
| 147 | "BBSim" |
| 148 | ] |
| 149 | }, |
| 150 | "post": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 151 | "summary": "Poweron an ONU by serial number", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 152 | "operationId": "PoweronONU", |
| 153 | "responses": { |
| 154 | "200": { |
| 155 | "description": "A successful response.", |
| 156 | "schema": { |
| 157 | "$ref": "#/definitions/bbsimResponse" |
| 158 | } |
| 159 | } |
| 160 | }, |
| 161 | "parameters": [ |
| 162 | { |
| 163 | "name": "SerialNumber", |
| 164 | "in": "path", |
| 165 | "required": true, |
| 166 | "type": "string" |
| 167 | } |
| 168 | ], |
| 169 | "tags": [ |
| 170 | "BBSim" |
| 171 | ] |
| 172 | } |
| 173 | }, |
| 174 | "/v1/olt/onus/{SerialNumber}/alarms/{AlarmType}/{Status}": { |
| 175 | "post": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 176 | "summary": "Send ONU alarm indication", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 177 | "operationId": "SetOnuAlarmIndication", |
| 178 | "responses": { |
| 179 | "200": { |
| 180 | "description": "A successful response.", |
| 181 | "schema": { |
| 182 | "$ref": "#/definitions/bbsimResponse" |
| 183 | } |
| 184 | } |
| 185 | }, |
| 186 | "parameters": [ |
| 187 | { |
| 188 | "name": "SerialNumber", |
| 189 | "in": "path", |
| 190 | "required": true, |
| 191 | "type": "string" |
| 192 | }, |
| 193 | { |
| 194 | "name": "AlarmType", |
| 195 | "in": "path", |
| 196 | "required": true, |
| 197 | "type": "string" |
| 198 | }, |
| 199 | { |
| 200 | "name": "Status", |
| 201 | "in": "path", |
| 202 | "required": true, |
| 203 | "type": "string" |
| 204 | } |
| 205 | ], |
| 206 | "tags": [ |
| 207 | "BBSim" |
| 208 | ] |
| 209 | } |
| 210 | }, |
| 211 | "/v1/olt/onus/{SerialNumber}/flows": { |
| 212 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 213 | "summary": "Get all flows or ONU specific flows", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 214 | "operationId": "GetFlows", |
| 215 | "responses": { |
| 216 | "200": { |
| 217 | "description": "A successful response.", |
| 218 | "schema": { |
| 219 | "$ref": "#/definitions/bbsimFlows" |
| 220 | } |
| 221 | } |
| 222 | }, |
| 223 | "parameters": [ |
| 224 | { |
| 225 | "name": "SerialNumber", |
| 226 | "in": "path", |
| 227 | "required": true, |
| 228 | "type": "string" |
| 229 | } |
| 230 | ], |
| 231 | "tags": [ |
| 232 | "BBSim" |
| 233 | ] |
| 234 | } |
| 235 | }, |
| 236 | "/v1/olt/onus/{SerialNumber}/trafficschedulers": { |
| 237 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 238 | "summary": "Get Traffic scheduler information for ONU", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 239 | "operationId": "GetOnuTrafficSchedulers", |
| 240 | "responses": { |
| 241 | "200": { |
| 242 | "description": "A successful response.", |
| 243 | "schema": { |
| 244 | "$ref": "#/definitions/bbsimONUTrafficSchedulers" |
| 245 | } |
| 246 | } |
| 247 | }, |
| 248 | "parameters": [ |
| 249 | { |
| 250 | "name": "SerialNumber", |
| 251 | "in": "path", |
| 252 | "required": true, |
| 253 | "type": "string" |
| 254 | } |
| 255 | ], |
| 256 | "tags": [ |
| 257 | "BBSim" |
| 258 | ] |
| 259 | } |
| 260 | }, |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 261 | "/v1/olt/port/{PonPortId}/onus": { |
| 262 | "delete": { |
| 263 | "summary": "Shutdown all ONUs under a PON by pon-port-ID", |
| 264 | "operationId": "ShutdownONUsOnPON", |
| 265 | "responses": { |
| 266 | "200": { |
| 267 | "description": "A successful response.", |
| 268 | "schema": { |
| 269 | "$ref": "#/definitions/bbsimResponse" |
| 270 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 271 | } |
| 272 | }, |
| 273 | "parameters": [ |
| 274 | { |
| 275 | "name": "PonPortId", |
| 276 | "in": "path", |
| 277 | "required": true, |
| 278 | "type": "integer", |
| 279 | "format": "int64" |
| 280 | } |
| 281 | ], |
| 282 | "tags": [ |
| 283 | "BBSim" |
| 284 | ] |
| 285 | }, |
| 286 | "post": { |
| 287 | "summary": "Poweron all ONUs under a PON by pon-port-ID", |
| 288 | "operationId": "PoweronONUsOnPON", |
| 289 | "responses": { |
| 290 | "200": { |
| 291 | "description": "A successful response.", |
| 292 | "schema": { |
| 293 | "$ref": "#/definitions/bbsimResponse" |
| 294 | } |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 295 | } |
| 296 | }, |
| 297 | "parameters": [ |
| 298 | { |
| 299 | "name": "PonPortId", |
| 300 | "in": "path", |
| 301 | "required": true, |
| 302 | "type": "integer", |
| 303 | "format": "int64" |
| 304 | } |
| 305 | ], |
| 306 | "tags": [ |
| 307 | "BBSim" |
| 308 | ] |
| 309 | } |
| 310 | }, |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 311 | "/v1/olt/ports/{InterfaceType}/{InterfaceID}/alarms/los/{Status}": { |
| 312 | "post": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 313 | "summary": "Send OLT alarm indication for Interface type NNI or PON", |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 314 | "operationId": "SetOltAlarmIndication", |
| 315 | "responses": { |
| 316 | "200": { |
| 317 | "description": "A successful response.", |
| 318 | "schema": { |
| 319 | "$ref": "#/definitions/bbsimResponse" |
| 320 | } |
| 321 | } |
| 322 | }, |
| 323 | "parameters": [ |
| 324 | { |
| 325 | "name": "InterfaceType", |
| 326 | "in": "path", |
| 327 | "required": true, |
| 328 | "type": "string" |
| 329 | }, |
| 330 | { |
| 331 | "name": "InterfaceID", |
| 332 | "in": "path", |
| 333 | "required": true, |
| 334 | "type": "integer", |
| 335 | "format": "int64" |
| 336 | }, |
| 337 | { |
| 338 | "name": "Status", |
| 339 | "in": "path", |
| 340 | "required": true, |
| 341 | "type": "string" |
| 342 | } |
| 343 | ], |
| 344 | "tags": [ |
| 345 | "BBSim" |
| 346 | ] |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 347 | } |
| 348 | }, |
Zack Williams | d2907e6 | 2020-04-03 10:23:02 -0700 | [diff] [blame] | 349 | "/v1/olt/reboot": { |
| 350 | "post": { |
| 351 | "summary": "Reboot OLT", |
| 352 | "operationId": "RebootOlt", |
| 353 | "responses": { |
| 354 | "200": { |
| 355 | "description": "A successful response.", |
| 356 | "schema": { |
| 357 | "$ref": "#/definitions/bbsimResponse" |
| 358 | } |
| 359 | } |
| 360 | }, |
| 361 | "tags": [ |
| 362 | "BBSim" |
| 363 | ] |
| 364 | } |
| 365 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 366 | "/v1/olt/status": { |
| 367 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 368 | "summary": "Get current status of OLT", |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 369 | "operationId": "GetOlt2", |
| 370 | "responses": { |
| 371 | "200": { |
| 372 | "description": "A successful response.", |
| 373 | "schema": { |
| 374 | "$ref": "#/definitions/bbsimOlt" |
| 375 | } |
| 376 | } |
| 377 | }, |
| 378 | "tags": [ |
| 379 | "BBSim" |
| 380 | ] |
| 381 | } |
| 382 | }, |
| 383 | "/v1/version": { |
| 384 | "get": { |
Pragya Arya | 3f8fdc6 | 2020-03-16 11:12:27 +0530 | [diff] [blame] | 385 | "summary": "Get BBSim version", |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 386 | "operationId": "Version", |
| 387 | "responses": { |
| 388 | "200": { |
| 389 | "description": "A successful response.", |
| 390 | "schema": { |
| 391 | "$ref": "#/definitions/bbsimVersionNumber" |
| 392 | } |
| 393 | } |
| 394 | }, |
| 395 | "tags": [ |
| 396 | "BBSim" |
| 397 | ] |
| 398 | } |
| 399 | } |
| 400 | }, |
| 401 | "definitions": { |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 402 | "bbsimAlarmParameter": { |
| 403 | "type": "object", |
| 404 | "properties": { |
| 405 | "Key": { |
| 406 | "type": "string" |
| 407 | }, |
| 408 | "Value": { |
| 409 | "type": "string" |
| 410 | } |
| 411 | } |
| 412 | }, |
| 413 | "bbsimFlows": { |
| 414 | "type": "object", |
| 415 | "properties": { |
| 416 | "flow_count": { |
| 417 | "type": "integer", |
| 418 | "format": "int64" |
| 419 | }, |
| 420 | "flows": { |
| 421 | "type": "array", |
| 422 | "items": { |
| 423 | "$ref": "#/definitions/openoltFlow" |
| 424 | } |
| 425 | } |
| 426 | } |
| 427 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 428 | "bbsimLogLevel": { |
| 429 | "type": "object", |
| 430 | "properties": { |
| 431 | "level": { |
| 432 | "type": "string" |
| 433 | }, |
| 434 | "caller": { |
| 435 | "type": "boolean", |
| 436 | "format": "boolean" |
| 437 | } |
| 438 | } |
| 439 | }, |
| 440 | "bbsimNNIPort": { |
| 441 | "type": "object", |
| 442 | "properties": { |
| 443 | "ID": { |
| 444 | "type": "integer", |
| 445 | "format": "int32" |
| 446 | }, |
| 447 | "OperState": { |
| 448 | "type": "string" |
| 449 | } |
| 450 | } |
| 451 | }, |
| 452 | "bbsimONU": { |
| 453 | "type": "object", |
| 454 | "properties": { |
| 455 | "ID": { |
| 456 | "type": "integer", |
| 457 | "format": "int32" |
| 458 | }, |
| 459 | "SerialNumber": { |
| 460 | "type": "string" |
| 461 | }, |
| 462 | "OperState": { |
| 463 | "type": "string" |
| 464 | }, |
| 465 | "InternalState": { |
| 466 | "type": "string" |
| 467 | }, |
| 468 | "PonPortID": { |
| 469 | "type": "integer", |
| 470 | "format": "int32" |
| 471 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 472 | "HwAddress": { |
| 473 | "type": "string" |
| 474 | }, |
| 475 | "PortNo": { |
| 476 | "type": "integer", |
| 477 | "format": "int32" |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame^] | 478 | }, |
| 479 | "services": { |
| 480 | "type": "array", |
| 481 | "items": { |
| 482 | "$ref": "#/definitions/bbsimService" |
| 483 | } |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 484 | } |
| 485 | } |
| 486 | }, |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 487 | "bbsimONURequest": { |
| 488 | "type": "object", |
| 489 | "properties": { |
| 490 | "SerialNumber": { |
| 491 | "type": "string" |
| 492 | } |
| 493 | } |
| 494 | }, |
| 495 | "bbsimONUTrafficSchedulers": { |
| 496 | "type": "object", |
| 497 | "properties": { |
| 498 | "traffSchedulers": { |
| 499 | "$ref": "#/definitions/tech_profileTrafficSchedulers" |
| 500 | } |
| 501 | } |
| 502 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 503 | "bbsimONUs": { |
| 504 | "type": "object", |
| 505 | "properties": { |
| 506 | "items": { |
| 507 | "type": "array", |
| 508 | "items": { |
| 509 | "$ref": "#/definitions/bbsimONU" |
| 510 | } |
| 511 | } |
| 512 | } |
| 513 | }, |
| 514 | "bbsimOlt": { |
| 515 | "type": "object", |
| 516 | "properties": { |
| 517 | "ID": { |
| 518 | "type": "integer", |
| 519 | "format": "int32" |
| 520 | }, |
| 521 | "SerialNumber": { |
| 522 | "type": "string" |
| 523 | }, |
| 524 | "OperState": { |
| 525 | "type": "string" |
| 526 | }, |
| 527 | "InternalState": { |
| 528 | "type": "string" |
| 529 | }, |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 530 | "IP": { |
| 531 | "type": "string" |
| 532 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 533 | "NNIPorts": { |
| 534 | "type": "array", |
| 535 | "items": { |
| 536 | "$ref": "#/definitions/bbsimNNIPort" |
| 537 | } |
| 538 | }, |
| 539 | "PONPorts": { |
| 540 | "type": "array", |
| 541 | "items": { |
| 542 | "$ref": "#/definitions/bbsimPONPort" |
| 543 | } |
| 544 | } |
| 545 | } |
| 546 | }, |
| 547 | "bbsimPONPort": { |
| 548 | "type": "object", |
| 549 | "properties": { |
| 550 | "ID": { |
| 551 | "type": "integer", |
| 552 | "format": "int32" |
| 553 | }, |
| 554 | "OperState": { |
| 555 | "type": "string" |
| 556 | } |
| 557 | } |
| 558 | }, |
| 559 | "bbsimResponse": { |
| 560 | "type": "object", |
| 561 | "properties": { |
| 562 | "status_code": { |
| 563 | "type": "integer", |
| 564 | "format": "int32" |
| 565 | }, |
| 566 | "message": { |
| 567 | "type": "string" |
| 568 | } |
| 569 | } |
| 570 | }, |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame^] | 571 | "bbsimService": { |
| 572 | "type": "object", |
| 573 | "properties": { |
| 574 | "Name": { |
| 575 | "type": "string" |
| 576 | }, |
| 577 | "HwAddress": { |
| 578 | "type": "string" |
| 579 | }, |
| 580 | "OnuSn": { |
| 581 | "type": "string" |
| 582 | }, |
| 583 | "STag": { |
| 584 | "type": "integer", |
| 585 | "format": "int32" |
| 586 | }, |
| 587 | "CTag": { |
| 588 | "type": "integer", |
| 589 | "format": "int32" |
| 590 | }, |
| 591 | "NeedsEapol": { |
| 592 | "type": "boolean", |
| 593 | "format": "boolean" |
| 594 | }, |
| 595 | "NeedsDhcp": { |
| 596 | "type": "boolean", |
| 597 | "format": "boolean" |
| 598 | }, |
| 599 | "NeedsIgmp": { |
| 600 | "type": "boolean", |
| 601 | "format": "boolean" |
| 602 | }, |
| 603 | "GemPort": { |
| 604 | "type": "integer", |
| 605 | "format": "int32" |
| 606 | }, |
| 607 | "EapolState": { |
| 608 | "type": "string" |
| 609 | }, |
| 610 | "DhcpState": { |
| 611 | "type": "string" |
| 612 | }, |
| 613 | "InternalState": { |
| 614 | "type": "string" |
| 615 | }, |
| 616 | "IGMPState": { |
| 617 | "type": "string" |
| 618 | } |
| 619 | } |
| 620 | }, |
| 621 | "bbsimServices": { |
| 622 | "type": "object", |
| 623 | "properties": { |
| 624 | "items": { |
| 625 | "type": "array", |
| 626 | "items": { |
| 627 | "$ref": "#/definitions/bbsimService" |
| 628 | } |
| 629 | } |
| 630 | } |
| 631 | }, |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 632 | "bbsimSubActionTypes": { |
| 633 | "type": "string", |
| 634 | "enum": [ |
| 635 | "JOIN", |
| 636 | "LEAVE", |
| 637 | "JOINV3" |
| 638 | ], |
| 639 | "default": "JOIN" |
| 640 | }, |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 641 | "bbsimVersionNumber": { |
| 642 | "type": "object", |
| 643 | "properties": { |
| 644 | "version": { |
| 645 | "type": "string" |
| 646 | }, |
| 647 | "buildTime": { |
| 648 | "type": "string" |
| 649 | }, |
| 650 | "commitHash": { |
| 651 | "type": "string" |
| 652 | }, |
| 653 | "gitStatus": { |
| 654 | "type": "string" |
| 655 | } |
| 656 | } |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 657 | }, |
| 658 | "openoltAction": { |
| 659 | "type": "object", |
| 660 | "properties": { |
| 661 | "cmd": { |
| 662 | "$ref": "#/definitions/openoltActionCmd" |
| 663 | }, |
| 664 | "o_vid": { |
| 665 | "type": "integer", |
| 666 | "format": "int64" |
| 667 | }, |
| 668 | "o_pbits": { |
| 669 | "type": "integer", |
| 670 | "format": "int64" |
| 671 | }, |
| 672 | "o_tpid": { |
| 673 | "type": "integer", |
| 674 | "format": "int64" |
| 675 | }, |
| 676 | "i_vid": { |
| 677 | "type": "integer", |
| 678 | "format": "int64" |
| 679 | }, |
| 680 | "i_pbits": { |
| 681 | "type": "integer", |
| 682 | "format": "int64" |
| 683 | }, |
| 684 | "i_tpid": { |
| 685 | "type": "integer", |
| 686 | "format": "int64" |
| 687 | } |
| 688 | } |
| 689 | }, |
| 690 | "openoltActionCmd": { |
| 691 | "type": "object", |
| 692 | "properties": { |
| 693 | "add_outer_tag": { |
| 694 | "type": "boolean", |
| 695 | "format": "boolean" |
| 696 | }, |
| 697 | "remove_outer_tag": { |
| 698 | "type": "boolean", |
| 699 | "format": "boolean" |
| 700 | }, |
| 701 | "trap_to_host": { |
| 702 | "type": "boolean", |
| 703 | "format": "boolean" |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame^] | 704 | }, |
| 705 | "remark_outer_pbits": { |
| 706 | "type": "boolean", |
| 707 | "format": "boolean" |
| 708 | }, |
| 709 | "remark_inner_pbits": { |
| 710 | "type": "boolean", |
| 711 | "format": "boolean" |
| 712 | }, |
| 713 | "add_inner_tag": { |
| 714 | "type": "boolean", |
| 715 | "format": "boolean" |
| 716 | }, |
| 717 | "remove_inner_tag": { |
| 718 | "type": "boolean", |
| 719 | "format": "boolean" |
| 720 | }, |
| 721 | "translate_inner_tag": { |
| 722 | "type": "boolean", |
| 723 | "format": "boolean" |
| 724 | }, |
| 725 | "translate_outer_tag": { |
| 726 | "type": "boolean", |
| 727 | "format": "boolean" |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 728 | } |
| 729 | } |
| 730 | }, |
| 731 | "openoltClassifier": { |
| 732 | "type": "object", |
| 733 | "properties": { |
| 734 | "o_tpid": { |
| 735 | "type": "integer", |
| 736 | "format": "int64" |
| 737 | }, |
| 738 | "o_vid": { |
| 739 | "type": "integer", |
| 740 | "format": "int64" |
| 741 | }, |
| 742 | "i_tpid": { |
| 743 | "type": "integer", |
| 744 | "format": "int64" |
| 745 | }, |
| 746 | "i_vid": { |
| 747 | "type": "integer", |
| 748 | "format": "int64" |
| 749 | }, |
| 750 | "o_pbits": { |
| 751 | "type": "integer", |
| 752 | "format": "int64" |
| 753 | }, |
| 754 | "i_pbits": { |
| 755 | "type": "integer", |
| 756 | "format": "int64" |
| 757 | }, |
| 758 | "eth_type": { |
| 759 | "type": "integer", |
| 760 | "format": "int64" |
| 761 | }, |
| 762 | "dst_mac": { |
| 763 | "type": "string", |
| 764 | "format": "byte" |
| 765 | }, |
| 766 | "src_mac": { |
| 767 | "type": "string", |
| 768 | "format": "byte" |
| 769 | }, |
| 770 | "ip_proto": { |
| 771 | "type": "integer", |
| 772 | "format": "int64" |
| 773 | }, |
| 774 | "dst_ip": { |
| 775 | "type": "integer", |
| 776 | "format": "int64" |
| 777 | }, |
| 778 | "src_ip": { |
| 779 | "type": "integer", |
| 780 | "format": "int64" |
| 781 | }, |
| 782 | "src_port": { |
| 783 | "type": "integer", |
| 784 | "format": "int64" |
| 785 | }, |
| 786 | "dst_port": { |
| 787 | "type": "integer", |
| 788 | "format": "int64" |
| 789 | }, |
| 790 | "pkt_tag_type": { |
| 791 | "type": "string" |
| 792 | } |
| 793 | } |
| 794 | }, |
| 795 | "openoltFlow": { |
| 796 | "type": "object", |
| 797 | "properties": { |
| 798 | "access_intf_id": { |
| 799 | "type": "integer", |
| 800 | "format": "int32" |
| 801 | }, |
| 802 | "onu_id": { |
| 803 | "type": "integer", |
| 804 | "format": "int32" |
| 805 | }, |
| 806 | "uni_id": { |
| 807 | "type": "integer", |
| 808 | "format": "int32" |
| 809 | }, |
| 810 | "flow_id": { |
| 811 | "type": "integer", |
| 812 | "format": "int64" |
| 813 | }, |
| 814 | "flow_type": { |
| 815 | "type": "string" |
| 816 | }, |
| 817 | "alloc_id": { |
| 818 | "type": "integer", |
| 819 | "format": "int32" |
| 820 | }, |
| 821 | "network_intf_id": { |
| 822 | "type": "integer", |
| 823 | "format": "int32" |
| 824 | }, |
| 825 | "gemport_id": { |
| 826 | "type": "integer", |
| 827 | "format": "int32" |
| 828 | }, |
| 829 | "classifier": { |
| 830 | "$ref": "#/definitions/openoltClassifier" |
| 831 | }, |
| 832 | "action": { |
| 833 | "$ref": "#/definitions/openoltAction" |
| 834 | }, |
| 835 | "priority": { |
| 836 | "type": "integer", |
| 837 | "format": "int32" |
| 838 | }, |
| 839 | "cookie": { |
| 840 | "type": "string", |
| 841 | "format": "uint64" |
| 842 | }, |
| 843 | "port_no": { |
| 844 | "type": "integer", |
| 845 | "format": "int64" |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame^] | 846 | }, |
| 847 | "group_id": { |
| 848 | "type": "integer", |
| 849 | "format": "int64" |
| 850 | }, |
| 851 | "tech_profile_id": { |
| 852 | "type": "integer", |
| 853 | "format": "int64" |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 854 | } |
| 855 | } |
| 856 | }, |
| 857 | "tech_profileAdditionalBW": { |
| 858 | "type": "string", |
| 859 | "enum": [ |
| 860 | "AdditionalBW_None", |
| 861 | "AdditionalBW_NA", |
| 862 | "AdditionalBW_BestEffort", |
| 863 | "AdditionalBW_Auto" |
| 864 | ], |
| 865 | "default": "AdditionalBW_None" |
| 866 | }, |
| 867 | "tech_profileDirection": { |
| 868 | "type": "string", |
| 869 | "enum": [ |
| 870 | "UPSTREAM", |
| 871 | "DOWNSTREAM", |
| 872 | "BIDIRECTIONAL" |
| 873 | ], |
| 874 | "default": "UPSTREAM" |
| 875 | }, |
| 876 | "tech_profileInferredAdditionBWIndication": { |
| 877 | "type": "string", |
| 878 | "enum": [ |
| 879 | "InferredAdditionBWIndication_None", |
| 880 | "InferredAdditionBWIndication_Assured", |
| 881 | "InferredAdditionBWIndication_BestEffort" |
| 882 | ], |
| 883 | "default": "InferredAdditionBWIndication_None" |
| 884 | }, |
| 885 | "tech_profileSchedulerConfig": { |
| 886 | "type": "object", |
| 887 | "properties": { |
| 888 | "direction": { |
| 889 | "$ref": "#/definitions/tech_profileDirection" |
| 890 | }, |
| 891 | "additional_bw": { |
| 892 | "$ref": "#/definitions/tech_profileAdditionalBW" |
| 893 | }, |
| 894 | "priority": { |
| 895 | "type": "integer", |
| 896 | "format": "int64" |
| 897 | }, |
| 898 | "weight": { |
| 899 | "type": "integer", |
| 900 | "format": "int64" |
| 901 | }, |
| 902 | "sched_policy": { |
| 903 | "$ref": "#/definitions/tech_profileSchedulingPolicy" |
| 904 | } |
| 905 | } |
| 906 | }, |
| 907 | "tech_profileSchedulingPolicy": { |
| 908 | "type": "string", |
| 909 | "enum": [ |
| 910 | "WRR", |
| 911 | "StrictPriority", |
| 912 | "Hybrid" |
| 913 | ], |
| 914 | "default": "WRR" |
| 915 | }, |
| 916 | "tech_profileTrafficScheduler": { |
| 917 | "type": "object", |
| 918 | "properties": { |
| 919 | "direction": { |
| 920 | "$ref": "#/definitions/tech_profileDirection" |
| 921 | }, |
| 922 | "alloc_id": { |
| 923 | "type": "integer", |
| 924 | "format": "int64" |
| 925 | }, |
| 926 | "scheduler": { |
| 927 | "$ref": "#/definitions/tech_profileSchedulerConfig" |
| 928 | }, |
| 929 | "traffic_shaping_info": { |
| 930 | "$ref": "#/definitions/tech_profileTrafficShapingInfo" |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame^] | 931 | }, |
| 932 | "tech_profile_id": { |
| 933 | "type": "integer", |
| 934 | "format": "int64" |
Matteo Scandolo | 9d08be5 | 2020-03-12 09:43:53 -0700 | [diff] [blame] | 935 | } |
| 936 | } |
| 937 | }, |
| 938 | "tech_profileTrafficSchedulers": { |
| 939 | "type": "object", |
| 940 | "properties": { |
| 941 | "intf_id": { |
| 942 | "type": "integer", |
| 943 | "format": "int64" |
| 944 | }, |
| 945 | "onu_id": { |
| 946 | "type": "integer", |
| 947 | "format": "int64" |
| 948 | }, |
| 949 | "uni_id": { |
| 950 | "type": "integer", |
| 951 | "format": "int64" |
| 952 | }, |
| 953 | "port_no": { |
| 954 | "type": "integer", |
| 955 | "format": "int64" |
| 956 | }, |
| 957 | "traffic_scheds": { |
| 958 | "type": "array", |
| 959 | "items": { |
| 960 | "$ref": "#/definitions/tech_profileTrafficScheduler" |
| 961 | } |
| 962 | } |
| 963 | } |
| 964 | }, |
| 965 | "tech_profileTrafficShapingInfo": { |
| 966 | "type": "object", |
| 967 | "properties": { |
| 968 | "cir": { |
| 969 | "type": "integer", |
| 970 | "format": "int64" |
| 971 | }, |
| 972 | "cbs": { |
| 973 | "type": "integer", |
| 974 | "format": "int64" |
| 975 | }, |
| 976 | "pir": { |
| 977 | "type": "integer", |
| 978 | "format": "int64" |
| 979 | }, |
| 980 | "pbs": { |
| 981 | "type": "integer", |
| 982 | "format": "int64" |
| 983 | }, |
| 984 | "gir": { |
| 985 | "type": "integer", |
| 986 | "format": "int64" |
| 987 | }, |
| 988 | "add_bw_ind": { |
| 989 | "$ref": "#/definitions/tech_profileInferredAdditionBWIndication" |
| 990 | } |
| 991 | } |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 992 | } |
| 993 | } |
| 994 | } |