From 8ffe87ec3f8dff87f88a1fff7452e2b263363039 Mon Sep 17 00:00:00 2001 From: Marcus G K Williams Date: Tue, 7 Nov 2017 11:35:10 -0800 Subject: Save brg service to md-sal in DG Issue-Id: SDNC-176 Change-Id: I406f53a00512ef5c656149d2090b94e12328398b Signed-off-by: Marcus G K Williams Former-commit-id: 204da530ab853b8825c1acec5a68e11194bd24d0 --- .../src/main/json/vcpe-services-service.json | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 platform-logic/restapi-templates/src/main/json/vcpe-services-service.json (limited to 'platform-logic/restapi-templates/src/main') diff --git a/platform-logic/restapi-templates/src/main/json/vcpe-services-service.json b/platform-logic/restapi-templates/src/main/json/vcpe-services-service.json new file mode 100644 index 00000000..3a448ec3 --- /dev/null +++ b/platform-logic/restapi-templates/src/main/json/vcpe-services-service.json @@ -0,0 +1,55 @@ +{ + "service": [ + { + "service-instance-id": ${tmp.service-data.service-information.service-instance-id}, + "service-status": { + "action": ${brg-ar.allotted-resource-status.action}, + "rpc-name": ${brg-ar.allotted-resource-status.rpc-name}, + "rpc-action": ${brg-ar.allotted-resource-status.rpc-action} + }, + "service-data": { + "service-level-oper-status": { + "last-order-status": ${tmp.service-data.oper-status.last-order-status}, + "order-status": ${tmp.service-data.oper-status.order-status}, + "last-action": ${tmp.service-data.oper-status.last-action} + }, + "service-topology": { + "service-topology-identifier": { + "service-id": ${tmp.service-data.service-information.service-id}, + "service-type": ${tmp.service-data.vnf-topology-information.vnf-topology-identifier.service-type}, + "service-instance-id": ${tmp.service-data.service-information.service-instance-id} + } + }, + "request-information": { + "request-action": ${tmp.service-data.request-information.request-action}, + "request-id": ${tmp.service-data.request-information.request-id}, + "source": ${tmp.service-data.request-information.source} + }, + "service-information": { + "service-instance-id": ${tmp.service-data.service-information.service-instance-id}, + "subscriber-name": ${tmp.service-data.service-information.subscriber-name} + }, + "sdnc-request-header": { + "svc-action": ${tmp.service-data.sdnc-request-header.svc-action}, + "svc-notification-url": ${tmp.service-data.sdnc-request-header.svc-notification-url}, + "svc-request-id": ${tmp.service-data.sdnc-request-header.svc-request-id} + }, + "vnfs": { + "vnf": [ + { + "vnf-id": ${tmp.service-data.vnf-request-information.vnf-id} + } + ] + }, + "consumed-allotted-resources": { + "consumed-allotted-resource": [ + { + "allotted-resource-type": ${brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.allotted-resource-type}, + "allotted-resource-id": ${brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.allotted-resource-id} + } + ] + } + } + } + ] +} -- cgit 1.2.3-korg