X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=api%2Frouting_manager.yaml;h=fc93ab5d6de925209fa26c8c95a0d510c33f730d;hb=HEAD;hp=c2dacfa842e5a3dcea3dc3bd10e6adb35610d8d0;hpb=bf2f4122f6bf89fc572f6c4cad5f0c4108a996e0;p=ric-plt%2Fsubmgr.git diff --git a/api/routing_manager.yaml b/api/routing_manager.yaml index c2dacfa..fc93ab5 100644 --- a/api/routing_manager.yaml +++ b/api/routing_manager.yaml @@ -1,4 +1,3 @@ -# #================================================================================== # Copyright (c) 2019 AT&T Intellectual Property. # Copyright (c) 2019 Nokia @@ -38,6 +37,8 @@ tags: # url: "http://127.0.0.1" - name: "health" description: "Health of the system" +- name: "debug" + description: "Debug Information" schemes: #- "https" - "http" @@ -60,6 +61,24 @@ paths: description: "The health of the system" schema: "$ref": "#/definitions/health-status" + /getdebuginfo: + get: + tags: + - "debug" + summary: "Get Information for debugging" + description: "By performing a GET method, API caller is able to get the dump of routes tables, subcription list and E2T's" + operationId: "get_debuginfo" + consumes: + - "application/json" + produces: + - "application/json" + responses: + 200: + description: "Debug Info from routing manager" + schema: + "$ref": "#/definitions/debuginfo" + 201: + description: "Error while fetching Debug data" /handles: get: tags: @@ -177,7 +196,7 @@ paths: description: "Invalid data" 201: description: "Xapp list received" - /handles/v1/e2t: + /handles/e2t: post: tags: - "handle" @@ -226,7 +245,7 @@ paths: description: "Invalid data" 201: description: "new e2t instance is considered and platform routes are established" - /handles/v1/associate-ran-to-e2t: + /handles/associate-ran-to-e2t: post: tags: - "handle" @@ -251,7 +270,7 @@ paths: description: "Invalid data" 201: description: "e2t ran mapping recieved, platform routes" - /handles/v1/dissociate-ran: + /handles/dissociate-ran: post: tags: - "handle" @@ -276,6 +295,53 @@ paths: description: "Invalid data" 201: description: "ran instances disociated" + /handles/addrmrroute: + post: + tags: + - "handle" + summary: "API to add RMR routes" + description: "By performing a POST method to add RMR routes" + operationId: "add_rmr_route" + consumes: + - "application/json" + produces: + - "application/json" + parameters: + - in: body + name: routes-list + description: "list of routes to add" + required: true + schema: + $ref: "#/definitions/routelist" + responses: + 400: + description: "Invalid data" + 201: + description: "rmr routes added" + + /handles/delrmrroute: + delete: + tags: + - "handle" + summary: "API to delete RMR routes" + description: "By performing a DELETE method to add RMR routes" + operationId: "del_rmr_route" + consumes: + - "application/json" + produces: + - "application/json" + parameters: + - in: body + name: routes-list + description: "list of routes to delete" + required: true + schema: + $ref: "#/definitions/routelist" + responses: + 400: + description: "Invalid data" + 201: + description: "rmr routes added" definitions: health-status: type: "object" @@ -368,10 +434,53 @@ definitions: $ref: '#/definitions/ranNamelist' ranAssocList: $ref: "#/definitions/ran-e2t-map" - + endpoint: + type: "object" + properties: + EndPointName: + type: "string" + EndPointFqdn: + type: "string" + EndPointPort: + type: "integer" + format: "uint16" + minimum: 0 + maximum: 65535 + + debuginfo: + type: "object" + required: + - "RouteTable" + properties: + RouteTable: + type: "array" + items: + type: "string" + RouteConfigs: + type: "string" + add-rmr-route: + type: "object" + required: + - "TargetEndPoint" + - "MessageType" + properties: + TargetEndPoint: + type: "string" + MessageType: + type: "integer" + format: "uint32" + SenderEndPoint: + type: "string" + SubscriptionID: + type: "integer" + format: "int32" + + routelist: + type: "array" + items: + $ref: '#/definitions/add-rmr-route' + externalDocs: description: "Routing Manager" url: "http://placeholder" - -