| { |
| "swagger": "2.0", |
| "info": { |
| "title": "BBSim API", |
| "version": "1.0", |
| "contact": { |
| "url": "http://opencord.org" |
| } |
| }, |
| "schemes": [ |
| "http" |
| ], |
| "consumes": [ |
| "application/json" |
| ], |
| "produces": [ |
| "application/json" |
| ], |
| "paths": { |
| "/v0/olt": { |
| "get": { |
| "summary": "Get current status of OLT", |
| "operationId": "OLTStatus", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyOLTStatusResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/flows": { |
| "get": { |
| "summary": "Get flows", |
| "operationId": "GetFlows", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyFlows" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "pon_port_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu_serial", |
| "description": "ONU serial number.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/onu/{onu_serial}/flows": { |
| "get": { |
| "summary": "Get flows", |
| "operationId": "GetFlows2", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyFlows" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu_serial", |
| "description": "ONU serial number", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "pon_port_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/onus": { |
| "get": { |
| "summary": "Get status of all or specific ONUs", |
| "operationId": "ONUStatus", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyONUs" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.pon_port_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| }, |
| "delete": { |
| "summary": "Deactivate ONU(s) for specific PON port(s) specified by\na given onu_serial, onu_id, or pon_port_id", |
| "operationId": "ONUDeactivate", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "body", |
| "in": "body", |
| "required": true, |
| "schema": { |
| "$ref": "#/definitions/legacyONUs" |
| } |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| }, |
| "post": { |
| "summary": "Single/bulk activate ONU(s) for specific PON port(s)", |
| "operationId": "ONUActivate", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "body", |
| "in": "body", |
| "required": true, |
| "schema": { |
| "$ref": "#/definitions/legacyONUs" |
| } |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/onus/{onu.onu_serial}": { |
| "get": { |
| "summary": "Get status of all or specific ONUs", |
| "operationId": "ONUStatus2", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyONUs" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.pon_port_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| }, |
| "delete": { |
| "summary": "Deactivate ONU(s) for specific PON port(s) specified by\na given onu_serial, onu_id, or pon_port_id", |
| "operationId": "ONUDeactivate2", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.pon_port_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/onus/{onu_serial}/alarms/{alarm_type}/{status}": { |
| "post": { |
| "summary": "Generate ONU related alarms", |
| "operationId": "GenerateONUAlarm", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu_serial", |
| "description": "ONU serial number", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "alarm_type", |
| "description": "Alarm types are:\n \"signaldegrade\"\n \"lossofomcichannel\"\n \"lossofploam\"", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "status", |
| "description": "\"on\"/\"off\" indicates raised or cleared alarm", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/ports/{onu.pon_port_id}/onus": { |
| "get": { |
| "summary": "Get status of all or specific ONUs", |
| "operationId": "ONUStatus4", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyONUs" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.pon_port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| }, |
| "delete": { |
| "summary": "Deactivate ONU(s) for specific PON port(s) specified by\na given onu_serial, onu_id, or pon_port_id", |
| "operationId": "ONUDeactivate3", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.pon_port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| }, |
| "post": { |
| "summary": "Single/bulk activate ONU(s) for specific PON port(s)", |
| "operationId": "ONUActivate2", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.pon_port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/ports/{onu.pon_port_id}/onus/{onu.onu_id}": { |
| "get": { |
| "summary": "Get status of all or specific ONUs", |
| "operationId": "ONUStatus3", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyONUs" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.pon_port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| }, |
| "delete": { |
| "summary": "Deactivate ONU(s) for specific PON port(s) specified by\na given onu_serial, onu_id, or pon_port_id", |
| "operationId": "ONUDeactivate4", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.pon_port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.oper_state", |
| "description": "ONU oper state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.onu_state", |
| "description": "ONU internal state.", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "onu.gemports", |
| "in": "query", |
| "required": false, |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "collectionFormat": "multi" |
| }, |
| { |
| "name": "onu.tconts.uni_id", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.tconts.port_no", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/ports/{onu.pon_port_id}/onus/{onu.onu_serial}": { |
| "post": { |
| "summary": "Single/bulk activate ONU(s) for specific PON port(s)", |
| "operationId": "ONUActivate3", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "onu.pon_port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "onu.onu_serial", |
| "description": "ONU serial number", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/ports/{port_type}/{port_id}/alarms/los/{status}": { |
| "post": { |
| "summary": "Generate OLT related alarms", |
| "operationId": "GenerateOLTAlarm", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "port_type", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "status", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/ports/{port_type}/{port_id}/status": { |
| "get": { |
| "summary": "Get status of a PON/NNI port", |
| "operationId": "PortStatus", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyPorts" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "port_type", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "port_id", |
| "in": "path", |
| "required": true, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "pon_port_max_onus", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "pon_port_active_onus", |
| "in": "query", |
| "required": false, |
| "type": "integer", |
| "format": "int64" |
| }, |
| { |
| "name": "port_state", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| }, |
| { |
| "name": "alarm_state", |
| "in": "query", |
| "required": false, |
| "type": "string" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/status": { |
| "get": { |
| "summary": "Get current status of OLT", |
| "operationId": "OLTStatus2", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyOLTStatusResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/olt/{device_type}/{serial_number}/action/{action}": { |
| "patch": { |
| "summary": "Perform actions on OLT/ONU devices (e.g. reboot)", |
| "operationId": "PerformDeviceAction2", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "device_type", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "serial_number", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "action", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| }, |
| "/v0/{device_type}/action/{action}": { |
| "patch": { |
| "summary": "Perform actions on OLT/ONU devices (e.g. reboot)", |
| "operationId": "PerformDeviceAction", |
| "responses": { |
| "200": { |
| "description": "A successful response.", |
| "schema": { |
| "$ref": "#/definitions/legacyBBSimResponse" |
| } |
| }, |
| "404": { |
| "description": "Returned when the resource does not exist.", |
| "schema": { |
| "type": "string", |
| "format": "string" |
| } |
| }, |
| "default": { |
| "description": "An unexpected error response", |
| "schema": { |
| "$ref": "#/definitions/runtimeError" |
| } |
| } |
| }, |
| "parameters": [ |
| { |
| "name": "device_type", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| }, |
| { |
| "name": "action", |
| "in": "path", |
| "required": true, |
| "type": "string" |
| } |
| ], |
| "tags": [ |
| "BBSimService" |
| ] |
| } |
| } |
| }, |
| "definitions": { |
| "legacyBBSimResponse": { |
| "type": "object", |
| "properties": { |
| "status_msg": { |
| "type": "string" |
| } |
| }, |
| "title": "BBSim response message" |
| }, |
| "legacyFlows": { |
| "type": "object", |
| "properties": { |
| "flows": { |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/openoltFlow" |
| } |
| } |
| } |
| }, |
| "legacyOLTInfo": { |
| "type": "object", |
| "properties": { |
| "olt_id": { |
| "type": "string", |
| "format": "int64" |
| }, |
| "olt_serial": { |
| "type": "string" |
| }, |
| "olt_ip": { |
| "type": "string" |
| }, |
| "olt_state": { |
| "type": "string" |
| }, |
| "olt_vendor": { |
| "type": "string" |
| } |
| }, |
| "title": "OLT information" |
| }, |
| "legacyOLTStatusResponse": { |
| "type": "object", |
| "properties": { |
| "olt": { |
| "$ref": "#/definitions/legacyOLTInfo" |
| }, |
| "ports": { |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/legacyPortInfo" |
| } |
| } |
| }, |
| "title": "BBSim status" |
| }, |
| "legacyONUInfo": { |
| "type": "object", |
| "properties": { |
| "onu_id": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "pon_port_id": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "onu_serial": { |
| "type": "string", |
| "title": "ONU serial number" |
| }, |
| "oper_state": { |
| "type": "string", |
| "title": "ONU oper state" |
| }, |
| "onu_state": { |
| "type": "string", |
| "title": "ONU internal state" |
| }, |
| "gemports": { |
| "type": "array", |
| "items": { |
| "type": "integer", |
| "format": "int64" |
| } |
| }, |
| "tconts": { |
| "$ref": "#/definitions/legacyTconts" |
| } |
| }, |
| "title": "ONU information" |
| }, |
| "legacyONUs": { |
| "type": "object", |
| "properties": { |
| "onus": { |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/legacyONUInfo" |
| } |
| } |
| }, |
| "title": "Bulk ONU operations" |
| }, |
| "legacyPortInfo": { |
| "type": "object", |
| "properties": { |
| "port_type": { |
| "type": "string" |
| }, |
| "port_id": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "pon_port_max_onus": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "pon_port_active_onus": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "port_state": { |
| "type": "string" |
| }, |
| "alarm_state": { |
| "type": "string" |
| } |
| }, |
| "title": "Port information" |
| }, |
| "legacyPorts": { |
| "type": "object", |
| "properties": { |
| "ports": { |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/legacyPortInfo" |
| } |
| } |
| }, |
| "title": "Bulk port information" |
| }, |
| "legacyTconts": { |
| "type": "object", |
| "properties": { |
| "uni_id": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "port_no": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "tconts": { |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/tech_profileTrafficScheduler" |
| } |
| } |
| } |
| }, |
| "openoltAction": { |
| "type": "object", |
| "properties": { |
| "cmd": { |
| "$ref": "#/definitions/openoltActionCmd" |
| }, |
| "o_vid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "o_pbits": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "o_tpid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "i_vid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "i_pbits": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "i_tpid": { |
| "type": "integer", |
| "format": "int64" |
| } |
| } |
| }, |
| "openoltActionCmd": { |
| "type": "object", |
| "properties": { |
| "add_outer_tag": { |
| "type": "boolean", |
| "format": "boolean" |
| }, |
| "remove_outer_tag": { |
| "type": "boolean", |
| "format": "boolean" |
| }, |
| "trap_to_host": { |
| "type": "boolean", |
| "format": "boolean" |
| } |
| } |
| }, |
| "openoltClassifier": { |
| "type": "object", |
| "properties": { |
| "o_tpid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "o_vid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "i_tpid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "i_vid": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "o_pbits": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "i_pbits": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "eth_type": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "dst_mac": { |
| "type": "string", |
| "format": "byte" |
| }, |
| "src_mac": { |
| "type": "string", |
| "format": "byte" |
| }, |
| "ip_proto": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "dst_ip": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "src_ip": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "src_port": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "dst_port": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "pkt_tag_type": { |
| "type": "string" |
| } |
| } |
| }, |
| "openoltFlow": { |
| "type": "object", |
| "properties": { |
| "access_intf_id": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "onu_id": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "uni_id": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "flow_id": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "flow_type": { |
| "type": "string" |
| }, |
| "alloc_id": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "network_intf_id": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "gemport_id": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "classifier": { |
| "$ref": "#/definitions/openoltClassifier" |
| }, |
| "action": { |
| "$ref": "#/definitions/openoltAction" |
| }, |
| "priority": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "cookie": { |
| "type": "string", |
| "format": "uint64" |
| }, |
| "port_no": { |
| "type": "integer", |
| "format": "int64" |
| } |
| } |
| }, |
| "protobufAny": { |
| "type": "object", |
| "properties": { |
| "type_url": { |
| "type": "string", |
| "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." |
| }, |
| "value": { |
| "type": "string", |
| "format": "byte", |
| "description": "Must be a valid serialized protocol buffer of the above specified type." |
| } |
| }, |
| "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" |
| }, |
| "runtimeError": { |
| "type": "object", |
| "properties": { |
| "error": { |
| "type": "string" |
| }, |
| "code": { |
| "type": "integer", |
| "format": "int32" |
| }, |
| "message": { |
| "type": "string" |
| }, |
| "details": { |
| "type": "array", |
| "items": { |
| "$ref": "#/definitions/protobufAny" |
| } |
| } |
| } |
| }, |
| "tech_profileAdditionalBW": { |
| "type": "string", |
| "enum": [ |
| "AdditionalBW_None", |
| "AdditionalBW_NA", |
| "AdditionalBW_BestEffort", |
| "AdditionalBW_Auto" |
| ], |
| "default": "AdditionalBW_None" |
| }, |
| "tech_profileDirection": { |
| "type": "string", |
| "enum": [ |
| "UPSTREAM", |
| "DOWNSTREAM", |
| "BIDIRECTIONAL" |
| ], |
| "default": "UPSTREAM" |
| }, |
| "tech_profileInferredAdditionBWIndication": { |
| "type": "string", |
| "enum": [ |
| "InferredAdditionBWIndication_None", |
| "InferredAdditionBWIndication_Assured", |
| "InferredAdditionBWIndication_BestEffort" |
| ], |
| "default": "InferredAdditionBWIndication_None" |
| }, |
| "tech_profileSchedulerConfig": { |
| "type": "object", |
| "properties": { |
| "direction": { |
| "$ref": "#/definitions/tech_profileDirection" |
| }, |
| "additional_bw": { |
| "$ref": "#/definitions/tech_profileAdditionalBW" |
| }, |
| "priority": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "weight": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "sched_policy": { |
| "$ref": "#/definitions/tech_profileSchedulingPolicy" |
| } |
| } |
| }, |
| "tech_profileSchedulingPolicy": { |
| "type": "string", |
| "enum": [ |
| "WRR", |
| "StrictPriority", |
| "Hybrid" |
| ], |
| "default": "WRR" |
| }, |
| "tech_profileTrafficScheduler": { |
| "type": "object", |
| "properties": { |
| "direction": { |
| "$ref": "#/definitions/tech_profileDirection" |
| }, |
| "alloc_id": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "scheduler": { |
| "$ref": "#/definitions/tech_profileSchedulerConfig" |
| }, |
| "traffic_shaping_info": { |
| "$ref": "#/definitions/tech_profileTrafficShapingInfo" |
| } |
| } |
| }, |
| "tech_profileTrafficShapingInfo": { |
| "type": "object", |
| "properties": { |
| "cir": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "cbs": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "pir": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "pbs": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "gir": { |
| "type": "integer", |
| "format": "int64" |
| }, |
| "add_bw_ind": { |
| "$ref": "#/definitions/tech_profileInferredAdditionBWIndication" |
| } |
| } |
| } |
| } |
| } |