aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/vFWDT/workflow/templates
diff options
context:
space:
mode:
Diffstat (limited to 'tutorials/vFWDT/workflow/templates')
-rw-r--r--tutorials/vFWDT/workflow/templates/appcDmaapLcm.json28
-rw-r--r--tutorials/vFWDT/workflow/templates/appcRestconfLcm.json21
-rw-r--r--tutorials/vFWDT/workflow/templates/hasRequest.json93
-rw-r--r--tutorials/vFWDT/workflow/templates/osdfRequest.json65
4 files changed, 207 insertions, 0 deletions
diff --git a/tutorials/vFWDT/workflow/templates/appcDmaapLcm.json b/tutorials/vFWDT/workflow/templates/appcDmaapLcm.json
new file mode 100644
index 00000000..5be6627b
--- /dev/null
+++ b/tutorials/vFWDT/workflow/templates/appcDmaapLcm.json
@@ -0,0 +1,28 @@
+{
+ "body": {
+ "input": {
+ "action": "DistributeTraffic",
+ "payload": "{\"configuration-parameters\":{\"ConfigFileName\":\"/opt/onap/ccsdk/Playbooks/dt-vpkg-1-config.json\",\"playbook\":\"ansible_vfw_distributetraffic@0.00.yml\",\"node_list\":\"[vpkg-1]\"}}",
+ "common-header": {
+ "api-ver": "2.00",
+ "timestamp": "2018-10-22T11:11:25.244Z",
+ "flags": {
+ "force": "TRUE",
+ "mode": "NORMAL",
+ "ttl": 36000
+ },
+ "request-id": 27081074,
+ "originator-id": "demo",
+ "sub-request-id": "1540197850899"
+ },
+ "action-identifiers": {
+ "vnf-id": "50ac9605-ce63-442d-a103-80e9cf4753ca"
+ }
+ }
+ },
+ "cambria.partition": "APPC",
+ "rpc-name": "distribute-traffic",
+ "correlation-id": "c09ac7d1-de62-0016-2000-e63701125557-201",
+ "version": "2.0",
+ "type": "request"
+} \ No newline at end of file
diff --git a/tutorials/vFWDT/workflow/templates/appcRestconfLcm.json b/tutorials/vFWDT/workflow/templates/appcRestconfLcm.json
new file mode 100644
index 00000000..fa0eb79e
--- /dev/null
+++ b/tutorials/vFWDT/workflow/templates/appcRestconfLcm.json
@@ -0,0 +1,21 @@
+{
+ "input": {
+ "action": "DistributeTraffic",
+ "payload": "{\"configuration-parameters\":{\"file_parameter_content\":\"{\\\"fwIp\\\":\\\"192.168.10.100\\\",\\\"sinkIp\\\":\\\"192.168.20.250\\\"}\",\"node_list\":\"[vpkg-1]\"}}",
+ "common-header": {
+ "api-ver": "2.00",
+ "timestamp": "2019-05-20T08:18:07.244Z",
+ "flags": {
+ "force": "TRUE",
+ "mode": "NORMAL",
+ "ttl": 36000
+ },
+ "request-id": "8ac122fd-6261-4e72-ba5c-5384fcd0ab2b",
+ "originator-id": "vfw-dt-demo",
+ "sub-request-id": "cefe9354-809d-4dd2-ab6d-e1f9d2fa9ea3"
+ },
+ "action-identifiers": {
+ "vnf-id": "2d125b4d-e120-4815-a0c7-4c4bec6c89f9"
+ }
+ }
+} \ No newline at end of file
diff --git a/tutorials/vFWDT/workflow/templates/hasRequest.json b/tutorials/vFWDT/workflow/templates/hasRequest.json
new file mode 100644
index 00000000..a58d4dd9
--- /dev/null
+++ b/tutorials/vFWDT/workflow/templates/hasRequest.json
@@ -0,0 +1,93 @@
+{
+ "name": "de4f04e3-0a65-470b-9d07-8ea6c2fb3e10",
+ "template": {
+ "constraints": {
+ "affinity_vFW_TD": {
+ "demands": ["vFW-SINK", "vPGN"],
+ "properties": {
+ "category": "region",
+ "qualifier": "same"
+ },
+ "type": "zone"
+ }
+ },
+ "parameters": {
+ "service_name": "vFW_TD",
+ "chosen_region": "RegionOne",
+ "chosen_customer_id": "DemoCust_4fb7d3cf-5ddc-4d8c-8acf-70cc9174d18f",
+ "service_id": "2ad369d4-9056-4dc9-8e6d-df24f45e8729",
+ "customer_long": 2.2,
+ "REQUIRED_MEM": "",
+ "customer_lat": 1.1,
+ "REQUIRED_DISK": ""
+ },
+ "locations": {
+ "customer_loc": {
+ "longitude": {
+ "get_param": "customer_long"
+ },
+ "latitude": {
+ "get_param": "customer_lat"
+ }
+ }
+ },
+ "demands": {
+ "vFW-SINK": [{
+ "attributes": {
+ "global-customer-id": {
+ "get_param": "chosen_customer_id"
+ },
+ "cloud-region-id": {
+ "get_param": "chosen_region"
+ },
+ "model-version-id": "202d2fd8-a045-4c9a-b767-2a1639c10291",
+ "orchestration-status": ["active"],
+ "model-invariant-id": "6f3fd439-fd5f-4a2d-95bc-b6bf8787001a",
+ "service_instance_id": {
+ "get_param": "service_id"
+ },
+ "prov-status": "ACTIVE"
+ },
+ "inventory_provider": "aai",
+ "service_resource_id": "vFW-SINK-XX",
+ "inventory_type": "vfmodule",
+ "service_type": "vFW-SINK-XX",
+ "excluded_candidates": [{
+ "inventory_type": "vfmodule",
+ "candidate_id": "e765d576-8755-4145-8536-0bb6d9b1dc9a"
+ }],
+ "required_candidates": [{
+ "inventory_type": "vfmodule",
+ "candidate_id": "e765d576-8755-4145-8536-0bb6d9b1dc9a"
+ }]
+ }],
+ "vPGN": [{
+ "attributes": {
+ "global-customer-id": {
+ "get_param": "chosen_customer_id"
+ },
+ "cloud-region-id": {
+ "get_param": "chosen_region"
+ },
+ "model-version-id": "6bfe954e-bb00-4111-be3c-33eed9d20a8c",
+ "orchestration-status": ["active"],
+ "model-invariant-id": "3f356335-7b36-41ee-8f74-72d0a2ec3ebf",
+ "service_instance_id": {
+ "get_param": "service_id"
+ },
+ "prov-status": "ACTIVE"
+ },
+ "inventory_provider": "aai",
+ "service_resource_id": "vPGN-XX",
+ "unique": "false",
+ "inventory_type": "vfmodule",
+ "service_type": "vPGN-XX"
+ }]
+ },
+ "homing_template_version": "2017-10-10"
+ },
+ "limit": 100,
+ "num_solution": "100",
+ "files": {},
+ "timeout": 1200
+}
diff --git a/tutorials/vFWDT/workflow/templates/osdfRequest.json b/tutorials/vFWDT/workflow/templates/osdfRequest.json
new file mode 100644
index 00000000..1bef055b
--- /dev/null
+++ b/tutorials/vFWDT/workflow/templates/osdfRequest.json
@@ -0,0 +1,65 @@
+{
+ "requestInfo": {
+ "transactionId": "e576c75e-7536-4145-a1c0-d60b65bb1bb8",
+ "requestId": "de4f04e3-0a65-470b-9d07-8ea6c2fb3e10",
+ "callbackUrl": "http://0.0.0.0:9000/osdfCallback/",
+ "sourceId": "SO",
+ "requestType": "create",
+ "numSolutions": 100,
+ "optimizers": [
+ "placement"
+ ],
+ "timeout": 1200
+ },
+ "placementInfo": {
+ "requestParameters": {
+ "chosenRegion": "RegionOne",
+ "chosenCustomerId": "DemoCust_8b908ab3-b9e6-41a9-a4e2-31cc9c5114a2"
+ },
+ "subscriberInfo": {
+ "globalSubscriberId": "dbc2c763-6383-42d6-880a-b7d5c5bc84d9",
+ "subscriberName": "oof-so-chm"
+ },
+ "placementDemands": [
+ {
+ "resourceModuleName": "vFW-SINK",
+ "serviceResourceId": "vFW-SINK-XX",
+ "resourceModelInfo": {
+ "modelInvariantId": "fda3c1e8-7653-4acd-80ef-f5755c1d3859",
+ "modelVersionId": "a6906768-1cae-4e78-acd1-d753ac61f3e8"
+ },
+ "excludedCandidates": [
+ {
+ "identifierType": "vfmodule",
+ "identifiers": [
+ ]
+ }
+ ],
+ "requiredCandidates": [
+ {
+ "identifierType": "vfmodule",
+ "identifiers": [
+ ]
+ }
+ ]
+ },
+ {
+ "resourceModuleName": "vPGN",
+ "serviceResourceId": "vPGN-XX",
+ "unique": "false",
+ "resourceModelInfo": {
+ "modelInvariantId": "f2f88e29-d571-49ef-aea3-b8d13900c16f",
+ "modelVersionId": "3ccebc76-66e1-47c8-aee9-98f30d08db97"
+ }
+ }
+ ]
+ },
+ "serviceInfo": {
+ "serviceInstanceId": "209fb01e-60ca-4325-b074-c5ad4e0499f8",
+ "serviceName": "TD",
+ "modelInfo": {
+ "modelInvariantId": "TD-invariantId",
+ "modelVersionId": "TD-versionId"
+ }
+ }
+} \ No newline at end of file