diff options
author | 2021-10-29 14:47:40 -0400 | |
---|---|---|
committer | 2021-11-01 10:17:41 -0400 | |
commit | 5b935a9086ec1080f896b9a71c52283122aa0163 (patch) | |
tree | f28aee1327e5b6c8ad423dec5950d46f66ac201b /ms/gra/gra-docker/src/main/templates | |
parent | 53b2788231f5ab3aeda4f09e1445a02c3a3b6be9 (diff) |
Sync local changes to support GRA microservice
Sync changes made downstream to support GRA microservice
Change-Id: If3bf5d879f7d61ab91209c63b0344d78128246a8
Issue-ID: CCSDK-3504
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/gra/gra-docker/src/main/templates')
11 files changed, 1115 insertions, 0 deletions
diff --git a/ms/gra/gra-docker/src/main/templates/contrail-route-allotted-resource.json b/ms/gra/gra-docker/src/main/templates/contrail-route-allotted-resource.json new file mode 100644 index 0000000..f5d862d --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/contrail-route-allotted-resource.json @@ -0,0 +1,102 @@ +{ + "contrail-route-allotted-resource": { + "allotted-resource-id": ${ar.allotted-resource-id}, + "allotted-resource-data": { + "contrail-route-topology": { + "allotted-resource-identifiers": { + "consuming-service-instance-id": ${ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.consuming-service-instance-id}, + "allotted-resource-name": ${ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.allotted-resource-name}, + "allotted-resource-id": ${ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.allotted-resource-id}, + "parent-service-instance-id": ${ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.parent-service-instance-id}, + "allotted-resource-type": ${ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.allotted-resource-type} + }, + "onap-model-information": { + "model-invariant-uuid": ${ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-uuid}, + "model-version": ${ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-version} + }, + "contrail-route-assignments": { + "fq-name": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name}, + "contrail-id": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-id}, + "vlan-tag": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.vlan-tag}, + "source-network": { + "network-id": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id}, + "network-role": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-role} + }, + "dest-network": { + "network-id": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id}, + "network-role": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-role} + }, + "contrail-applied-service": { + "service-instance-id": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.service-instance-id}, + "vnf-id": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.vnf-id}, + "contrail-fqdn": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.contrail-fqdn} + } + }, + "contrail-route-parameters": { + "param" : [ + ${repeat:ar.allotted-resource-data.contrail-route-topology.contrail-route-parameters_length: + { + "name": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-parameters[${1}].name}, + "value": ${ar.allotted-resource-data.contrail-route-topology.contrail-route-parameters[${1}].value} + } + } + ] + } + }, + "allotted-resource-operation-information": { + "allotted-resource-information": { + "allotted-resource-id": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.allotted-resource-id}, + "allotted-resource-type": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.allotted-resource-type}, + "parent-service-instance-id": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id}, + "onap-model-information": { + "model-invariant-uuid": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-uuid}, + "model-version": ${ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-version} + } + }, + "sdnc-request-header": { + "svc-request-id": ${ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id}, + "svc-action": ${ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-action} + }, + "request-information": { + "request-id": ${ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-id}, + "source": ${ar.allotted-resource-data.allotted-resource-operation-information.request-information.source}, + "order-version": ${ar.allotted-resource-data.allotted-resource-operation-information.request-information.order-version}, + "order-number": ${ar.allotted-resource-data.allotted-resource-operation-information.request-information.order-number}, + "notification-url": ${ar.allotted-resource-data.allotted-resource-operation-information.request-information.notification-url}, + "request-action": ${ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action} + }, + "contrail-route-request-input": { + "source-network": { + "network-id": ${ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.source-network.network-id}, + "network-role": ${ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.source-network.network-role} + }, + "dest-network": { + "network-id": ${ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.dest-network.network-id}, + "network-role": ${ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.dest-network.network-role} + }, + "contrail-applied-service-info": { + "service-instance-id" : ${ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.contrail-applied-service-info.service-instance-id} + } + } + }, + "allotted-resource-oper-status": { + "last-action": ${ar.allotted-resource-data.allotted-resource-oper-status.last-action}, + "modify-timestamp": ${ar.allotted-resource-data.allotted-resource-oper-status.modify-timestamp}, + "last-order-status": ${ar.allotted-resource-data.allotted-resource-oper-status.last-order-status}, + "create-timestamp": ${ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp}, + "order-status": ${ar.allotted-resource-data.allotted-resource-oper-status.order-status}, + "last-rpc-action": ${ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action}, + "last-svc-request-id": ${ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id} + } + }, + "allotted-resource-status" : { + "action": ${ar.allotted-resource-status.action}, + "rpc-name": ${ar.allotted-resource-status.rpc-name}, + "rpc-action": ${ar.allotted-resource-status.rpc-action} + } + } +} diff --git a/ms/gra/gra-docker/src/main/templates/csm-service-instance.json b/ms/gra/gra-docker/src/main/templates/csm-service-instance.json new file mode 100644 index 0000000..0df0df4 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/csm-service-instance.json @@ -0,0 +1,15 @@ +{ + "service": { + "service-instance-id": ${tmp.service-instance-id}, + "service-data": { + "service-information": { + "global-customer-id": ${output-global-customer-id} + }, + "service-topology": { + "service-topology-identifier": { + "service-type": ${output-service-type} + } + } + } + } +} diff --git a/ms/gra/gra-docker/src/main/templates/network-instance-group-network.json b/ms/gra/gra-docker/src/main/templates/network-instance-group-network.json new file mode 100644 index 0000000..ed44a04 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/network-instance-group-network.json @@ -0,0 +1,27 @@ +{
+ "network": {
+ "network-id": ${mdsal-nign.network[0].network-id},
+ "vpn-bindings": [
+ ${repeat:mdsal-nign.network[0].vpn-bindings_length:
+ {
+ "vpn-binding-id": ${mdsal-nign.network[0].vpn-bindings[${1}].vpn-binding-id},
+ "vpn-name": ${mdsal-nign.network[0].vpn-bindings[${1}].vpn-name},
+ "global-route-target": ${mdsal-nign.network[0].vpn-bindings[${1}].global-route-target},
+ "route-target-role": ${mdsal-nign.network[0].vpn-bindings[${1}].route-target-role},
+ "aic-zone": ${mdsal-nign.network[0].vpn-bindings[${1}].aic-zone}
+ }
+ }
+ ],
+ "vlan-tag-id": ${mdsal-nign.network[0].vlan-tag-id},
+ "network-status": ${mdsal-nign.network[0].network-status},
+ "customer-bonding-requests": {
+ "customer-bonding-request": [
+ ${repeat:mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length:
+ {
+ "configuration-id": ${mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request[${1}].configuration-id}
+ },
+ }
+ ]
+ }
+ }
+}
diff --git a/ms/gra/gra-docker/src/main/templates/network-level-oper-status.json b/ms/gra/gra-docker/src/main/templates/network-level-oper-status.json new file mode 100644 index 0000000..b38a17b --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/network-level-oper-status.json @@ -0,0 +1,11 @@ +{ + "oper-status": { + "order-status": ${network-level-oper-status.order-status}, + "last-rpc-action": ${network-level-oper-status.last-rpc-action}, + "last-action": ${network-level-oper-status.last-action}, + "last-svc-request-id": ${network-level-oper-status.last-svc-request-id}, + "last-order-status": ${network-level-oper-status.last-order-status}, + "create-timestamp": ${network-level-oper-status.create-timestamp}, + "modify-timestamp": ${network-level-oper-status.modify-timestamp} + } +} diff --git a/ms/gra/gra-docker/src/main/templates/network.json b/ms/gra/gra-docker/src/main/templates/network.json new file mode 100644 index 0000000..88d79e5 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/network.json @@ -0,0 +1,145 @@ +{ + "network": { + "network-id": ${network-data.network-information.network-id}, + "network-data": { + "network-provided-allotted-resources": { + "network-provided-ar-id": [ +${repeat:network-data.network-provided-allotted-resources.network-provided-ar-id_length: + ${network-data.network-provided-allotted-resources.network-provided-ar-id[${1}]}, +} + ] + }, + "network-level-oper-status": { + "order-status": ${network-data.network-level-oper-status.order-status}, + "last-rpc-action": ${network-data.network-level-oper-status.last-rpc-action}, + "last-action": ${network-data.network-level-oper-status.last-action}, + "last-svc-request-id": ${network-data.network-level-oper-status.last-svc-request-id}, + "last-order-status": ${network-data.network-level-oper-status.last-order-status}, + "create-timestamp": ${network-data.network-level-oper-status.create-timestamp}, + "modify-timestamp": ${network-data.network-level-oper-status.modify-timestamp} + }, + "sdnc-request-header": { + "svc-request-id": ${network-data.sdnc-request-header.svc-request-id}, + "svc-action": ${network-data.sdnc-request-header.svc-action}, + "svc-notification-url": ${network-data.sdnc-request-header.svc-notification-url} + }, + "request-information": { + "request-id": ${network-data.request-information.request-id}, + "request-action": ${network-data.request-information.request-action}, + "source": ${network-data.request-information.source}, + "notification-url": ${network-data.request-information.notification-url}, + "order-number": ${network-data.request-information.order-number}, + "order-version": ${network-data.request-information.order-version} + }, + "network-request-input": { + "network-name": ${network-data.network-request-input.network-name}, + "network-input-parameters": { + "param": [ +${repeat:network-data.network-request.network-input-parameters.param_length: + { + "name": ${network-data.network-request-inputnetwork-input-parameters.param[${1}].name}, + "value": ${network-data.network-request-inputnetwork-input-parameters.param[${1}].value}, + "resource-resolution-data": { + "resource-key": [ +${repeat:network-data.network-request.network-input-parameters.param[${1}].resource-resolution-data.resource_key_length: + { + "name": ${network-data.network-request.network-input-parameters.param[${1}].resource-resolution-data.resource_key[${2}].name}, + "value": ${network-data.network-request.network-input-parameters.param[${1}].resource-resolution-data.resource_key[${2}].value} + } +} + ], + "status": ${network-data.network-request-inputnetwork-input-parameters.param[${1}].status}, + "capability-name": ${network-data.network-request-inputnetwork-input-parameters.param[${1}].capability-name} + } + }, +} + ] + }, + "network-instance-group-id": ${network-data.network-request-input.network-instance-group-id}, + "tenant": ${network-data.network-request-input.tenant}, + "aic-cloud-region": ${network-data.network-request-input.aic-cloud-region}, + "cloud-owner": ${network-data.network-request-input.cloud-owner}, + "aic-clli": ${network-data.network-request-input.aic-clli} + }, + "network-information": { + "network-id": ${network-data.network-information.network-id}, + "network-type": ${network-data.network-information.network-type}, + "network-technology": ${network-data.network-information.network-technology}, + "from-preload": ${network-data.network-information.from-preload}, + "onap-model-information": { + "model-invariant-uuid": ${network-data.network-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${network-data.network-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${network-data.network-topology.onap-model-information.model-uuid}, + "model-version": ${network-data.network-topology.onap-model-information.model-version}, + "model-name": ${network-data.network-topology.onap-model-information.model-name} + } + }, + "service-information": { + "service-id": ${network-data.service-information.service-id}, + "subscription-service-type": ${network-data.service-information.subscription-service-type}, + "service-instance-id": ${network-data.service-information.service-instance-id}, + "global-customer-id": ${network-data.service-information.global-customer-id}, + "subscriber-name": ${network-data.service-information.subscriber-name}, + "onap-model-information": { + "model-invariant-uuid": ${network-data.service-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${network-data.onap-model-information.model-customization-uuid}, + "model-uuid": ${network-data.onap-model-information.model-uuid}, + "model-version": ${network-data.onap-model-information.model-version}, + "model-name": ${network-data.onap-model-information.model-name} + } + }, + "network-topology": { + "tenant": ${network-data.network-topology.tenant}, + "aic-cloud-region": ${network-data.network-topology.aic-cloud-region}, + "cloud-owner": ${network-data.network-topology.cloud-owner}, + "aic-clli": ${network-data.network-topology.aic-clli}, + "network-parameters": { + "network-parameter": [ +${repeat:network-data.network-topology.network-parameters.network-parameter_length: + { + "network-parameter-name": ${network-data.network-topology.network-parameters.network-parameter[${1}].network-parameter-name}, + "network-parameter-value": ${network-data.network-topology.network-parameters.network-parameter[${1}].network-parameter-value} + }, +} + ] + }, + "onap-model-information": { + "model-invariant-uuid": ${network-data.network-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${network-data.network-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${network-data.network-topology.onap-model-information.model-uuid}, + "model-version": ${network-data.network-topology.onap-model-information.model-version}, + "model-name": ${network-data.network-topology.onap-model-information.model-name} + }, + "network-assignments": {}, + "network-topology-identifier-structure": { + "network-id": ${network-data.network-topology.network-topology-identifier-structure.network-id}, + "network-name": ${network-data.network-topology.network-topology-identifier-structure.network-name}, + "network-role": ${network-data.network-topology.network-topology-identifier-structure.network-role}, + "network-type": ${network-data.network-topology.network-topology-identifier-structure.network-type}, + "network-instance-group-id": ${network-data.network-topology.network-topology-identifier-structure.network-instance-group-id}, + "network-technology": ${network-data.network-topology.network-topology-identifier-structure.network-technology}, + "eipam-v4-address-plan": ${network-data.network-topology.network-topology-identifier-structure.eipam-v4-address-plan}, + "eipam-v6-address-plan": ${network-data.network-topology.network-topology-identifier-structure.eipam-v6-address-plan}, + "is-trunked": ${network-data.network-topology.network-topology-identifier-structure.is-trunked}, + "segmentation-id": ${network-data.network-topology.network-topology-identifier-structure.segmentation-id}, + "related-networks": { + "related-network": [ +${repeat:network-data.network-topology.network-topology-identifier-structure.related-networks.related-network_length: + { + "network-id": ${network-data.network-topology.network-topology-identifier-structure.related-networks.related-network[${1}].network-id}, + "network-role": ${network-data.network-topology.network-topology-identifier-structure.related-networks.related-network[${1}].network-role}, + "vlan-tags": { + "vlan-interface": ${network-data.network-topology.network-topology-identifier-structure.related-networks.related-network[${1}].vlan-tags.vlan-interface}, + "upper-tag-id": ${network-data.network-topology.network-topology-identifier-structure.related-networks.related-network[${1}].vlan-tags.upper-tag-id}, + "lower-tag-id": ${network-data.network-topology.network-topology-identifier-structure.related-networks.related-network[${1}].vlan-tags.lower-tag-id}, + "is-private": ${network-data.network-topology.network-topology-identifier-structure.related-networks.related-network[${1}].vlan-tags.is-private} + } + }, +} + ] + } + } + } + } + } +} diff --git a/ms/gra/gra-docker/src/main/templates/port-mirror-configuration.json b/ms/gra/gra-docker/src/main/templates/port-mirror-configuration.json new file mode 100644 index 0000000..f18d191 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/port-mirror-configuration.json @@ -0,0 +1,152 @@ +{ + "port-mirror-configuration": { + "configuration-id": ${pm.configuration-id}, + "configuration-data": { + "configuration-operation-information": { + "sdnc-request-header": { + "svc-request-id": ${pm.configuration-data.configuration-operation-information.sdnc-request-header.svc-request-id}, + "svc-action": ${pm.configuration-data.configuration-operation-information.sdnc-request-header.svc-action}, + "svc-notification-url": ${pm.configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url} + }, + "request-information": { + "request-id": ${pm.configuration-data.configuration-operation-information.request-information.request-id}, + "request-action": ${pm.configuration-data.configuration-operation-information.request-information.request-action}, + "source": ${pm.configuration-data.configuration-operation-information.request-information.source}, + "notification-url": ${pm.configuration-data.configuration-operation-information.request-information.notification-url}, + "order-number": ${pm.configuration-data.configuration-operation-information.request-information.order-number}, + "order-version": ${pm.configuration-data.configuration-operation-information.request-information.order-version} + }, + "service-information": { + "service-id": ${pm.configuration-data.configuration-operation-information.service-information.service-id}, + "subscription-service-type": ${pm.configuration-data.configuration-operation-information.service-information.subscription-service-type}, + "onap-model-information": { + "model-invariant-uuid": ${pm.configuration-data.configuration-operation-information.service-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${pm.configuration-data.configuration-operation-information.service-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${pm.configuration-data.configuration-operation-information.service-information.onap-model-information.model-uuid}, + "model-version": ${pm.configuration-data.configuration-operation-information.service-information.onap-model-information.model-version}, + "model-name": ${pm.configuration-data.configuration-operation-information.service-information.onap-model-information.model-name} + }, + "service-instance-id": ${pm.configuration-data.configuration-operation-information.service-information.service-instance-id}, + "global-customer-id": ${pm.configuration-data.configuration-operation-information.service-information.global-customer-id}, + "subscriber-name": ${pm.configuration-data.configuration-operation-information.service-information.subscriber-name} + }, + "configuration-information": { + "configuration-id": ${pm.configuration-data.configuration-operation-information.configuration-information.configuration-id}, + "configuration-type": ${pm.configuration-data.configuration-operation-information.configuration-information.configuration-type}, + "configuration-sub-type": ${pm.configuration-data.configuration-operation-information.configuration-information.configuration-sub-type}, + "onap-model-information": { + "model-invariant-uuid": ${pm.configuration-data.configuration-operation-information.configuration-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${pm.configuration-data.configuration-operation-information.configuration-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${pm.configuration-data.configuration-operation-information.configuration-information.onap-model-information.model-uuid}, + "model-version": ${pm.configuration-data.configuration-operation-information.configuration-information.onap-model-information.model-version}, + "model-name": ${pm.configuration-data.configuration-operation-information.configuration-information.onap-model-information.model-name} + } + }, + "port-mirror-configuration-request-input": { + "source-port": { + "sevice-instance-id": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.source-port.service-instance-id}, + "vnf-information": { + "vnf-id": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.source-port.vnf-information.vnf-id}, + "vnf-type": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.source-port.vnf-information.vnf-type} + } + }, + "dest-port": { + "sevice-instance-id": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.dest-port.service-instance-id}, + "vnf-information": { + "vnf-id": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.dest-port.vnf-information.vnf-id}, + "vnf-type": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.dest-port.vnf-information.vnf-type} + }, + "pnf-information": { + "pnf-name": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.dest-port.pnf-information.pnf-name}, + "pnf-type": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.dest-port.pnf-information.pnf-type} + } + }, + "tenant": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.tenant}, + "aic-cloud-region": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.aic-cloud-region}, + "aic-clli": ${pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.aic-clli} + } + }, + "port-mirror-configuration-topology": { + "configuration-identifiers": { + "configuration-id": ${pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-id}, + "configuration-name": ${pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-name}, + "configuration-type": ${pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-type}, + "configuration-sub-type": ${pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-sub-type}, + "parent-service-instance-id": ${pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.parent-service-instance-id} + }, + "onap-model-information": { + "model-invariant-uuid": ${pm.configuration-data.port-mirror-configuration-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${pm.configuration-data.port-mirror-configuration-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${pm.configuration-data.port-mirror-configuration-topology.onap-model-information.model-uuid}, + "model-version" ${pm.configuration-data.port-mirror-configuration-topology.onap-model-information.model-version}, + "model-name": ${pm.configuration-data.port-mirror-configuration-topology.onap-model-information.model-name} + }, + "port-mirror-configuration-assignments": { + "vnics-group-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id}, + "owning-entity": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.owning-entity}, + "tenant-context": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-context}, + "tenant": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant}, + "tenant-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-id}, + "cloud-region-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-region-id}, + "cloud-owner": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-owner}, + "dest-network-fqdn": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-network-fqdn}, + "source-network-fqdn": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-network-fqdn}, + "source-capacity": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-capacity}, + "source-vnf-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnf-id}, + "dest-vnf-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnf-id}, + "dest-pnf-name": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-pnf-name}, + "dest-p-interface": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-p-interface}, + "dest-pnf-port-policy-name": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-pnf-port-policy-name}, + "probe-type": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type}, + "route-allotted-resource-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.route-allotted-resource-id}, + "source-vnfc-instance-group-id": { + "service-instance-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.service-instance-id}, + "nfc-function": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.nfc-function}, + "instance-group-role": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.instance-group-role}, + "configuration-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.configuration-id} + }, + "dest-vnfc-instance-group-id": { + "service-instance-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.service-instance-id}, + "nfc-function": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.nfc-function}, + "instance-group-role": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.instance-group-role}, + "configuration-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.configuration-id} + }, + "source-to-dest-maps": { + "source-to-dest-map": [ + ${repeat:pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length: + { + "source-port-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].source-port-id}, + "source-port-name": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].source-port-name}, + "dest-port-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-port-id}, + "dest-port-name": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-port-name}, + "link-name": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].link-name}, + "source-vserver-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].source-vserver-id}, + "dest-vserver-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-vserver-id}, + "dest-ip-addresses": { + "ip-addresses": { + "ipv4-address": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-ip-addresses.ip-addresses.ipv4-address}, + "ipv6-address": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-ip-addresses.ip-addresses.ipv6-address}, + "vipv4-address": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-ip-addresses.ip-addresses.vipv4-address}, + "vipv6-address": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[${1}].dest-ip-addresses.ip-addresses.vipv6-address} + } + } + }, + } + ] + }, + "port-mirror-configuration-instance-id": ${pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.port-mirror-configuration-instance-id} + } + }, + "configuration-oper-status": { + "order-status": ${pm.configuration-data.configuration-oper-status.order-status}, + "last-rpc-action": ${pm.configuration-data.configuration-oper-status.last-rpc-action}, + "last-action": ${pm.configuration-data.configuration-oper-status.last-action}, + "last-svc-request-id": ${pm.configuration-data.configuration-oper-status.last-svc-request-id}, + "last-order-status": ${pm.configuration-data.configuration-oper-status.last-order-status}, + "create-timestamp": ${pm.configuration-data.configuration-oper-status.create-timestamp}, + "modify-timestamp": ${pm.configuration-data.configuration-oper-status.modify-timestamp} + } + } + } +} + diff --git a/ms/gra/gra-docker/src/main/templates/security-zone-allotted-resource.json b/ms/gra/gra-docker/src/main/templates/security-zone-allotted-resource.json new file mode 100644 index 0000000..afbd0bb --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/security-zone-allotted-resource.json @@ -0,0 +1,78 @@ +{ + "security-zone-allotted-resource": { + "allotted-resource-id": ${sz-ar.allotted-resource-id}, + "allotted-resource-data": { + "security-zone-topology": { + "allotted-resource-identifiers": { + "consuming-service-instance-id": ${sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.consuming-service-instance-id}, + "allotted-resource-name": ${sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.allotted-resource-name}, + "allotted-resource-id": ${sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.allotted-resource-id}, + "parent-service-instance-id": ${sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.parent-service-instance-id}, + "allotted-resource-type": ${sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.allotted-resource-type} + }, + "onap-model-information": { + "model-invariant-uuid": ${sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-uuid}, + "model-version": ${sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-version} + }, + "security-zone-assignments": { + "trusted-network-role": ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.trusted-network-role}, + "security-zone-name-trusted": ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-name-trusted}, + "security-zone-name-untrusted": ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-name-untrusted}, + "untrusted-network-role": ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.untrusted-network-role}, + "security-zone-service-instance-id" : ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-service-instance-id}, + "security-zone-vnf-id" : ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id}, + "vlan-tag": ${sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.vlan-tag} + }, + "security-zone-parameters": { + } + + }, + "allotted-resource-operation-information": { + "allotted-resource-information": { + "allotted-resource-id": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.allotted-resource-id}, + "allotted-resource-type": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.allotted-resource-type}, + "parent-service-instance-id": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id}, + "onap-model-information": { + "model-invariant-uuid": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-uuid}, + "model-version": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.onap-model-information.model-version} + } + }, + "sdnc-request-header": { + "svc-request-id": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id}, + "svc-action": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-action} + }, + "request-information": { + "request-id": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-id}, + "source": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.source}, + "order-version": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.order-version}, + "order-number": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.order-number}, + "notification-url": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.notification-url}, + "request-action": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action} + }, + "security-zone-request-input": { + "vlan-tag": ${sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.vlan-tag}, + "trusted-network-role" : ${sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.trusted-network-role}, + "untrusted-network-role" : ${sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.untrusted-network-role} + } + }, + "allotted-resource-oper-status": { + "last-action": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action}, + "modify-timestamp": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.modify-timestamp}, + "last-order-status": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.last-order-status}, + "create-timestamp": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp}, + "order-status": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status}, + "last-rpc-action": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action}, + "last-svc-request-id": ${sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id} + } + }, + "allotted-resource-status" : { + "action": ${sz-ar.allotted-resource-status.action}, + "rpc-name": ${sz-ar.allotted-resource-status.rpc-name}, + "rpc-action": ${sz-ar.allotted-resource-status.rpc-action} + } + } +} diff --git a/ms/gra/gra-docker/src/main/templates/vf-module-assign.json b/ms/gra/gra-docker/src/main/templates/vf-module-assign.json new file mode 100644 index 0000000..ed2e4f0 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/vf-module-assign.json @@ -0,0 +1,279 @@ +{ + "vf-module": { + "vf-module-id": ${vf-module-topology-operation-input.vf-module-information.vf-module-id}, + "vf-module-data": { + "sdnc-request-header": { + "svc-request-id": ${vf-module-data.sdnc-request-header.svc-request-id}, + "svc-action": ${vf-module-data.sdnc-request-header.svc-action}, + "svc-notification-url": ${vf-module-data.sdnc-request-header.svc-notification-url} + }, + "request-information": { + "request-id": ${vf-module-data.request-information.request-id}, + "request-action": ${vf-module-data.request-information.request-action}, + "source": ${vf-module-data.request-information.source}, + "notification-url": ${vf-module-data.request-information.notification-url}, + "order-number": ${vf-module-data.request-information.order-number}, + "order-version": ${vf-module-data.request-information.order-version} + }, + "service-information": { + "service-id": ${vf-module-data.service-information.service-id}, + "subscription-service-type": ${vf-module-data.service-information.subscription-service-type}, + "onap-model-information": { + "model-invariant-uuid": ${vf-module-data.service-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vf-module-data.service-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${vf-module-data.service-information.onap-model-information.model-uuid}, + "model-version": ${vf-module-data.service-information.onap-model-information.model-version}, + "model-name": ${vf-module-data.service-information.onap-model-information.model-name} + }, + "service-instance-id": ${vf-module-data.service-information.service-instance-id}, + "global-customer-id": ${vf-module-data.service-information.global-customer-id}, + "subscriber-name": ${vf-module-data.service-information.subscriber-name} + }, + "vnf-information": { + "vnf-id": ${vf-module-data.vnf-information.vnf-id}, + "vnf-type": ${vf-module-data.vnf-information.vnf-type}, + "vnf-name": ${vf-module-data.vnf-information.vnf-name}, + "onap-model-information": { + "model-invariant-uuid": ${vf-module-data.vnf-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vf-module-data.vnf-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${vf-module-data.vnf-information.onap-model-information.model-uuid}, + "model-version": ${vf-module-data.vnf-information.onap-model-information.model-version}, + "model-name": ${vf-module-data.vnf-information.onap-model-information.model-name} + } + }, + "vf-module-information": { + "vf-module-id": ${vf-module-data.vf-module-information.vf-module-id}, + "vf-module-type": ${vf-module-data.vf-module-information.vf-module-type}, + "from-preload": ${vf-module-data.vf-module-information.from-preload}, + "onap-model-information": { + "model-invariant-uuid": ${vf-module-data.vf-module-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vf-module-data.vf-module-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${vf-module-data.vf-module-information.onap-model-information.model-uuid}, + "model-version": ${vf-module-data.vf-module-information.onap-model-information.model-version}, + "model-name": ${vf-module-data.vf-module-information.onap-model-information.model-name} + } + }, + "vf-module-request-input": { + "request-version": ${vf-module-data.vf-module-request-input.request-version}, + "vf-module-name": ${vf-module-data.vf-module-request-input.vf-module-name}, + "tenant": ${vf-module-data.vf-module-request-input.tenant}, + "aic-cloud-region": ${vf-module-data.vf-module-request-input.aic-cloud-region}, + "aic-clli": ${vf-module-data.vf-module-request-input.aic-clli}, + "vf-module-input-parameters": { + "param": [ +${repeat:vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length: + { + "name": ${vf-module-data.vf-module-request-input.vf-module-input-parameters.param[${1}].name}, + "value": ${vf-module-data.vf-module-request-input.vf-module-input-parameters.param[${1}].value} + }, +} + ] + } + }, + "vf-module-topology": { + "vf-module-topology-identifier": { + "vf-module-id": ${vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id}, + "vf-module-name": ${vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-name}, + "vf-module-type": ${vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-type} + }, + "tenant": ${vf-module-data.vf-module-topology.tenant}, + "aic-cloud-region": ${vf-module-data.vf-module-topology.aic-cloud-region}, + "cloud-owner": ${vf-module-data.vf-module-topology.cloud-owner}, + "aic-clli": ${vf-module-data.vf-module-topology.aic-clli}, + "onap-model-information": { + "model-invariant-uuid": ${vf-module-data.vf-module-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vf-module-data.vf-module-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${vf-module-data.vf-module-topology.onap-model-information.model-uuid}, + "model-version": ${vf-module-data.vf-module-topology.onap-model-information.model-version}, + "model-name": ${vf-module-data.vf-module-topology.onap-model-information.model-name} + }, + "vf-module-assignments": { + "vf-module-status": ${vf-module-data.vf-module-topology.vf-module-assignments.vf-module-status}, + "vms": { + "vm": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm_length: + { + "vm-type": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-type}, + "onap-model-information": { + "model-invariant-uuid": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-customization-uuid}, + "model-uuid": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-uuid}, + "model-version": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-version}, + "model-name": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].onap-model-information.model-name} + }, + "nfc-naming-code": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].nfc-naming-code}, + "vm-type-tag": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-type-tag}, + "vm-count": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-count}, + "vm-names": { + "vm-name": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vm-name_length: + ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vm-name[${2}]}, +} + ], + "vnfc-names": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names_length: + { + "vnfc-name": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-name}, + "vnfc-networks": { + "vnfc-network-data": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data_length: + { + "vnfc-network-role": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-network-role}, + "vnfc-type": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-type}, + "connection-point": { + "connection-point-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.connection-point-id}, + "port-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.port-id}, + "vlan-data": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data_length: + { + "vlan-uuid": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-uuid}, + "vlan-tag-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-tag-id}, + "vlan-tag-description": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-tag-description}, + "vlan-role": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].connection-point.vlan-data[${4}].vlan-role} + }, +} + ] + }, + "vnfc-subnet": { + "vnfc-subnet-role": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-subnet-role}, + "vnfc-ip-assignments": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments_length: + { + "vnfc-address-family": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-ip-assignments}, + "vnfc-subnet-dhcp": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-subnet-dhcp}, + "vnfc-subnet-ip-count": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-subnet-ip-count}, + "vnfc-subnet-ip": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-subnet-ip_length: + { + "vnfc-ip-address": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-subnet-ip[${5}].vnfc-ip-address}, + "vnfc-client-key": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-subnet-ip[${5}].vnfc-client-key}, + "ip-type": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-names.vnfc-names[${2}].vnfc-networks.vnfc-network-data[${3}].vnfc-subnet.vnfc-ip-assignments[${4}].vnfc-subnet-ip[${5}].ip-type} + } +} + ] + } +} + ] + } + }, +} + ] + } + }, +} + ] + }, + "vm-networks": { + "vm-network": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network_length: + { + "network-role": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-role}, + "network-role-tag": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-role-tag}, + "network-information-items": { + "network-information-item": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-information-items.network-information-item_length: + { + "ip-version": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-information-items.network-information-item[${3}].ip-version}, + "use-dhcp": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-information-items.network-information-item[${3}].use-dhcp}, + "ip-count": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-information-items.network-information-item[${3}].ip-count}, + "network-ips": { + "network-ip": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-information-items.network-information-item[${3}].network-ips.network-ip_length: + ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].network-information-items.network-information-item[${3}].network-ips.network-ip[${4}]}, +} + ] + } + }, +} + ] + }, + "mac-addresses": { + "mac-address": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].mac-addresses.mac-address_length: + ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].mac-addresses.mac-address[${3}]}, +} + ] + }, + "floating-ips": { + "floating-ip-v4": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].floating-ips.floating-ip-v4_length: + ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].floating-ips.floating-ip-v4[${3}]}, +} + ], + "floating-ip-v6": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].floating-ips.floating-ip-v6_length: + ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].floating-ips.floating-ip-v6[${3}]}, +} + ] + }, + "interface-route-prefixes": { + "interface-route-prefix": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].interface-route-prefixes.interface-route-prefix: + ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].interface-route-prefixes.interface-route-prefix[${3}]}, +} + ] + }, + "is-trunked": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].is-trunked}, + "segmentation-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].segmentation-id}, + "related-networks": { + "related-network": [ +${repeat:vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network_length: + { + "network-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network[${3}].network-id}, + "network-role": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network[${3}].network-role}, + "vlan-tags": { + "vlan-interface": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network[${3}].vlan-tags.vlan-interface}, + "upper-tag-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network[${3}].vlan-tags.upper-tag-id}, + "lower-tag-id": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network[${3}].vlan-tags.lower-tag-id}, + "is-private": ${vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[${1}].vm-networks.vm-network[${2}].related-networks.related-network[${3}].vlan-tags.is-private} + } + }, +} + ] + } + }, +} + ] + } + }, +} + ] + } + }, + "vf-module-parameters": { + "param": [ +${repeat:vf-module-data.vf-module-topology.vf-module-parameters.param_length: + { + "name": ${vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].name}, + "value": ${vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].value}, + "resource-resolution-data": { + "resource-key": [ +${repeat:vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key_length: + { + "name": ${vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key[${2}].name}, + "value": ${vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.resource-key[${2}].value} + }, +} + ], + "status": ${vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.status}, + "capability-name": ${vf-module-data.vf-module-topology.vf-module-parameters.param[${1}].resource-resolution-data.capability-name} + }, + }, +} + ] + }, + "sdnc-generated-cloud-resources": ${vf-module-data.vf-module-topology.sdnc-generated-cloud-resources} + }, + "vf-module-level-oper-status": { + "order-status": ${vf-module-data.vf-module-level-oper-status.order-status}, + "last-rpc-action": ${vf-module-data.vf-module-level-oper-status.last-rpc-action}, + "last-action": ${vf-module-data.vf-module-level-oper-status.last-action}, + "last-svc-request-id": ${vf-module-data.vf-module-level-oper-status.last-svc-request-id}, + "last-order-status": ${vf-module-data.vf-module-level-oper-status.last-order-status}, + "create-timestamp": ${vf-module-data.vf-module-level-oper-status.create-timestamp}, + "modify-timestamp": ${vf-module-data.vf-module-level-oper-status.modify-timestamp} + } + } + } +} + diff --git a/ms/gra/gra-docker/src/main/templates/vnf-data-assign.json b/ms/gra/gra-docker/src/main/templates/vnf-data-assign.json new file mode 100644 index 0000000..a58c811 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/vnf-data-assign.json @@ -0,0 +1,249 @@ +{ + "vnf": { + "vnf-id": ${vnf-topology-operation-input.vnf-information.vnf-id}, + "vnf-data": { + "sdnc-request-header": { + "svc-request-id": ${vnf-data.sdnc-request-header.svc-request-id}, + "svc-action": ${vnf-data.sdnc-request-header.svc-action}, + "svc-notification-url": ${vnf-data.sdnc-request-header.svc-notification-url} + }, + "request-information": { + "request-id": ${vnf-data.request-information.request-id}, + "request-action": ${vnf-data.request-information.request-action}, + "source": ${vnf-data.request-information.source}, + "notification-url": ${vnf-data.request-information.notification-url}, + "order-number": ${vnf-data.request-information.order-number}, + "order-version": ${vnf-data.request-information.order-version} + }, + "service-information": { + "service-id": ${vnf-data.service-information.service-id}, + "subscription-service-type": ${vnf-data.service-information.subscription-service-type}, + "onap-model-information": { + "model-invariant-uuid": ${vnf-data.service-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vnf-data.service-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${vnf-data.service-information.onap-model-information.model-uuid}, + "model-version": ${vnf-data.service-information.onap-model-information.model-version}, + "model-name": ${vnf-data.service-information.onap-model-information.model-name} + }, + "service-instance-id": ${vnf-data.service-information.service-instance-id}, + "global-customer-id": ${vnf-data.service-information.global-customer-id}, + "subscriber-name": ${vnf-data.service-information.subscriber-name} + }, + "vnf-information": { + "vnf-id": ${vnf-data.vnf-information.vnf-id}, + "vnf-type": ${vnf-data.vnf-information.vnf-type}, + "vnf-name": ${vnf-data.vnf-information.vnf-name}, + "onap-model-information": { + "model-invariant-uuid": ${vnf-data.vnf-information.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vnf-data.vnf-information.onap-model-information.model-customization-uuid}, + "model-uuid": ${vnf-data.vnf-information.onap-model-information.model-uuid}, + "model-version": ${vnf-data.vnf-information.onap-model-information.model-version}, + "model-name": ${vnf-data.vnf-information.onap-model-information.model-name} + } + }, + "vnf-request-input": { + "request-version": ${vnf-data.vnf-request-input.request-version}, + "vnf-name": ${vnf-data.vnf-request-input.vnf-name}, + "tenant": ${vnf-data.vnf-request-input.tenant}, + "aic-cloud-region": ${vnf-data.vnf-request-input.aic-cloud-region}, + "cloud-owner": ${vnf-data.vnf-request-input.cloud-owner}, + "aic-clli": ${vnf-data.vnf-request-input.aic-clli}, + "vnf-networks": { + "vnf-network": [ +${repeat:vnf-data.vnf-request-input.vnf-networks.vnf-network_length: + { + "network-role": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].network-role}, + "network-name": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].network-name}, + "neutron-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].neutron-id}, + "network-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].network-id}, + "contrail-network-fqdn": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].contrail-network-fqdn}, + "subnets-data": { + "subnet-data": [ +${repeat:vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data_length: + { + "sdnc-subnet-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].sdnc-subnet-id}, + "subnet-role": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].subnet-role}, + "subnet-name": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].subnet-name}, + "ip-version": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].ip-version}, + "subnet-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].subnet-id}, + "dhcp-enabled": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].dhcp-enabled}, + "network-start-address": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].network-start-address}, + "gateway-address": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].gateway-address}, + "cidr-mask": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].cidr-mask} + }, +} + ] + }, + "is-trunked": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].is-trunked}, + "segmentation-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].segmentation-id}, + "related-networks": { + "related-network": [ +${repeat:vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network_length: + { + "network-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].network-id}, + "network-role": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].network-role}, + "vlan-tags": { + "vlan-interface": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.vlan-interface}, + "upper-tag-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.upper-tag-id}, + "lower-tag-id": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.lower-tag-id}, + "is-private": ${vnf-data.vnf-request-input.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.is-private} + } + }, +} + ] + }, + }, +} + ] + }, + "vnf-network-instance-group-ids": [ +${repeat:vnf-data.vnf-request-input.vnf-network-instance-group-ids_length: + { + "vnf-network-instance-group-id": ${vnf-data.vnf-request-input.vnf-network-instance-group-ids[${1}].vnf-network-instance-group-id} + }, +} + ], + "vnf-input-parameters": { + "param": [ +${repeat:vnf-data.vnf-request-input.vnf-input-parameters.param_length: + { + "name": ${vnf-data.vnf-request-input.vnf-input-parameters.param[${1}].name}, + "value": ${vnf-data.vnf-request-input.vnf-input-parameters.param[${1}].value} + }, +} + ] + } + }, + "vnf-topology": { + "vnf-topology-identifier-structure": { + "vnf-id": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id}, + "vnf-type": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type}, + "nf-type": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type}, + "nf-role": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role}, + "nf-function": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function}, + "nf-code": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code}, + "vnf-name": ${vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name}, + }, + "tenant": ${vnf-data.vnf-topology.tenant}, + "aic-cloud-region": ${vnf-data.vnf-topology.aic-cloud-region}, + "cloud-owner": ${vnf-data.vnf-topology.cloud-owner}, + "aic-clli": ${vnf-data.vnf-topology.aic-clli}, + "onap-model-information": { + "model-invariant-uuid": ${vnf-data.vnf-topology.onap-model-information.model-invariant-uuid}, + "model-customization-uuid": ${vnf-data.vnf-topology.onap-model-information.model-customization-uuid}, + "model-uuid": ${vnf-data.vnf-topology.onap-model-information.model-uuid}, + "model-version": ${vnf-data.vnf-topology.onap-model-information.model-version}, + "model-name": ${vnf-data.vnf-topology.onap-model-information.model-name}, + }, + "vnf-resource-assignments": { + "vnf-status": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-status}, + "availability-zones": { + "availability-zone": [ +${repeat:vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone_length: + ${vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[${1}]}, +} + ] + }, + "vnf-networks": { + "vnf-network": [ +${repeat:vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length: + { + "network-role": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].network-role}, + "network-name": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].network-name}, + "neutron-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].neutron-id}, + "network-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].network-id}, + "contrail-network-fqdn": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].contrail-network-fqdn}, + "subnets-data": { + "subnet-data": [ +${repeat:vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data_length: + { + "sdnc-subnet-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].sdnc-subnet-id}, + "subnet-role": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].subnet-role}, + "subnet-name": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].subnet-name}, + "ip-version": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].ip-version}, + "subnet-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].subnet-id}, + "dhcp-enabled": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].dhcp-enabled}, + "network-start-address": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].network-start-address}, + "gateway-address": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].gateway-address}, + "cidr-mask": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].subnets-data.subnet-data[${2}].cidr-mask} + }, +} + ] + }, + "is-trunked": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].is-trunked}, + "segmentation-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].segmentation-id}, + "related-networks": { + "related-network": [ +${repeat:vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network_length: + { + "network-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].network-id}, + "network-role": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].network-role}, + "vlan-tags": { + "vlan-interface": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.vlan-interface}, + "upper-tag-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.upper-tag-id}, + "lower-tag-id": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.lower-tag-id}, + "is-private": ${vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[${1}].related-networks.related-network[${2}].vlan-tags.is-private} + } + }, +} + ] + } + }, +} + ] + } + }, + "vnf-parameters-data": { + "param": [ +${repeat:vnf-data.vnf-topology.vnf-parameters-data.param_length: + { + "name": ${vnf-data.vnf-topology.vnf-parameters-data.param[${1}].name}, + "value": ${vnf-data.vnf-topology.vnf-parameters-data.param[${1}].value} + }, +} + ] + }, + "sdnc-generated-cloud-resources": ${vnf-data.vnf-topology.sdnc-generated-cloud-resources}, + }, + "vnf-network-collections": { + "vnf-network-collection": [ +${repeat:vnf-data.vnf-network-collections.vnf-network-collection_length: + { + "network-instance-group-function": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].network-instance-group-function}, + "network-instance-group-id": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].network-instance-group-id}, + "network-collection-service-instance-id": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].network-collection-service-instance-id}, + "network-collection-customization-uuid": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].network-collection-customization-uuid}, + "networks": { + "network": [ +${repeat:vnf-data.vnf-network-collections.vnf-network-collection[${1}].networks.network_length: + { + "network-id": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].networks.network[${2}].network-id}, + "neutron-network-id": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].networks.network[${2}].neutron-network-id} + }, +} + ] + }, + "vnf-floating-ip": { + "ip-addresses": { + "ipv4-address": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].vnf-floating-ip.ip-addresses.ipv4-address}, + "ipv6-address": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].vnf-floating-ip.ip-addresses.ipv6-address}, + "vipv4-address": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].vnf-floating-ip.ip-addresses.vipv4-address}, + "vipv6-address": ${vnf-data.vnf-network-collections.vnf-network-collection[${1}].vnf-floating-ip.ip-addresses.vipv6-address} + } + } + }, +} + ] + }, + "vnf-level-oper-status": { + "order-status": ${vnf-data.vnf-level-oper-status.order-status}, + "last-rpc-action": ${vnf-data.vnf-level-oper-status.last-rpc-action}, + "last-action": ${vnf-data.vnf-level-oper-status.last-action}, + "last-svc-request-id": ${vnf-data.vnf-level-oper-status.last-svc-request-id}, + "last-order-status": ${vnf-data.vnf-level-oper-status.last-order-status}, + "create-timestamp": ${vnf-data.vnf-level-oper-status.create-timestamp}, + "modify-timestamp": ${vnf-data.vnf-level-oper-status.modify-timestamp} + } + } + } +} diff --git a/ms/gra/gra-docker/src/main/templates/vnf-level-oper-status.json b/ms/gra/gra-docker/src/main/templates/vnf-level-oper-status.json new file mode 100644 index 0000000..6f80b46 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/vnf-level-oper-status.json @@ -0,0 +1,12 @@ +{ + "oper-status": { + "order-status": ${vnf-level-oper-status.order-status}, + "last-rpc-action": ${vnf-level-oper-status.last-rpc-action}, + "last-action": ${vnf-level-oper-status.last-action}, + "last-svc-request-id": ${vnf-level-oper-status.last-svc-request-id}, + "last-order-status": ${vnf-level-oper-status.last-order-status}, + "create-timestamp": ${vnf-level-oper-status.create-timestamp}, + "modify-timestamp": ${vnf-level-oper-status.modify-timestamp} + } +} + diff --git a/ms/gra/gra-docker/src/main/templates/vnf-network.json b/ms/gra/gra-docker/src/main/templates/vnf-network.json new file mode 100644 index 0000000..8fbf755 --- /dev/null +++ b/ms/gra/gra-docker/src/main/templates/vnf-network.json @@ -0,0 +1,45 @@ +{ + "vnf-network": { + "network-role": ${vnf-network-data.network-role}, + "network-name": ${vnf-network-data.network-name}, + "neutron-id": ${vnf-network-data.neutron-id}, + "network-id": ${vnf-network-data.network-id}, + "contrail-network-fqdn": ${vnf-network-data.contrail-network-fqdn}, + "subnets-data": { + "subnet-data": [ +${repeat:vnf-network-data.subnets-data.subnet-data_length: + { + "sdnc-subnet-id": ${vnf-network-data.subnets-data.subnet-data[${1}].sdnc-subnet-id}, + "subnet-role": ${vnf-network-data.subnets-data.subnet-data[${1}].subnet-role}, + "subnet-name": ${vnf-network-data.subnets-data.subnet-data[${1}].subnet-name}, + "ip-version": ${vnf-network-data.subnets-data.subnet-data[${1}].ip-version}, + "subnet-id": ${vnf-network-data.subnets-data.subnet-data[${1}].subnet-id}, + "dhcp-enabled": ${vnf-network-data.subnets-data.subnet-data[${1}].dhcp-enabled}, + "network-start-address": ${vnf-network-data.subnets-data.subnet-data[${1}].network-start-address}, + "gateway-address": ${vnf-network-data.subnets-data.subnet-data[${1}].gateway-address}, + "cidr-mask": ${vnf-network-data.subnets-data.subnet-data[${1}].cidr-mask} + }, +} + ] + }, + "is-trunked": ${vnf-network-data.is-trunked}, + "segmentation-id": ${vnf-network-data.segmentation-id}, + "related-networks": { + "related-network": [ +${repeat:vnf-network-data.related-networks.related-network_length: + { + "network-id": ${vnf-network-data.related-networks.related-network[${1}].network-id}, + "network-role": ${vnf-network-data.related-networks.related-network[${1}].network-role}, + "vlan-tags": { + "vlan-interface": ${vnf-network-data.related-networks.related-network[${1}].vlan-tags.vlan-interface}, + "upper-tag-id": ${vnf-network-data.related-networks.related-network[${1}].vlan-tags.upper-tag-id}, + "lower-tag-id": ${vnf-network-data.related-networks.related-network[${1}].vlan-tags.lower-tag-id}, + "is-private": ${vnf-network-data.related-networks.related-network[${1}].vlan-tags.is-private} + } + }, +} + ] + } + } +} + |