From a1ffe0ce52a4efa1ed56474417aa525d60518a5b Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Fri, 6 Mar 2020 09:24:23 +0100 Subject: Simplify CBA by removing unnecessary variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change scope: - demo_artifacts_version - default on vnf level, removed vf-module level - install_script_version - removed - *image_name - removed - public_net_id - removed - key_name - removed - pub_key - removed - *flavor_name - removed - sec_group - removed - nfc-naming-code - removed - cloud_env - removed - nexus_artifact_repo - removed - *cidr - removed, where applicable - *ip - removed, where applicable - dcae* - moved to vnf level - aic-cloud-region - removed on vf-module level - vnf_name - removed on base-template level - vf-module-type - removed - vnfc-model-version - removed - vnfc-model-invariant-uuid - removed - vfccustomizationuuid - removed - vf-module-id - removed from template result - service-instance-id - removed from template result - vnf_name - removed and vf-module level - vf-module-model-customization-uuid - removed from template result - vf-module-model-version - removed from template result - vf-module-model-invariant-uuid - removed from template result - vnf-model-customization-uuid - removed at vf-module-level and few other minor tweaks including updating dataDict and enrichment Issue-ID: INT-1260 Signed-off-by: Konrad Bańka Change-Id: Ica6073d0270da9d5ff0f0e544a9b329f66d9b5bb --- .../templates/cba/Definitions/data_types.json | 536 +------ .../templates/cba/Definitions/node_types.json | 5 + .../Definitions/resources_definition_types.json | 1614 ++++---------------- .../templates/cba/Definitions/vFW_CNF_CDS.json | 42 +- 4 files changed, 316 insertions(+), 1881 deletions(-) (limited to 'heat/vFW_CNF_CDS/templates/cba/Definitions') diff --git a/heat/vFW_CNF_CDS/templates/cba/Definitions/data_types.json b/heat/vFW_CNF_CDS/templates/cba/Definitions/data_types.json index 988d059c..4ce487b8 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Definitions/data_types.json +++ b/heat/vFW_CNF_CDS/templates/cba/Definitions/data_types.json @@ -61,570 +61,112 @@ "description" : "Dynamic DataType definition for workflow(resource-assignment).", "version" : "1.0.0", "properties" : { - "vf-module-name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vf-module-name}", - "entry_schema" : { - "type" : "" - } - }, - "private1-prefix-id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vnf-id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vsn_flavor_name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vfw_int_private2_ip_0" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "public_net_id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "int_private1_gw_ip" : { - "description" : "Private unprotected network gateway ip", - "type" : "string", - "default" : "${int_private1_gw_ip}" - }, - "sec_group" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "nfc-naming-code" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vnfc-model-invariant-uuid" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vfw_name_0" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vfw_name_0}", - "entry_schema" : { - "type" : "" - } - }, - "nexus_artifact_repo" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "onap_private_net_cidr" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vpg_onap_private_ip_0" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vpg_onap_private_ip_0}", - "entry_schema" : { - "type" : "" - } - }, - "image_name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "flavor_name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "dcae_collector_ip" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "10.0.4.1", - "entry_schema" : { - "type" : "" - } - }, - "vf-module-model-invariant-uuid" : { - "type" : "string" - }, - "vpg_name_0" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vpg_name_0}", - "entry_schema" : { - "type" : "" - } - }, - "vf-naming-policy" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "int_private2_net_cidr" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vfccustomizationuuid" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "vpg-management-port" : { + "description" : "SSH external port of ssh. When 0 ssh service will not be exposed", + "type" : "string", + "default" : "0" }, - "vf-module-model-version" : { + "k8s-rb-profile-namespace" : { + "description" : "K8s namespace to create helm chart for specified profile", "type" : "string" }, "k8s-rb-profile-name" : { "description" : "Profile name used in multicloud/k8s plugin to identify Helm chart(s) where this mapping is providing override values.", "type" : "string" }, - "vsn_name_0" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vsn_name_0}", - "entry_schema" : { - "type" : "" - } - }, - "onap_private_net_id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "demo_artifacts_version" : { + "private1-prefix-id" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "vnf-model-customization-uuid" : { + "private2-prefix-id" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "vfw_int_private1_ip_0" : { + "vnf-id" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vfw_int_private1_ip_0}", - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "key_name" : { + "service-instance-id" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "install_script_version" : { + "vnf_name" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "vfw_image_name" : { + "demo_artifacts_version" : { "description" : "", "required" : false, "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "default" : "1.5.0" }, - "vfw_onap_private_ip_0" : { + "aic-cloud-region" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vfw_onap_private_ip_0}", - "entry_schema" : { - "type" : "" - } - }, - "int_private2_net_id" : { - "description" : "Private protected network identification", "type" : "string" }, - "k8s-rb-profile-namespace" : { - "description" : "K8s namespace to create helm chart for specified profile", - "type" : "string", - "default" : "default" - }, - "vpg-management-port" : { - "description" : "SSH external port of ssh. When 0 ssh service will not be exposed", - "type" : "string", - "default": "0" - }, - "vnf_name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "aic-cloud-region" : { + "vf-module-model-customization-uuid" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "vsn_int_private2_ip_0" : { + "onap_private_net_cidr" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "vf-module-model-customization-uuid" : { + "management-prefix-id" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "int_private2_gw_ip" : { - "description" : "Private protected network gateway ip", "type" : "string" }, - "vsn_image_name" : { + "dcae_collector_ip" : { "description" : "", "required" : false, "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "default" : "10.0.4.1" }, - "vpg_flavor_name" : { + "int_private1_net_cidr" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, "vf-module-id" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "onap_private_gw_ip" : { - "description" : "Private onap management network gateway ip", - "type" : "string", - "default" : "${onap_private_gw_ip}" + "type" : "string" }, "dcae_collector_port" : { "description" : "", "required" : false, "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "30235", - "entry_schema" : { - "type" : "" - } + "default" : "30235" }, "vf-module-label" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vfw_int_private2_floating_ip" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vpg_image_name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "private2-prefix-id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vnfc-model-version" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "service-instance-id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vsn_onap_private_ip_0" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vsn_onap_private_ip_0}", - "entry_schema" : { - "type" : "" - } - }, - "vfw_flavor_name" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "vf-module-type" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "pub_key" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } - }, - "management-prefix-id" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "int_private1_net_cidr" : { - "description" : "", - "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "entry_schema" : { - "type" : "" - } + "vf-module-model-invariant-uuid" : { + "type" : "string" }, - "vpg_int_private1_ip_0" : { + "vf-naming-policy" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "${vpg_int_private1_ip_0}", - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "cloud_env" : { + "int_private2_net_cidr" : { "description" : "", "required" : false, - "type" : "string", - "status" : "", - "constraints" : [ { } ], - "default" : "openstack", - "entry_schema" : { - "type" : "" - } + "type" : "string" }, - "int_private1_net_id" : { - "description" : "Private unprotected network identification", - "type" : "string", - "default" : "${int_private1_net_id}" + "vf-module-model-version" : { + "type" : "string" } }, "derived_from" : "tosca.datatypes.Dynamic" diff --git a/heat/vFW_CNF_CDS/templates/cba/Definitions/node_types.json b/heat/vFW_CNF_CDS/templates/cba/Definitions/node_types.json index b78a3114..66b0d7c5 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Definitions/node_types.json +++ b/heat/vFW_CNF_CDS/templates/cba/Definitions/node_types.json @@ -40,6 +40,11 @@ "required" : false, "type" : "string" }, + "resolution-summary" : { + "description" : "Enable resolution-summary output", + "required" : false, + "type" : "boolean" + }, "artifact-prefix-names" : { "description" : "Template , Resource Assignment Artifact Prefix names", "required" : true, diff --git a/heat/vFW_CNF_CDS/templates/cba/Definitions/resources_definition_types.json b/heat/vFW_CNF_CDS/templates/cba/Definitions/resources_definition_types.json index 17e4dcbb..ab2abcde 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Definitions/resources_definition_types.json +++ b/heat/vFW_CNF_CDS/templates/cba/Definitions/resources_definition_types.json @@ -34,42 +34,6 @@ } } }, - "cloud_env" : { - "tags" : "cloud_env", - "name" : "cloud_env", - "property" : { - "description" : "cloud_env", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/cloud_env", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "cloud_env" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, "dcae_collector_ip" : { "tags" : "dcae_collector_ip", "name" : "dcae_collector_ip", @@ -178,11 +142,11 @@ } } }, - "flavor_name" : { - "tags" : "flavor_name", - "name" : "flavor_name", + "int_private1_net_cidr" : { + "tags" : "int_private1_net_cidr", + "name" : "int_private1_net_cidr", "property" : { - "description" : "flavor_name", + "description" : "int_private1_net_cidr", "type" : "string" }, "group" : "default", @@ -200,25 +164,37 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/flavor_name", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private1_net_cidr", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "flavor_name" : "value" + "int_private1_net_cidr" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } + }, + "processor-db" : { + "type" : "source-db", + "properties" : { + "type" : "SQL", + "endpoint-selector" : "dynamic-db-source", + "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private1\"", + "input-key-mapping" : { }, + "output-key-mapping" : { + "int_private1_net_cidr" : "prefix" + } + } } } }, - "image_name" : { - "tags" : "image_name", - "name" : "image_name", + "int_private2_net_cidr" : { + "tags" : "int_private2_net_cidr", + "name" : "int_private2_net_cidr", "property" : { - "description" : "image_name", + "description" : "int_private2_net_cidr", "type" : "string" }, "group" : "default", @@ -231,34 +207,46 @@ "type" : "source-default", "properties" : { } }, + "processor-db" : { + "type" : "source-db", + "properties" : { + "type" : "SQL", + "endpoint-selector" : "dynamic-db-source", + "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private2\"", + "output-key-mapping" : { + "int_private2_net_cidr" : "prefix" + }, + "input-key-mapping" : { } + } + }, "sdnc" : { "type" : "source-rest", "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/image_name", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private2_net_cidr", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "image_name" : "value" + "int_private2_net_cidr" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } } } }, - "install_script_version" : { - "tags" : "install_script_version", - "name" : "install_script_version", + "k8s-rb-profile-name" : { + "tags" : "k8s, cnf, profile, k8s-rb-profile-name", + "name" : "k8s-rb-profile-name", "property" : { - "description" : "install_script_version", + "description" : "Profile name used in multicloud/k8s plugin to identify Helm chart(s) where this mapping is providing override values.", "type" : "string" }, "group" : "default", - "updated-by" : "MALAKOV, YURIY ", + "updated-by" : "Samuli, Silvius ", "sources" : { "input" : { "type" : "source-input" @@ -272,25 +260,25 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/install_script_version", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/k8s-rb-profile-name", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "install_script_version" : "value" + "k8s-rb-profile-name" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } } } }, - "int_private1_gw_ip" : { - "tags" : "k8s, cnf, int_private1_gw_ip", - "name" : "int_private1_gw_ip", + "k8s-rb-profile-namespace" : { + "tags" : "k8s, cnf, profile, namespace, k8s-rb-profile-namespace", + "name" : "k8s-rb-profile-namespace", "property" : { - "description" : "Private unprotected network gateway ip address", + "description" : "Profile name used in multicloud/k8s plugin", "type" : "string" }, "group" : "default", @@ -308,25 +296,25 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private1_gw_ip", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/k8s-rb-profile-namespace", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "int_private1_gw_ip" : "value" + "k8s-rb-profile-namespace" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } } } }, - "int_private1_net_cidr" : { - "tags" : "int_private1_net_cidr", - "name" : "int_private1_net_cidr", + "management-prefix-id" : { + "tags" : "management-prefix-id", + "name" : "management-prefix-id", "property" : { - "description" : "int_private1_net_cidr", + "description" : "management-prefix-id", "type" : "string" }, "group" : "default", @@ -344,14 +332,14 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private1_net_cidr", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/management-prefix-id", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "int_private1_net_cidr" : "value" + "management-prefix-id" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } @@ -361,24 +349,24 @@ "properties" : { "type" : "SQL", "endpoint-selector" : "dynamic-db-source", - "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private1\"", + "query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"management\"", "input-key-mapping" : { }, "output-key-mapping" : { - "int_private1_net_cidr" : "prefix" + "management-prefix-id" : "prefix_id" } } } } }, - "int_private1_net_id" : { - "tags" : "k8s, cnf, int_private1_net_id", - "name" : "int_private1_net_id", + "onap_private_net_cidr" : { + "tags" : "onap_private_net_cidr", + "name" : "onap_private_net_cidr", "property" : { - "description" : "Private network identification", + "description" : "onap_private_net_cidr", "type" : "string" }, "group" : "default", - "updated-by" : "Samuli, Silvius ", + "updated-by" : "MALAKOV, YURIY ", "sources" : { "input" : { "type" : "source-input" @@ -387,34 +375,46 @@ "type" : "source-default", "properties" : { } }, + "processor-db" : { + "type" : "source-db", + "properties" : { + "type" : "SQL", + "endpoint-selector" : "dynamic-db-source", + "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"management\"", + "input-key-mapping" : { }, + "output-key-mapping" : { + "onap_private_net_cidr" : "prefix" + } + } + }, "sdnc" : { "type" : "source-rest", "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private1_net_id", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/onap_private_net_cidr", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "int_private1_net_id" : "value" + "onap_private_net_cidr" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } } } }, - "int_private2_gw_ip" : { - "tags" : "k8s, cnf, int_private2_gw_ip", - "name" : "int_private2_gw_ip", + "private1-prefix-id" : { + "tags" : "private1-prefix-id", + "name" : "private1-prefix-id", "property" : { - "description" : "Private protected network gateway ip address", + "description" : "private1-prefix-id", "type" : "string" }, "group" : "default", - "updated-by" : "Samuli, Silvius ", + "updated-by" : "MALAKOV, YURIY ", "sources" : { "input" : { "type" : "source-input" @@ -428,25 +428,37 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private2_gw_ip", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/private1-prefix-id", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "int_private2_gw_ip" : "value" + "private1-prefix-id" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } + }, + "processor-db" : { + "type" : "source-db", + "properties" : { + "type" : "SQL", + "endpoint-selector" : "dynamic-db-source", + "query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private1\"", + "input-key-mapping" : { }, + "output-key-mapping" : { + "private1-prefix-id" : "prefix_id" + } + } } } }, - "int_private2_net_cidr" : { - "tags" : "int_private2_net_cidr", - "name" : "int_private2_net_cidr", + "private2-prefix-id" : { + "tags" : "private2-prefix-id", + "name" : "private2-prefix-id", "property" : { - "description" : "int_private2_net_cidr", + "description" : "private2-prefix-id", "type" : "string" }, "group" : "default", @@ -459,46 +471,46 @@ "type" : "source-default", "properties" : { } }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "endpoint-selector" : "dynamic-db-source", - "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private2\"", - "output-key-mapping" : { - "int_private2_net_cidr" : "prefix" - }, - "input-key-mapping" : { } - } - }, "sdnc" : { "type" : "source-rest", "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private2_net_cidr", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/private2-prefix-id", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "int_private2_net_cidr" : "value" + "private2-prefix-id" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } + }, + "processor-db" : { + "type" : "source-db", + "properties" : { + "type" : "SQL", + "endpoint-selector" : "dynamic-db-source", + "query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private2\"", + "input-key-mapping" : { }, + "output-key-mapping" : { + "private2-prefix-id" : "prefix_id" + } + } } } }, - "int_private2_net_id" : { - "tags" : "k8s, cnf, int_private2_net_id", - "name" : "int_private2_net_id", + "put-active-streams" : { + "tags" : "put-active-streams", + "name" : "put-active-streams", "property" : { - "description" : "Private protected network identification", + "description" : "put-active-streams", "type" : "string" }, "group" : "default", - "updated-by" : "Samuli, Silvius ", + "updated-by" : "MALAKOV, YURIY ", "sources" : { "input" : { "type" : "source-input" @@ -510,1134 +522,94 @@ "sdnc" : { "type" : "source-rest", "properties" : { - "verb" : "GET", + "verb" : "PUT", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/int_private2_net_id", + "url-path" : "$vpg_onap_private_ip_0:8183/restconf/config/stream-count:stream-count/streams", "path" : "/param/0/value", "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "int_private2_net_id" : "value" + "vpg_onap_private_ip_0" : "vpg_onap_private_ip_0", + "active-streams" : "active-streams" }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] + "output-key-mapping" : { }, + "key-dependencies" : [ "vpg_onap_private_ip_0", "active-streams" ], + "endpoint-selector" : "vpkg-rest-api", + "payload" : "{\"streams\": {\"active-streams\": $active-streams}}" } } } }, - "k8s-rb-profile-name" : { - "tags" : "k8s, cnf, profile, k8s-rb-profile-name", - "name" : "k8s-rb-profile-name", + "service-instance-id" : { + "tags" : "service-instance-id, tosca.datatypes.Root, data_type", + "name" : "service-instance-id", "property" : { - "description" : "Profile name used in multicloud/k8s plugin to identify Helm chart(s) where this mapping is providing override values.", + "description" : "To be provided", "type" : "string" }, "group" : "default", - "updated-by" : "Samuli, Silvius ", + "updated-by" : "Singal, Kapil ", "sources" : { "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", + "type" : "source-input", "properties" : { } }, + "any-db" : { + "type" : "source-db", + "properties" : { + "query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"", + "input-key-mapping" : { }, + "output-key-mapping" : { + "service-instance-id" : "artifact_name" + } + } + }, + "processor-db" : { + "type" : "source-db", + "properties" : { + "query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"", + "input-key-mapping" : { }, + "output-key-mapping" : { + "service-instance-id" : "artifact_name" + } + } + }, + "capability" : { + "type" : "source-capability", + "properties" : { + "script-type" : "jython", + "script-class-reference" : "SampleRAProcessor", + "instance-dependencies" : [ ] + } + }, "sdnc" : { "type" : "source-rest", "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/k8s-rb-profile-name", - "path" : "/param/0/value", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id", + "path" : "/service/0/service-instance-id", "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" + "service-instance-id" : "service-instance.service-instance-id" }, "output-key-mapping" : { - "k8s-rb-profile-name" : "value" + "service-instance-id" : "service-instance-id" }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] + "key-dependencies" : [ "service-instance.service-instance-id" ] } } } }, - "k8s-rb-profile-namespace" : { - "tags" : "k8s, cnf, profile, namespace, k8s-rb-profile-namespace", - "name" : "k8s-rb-profile-namespace", + "vf-module-id" : { + "tags" : "vf-module-id", + "name" : "vf-module-id", "property" : { - "description" : "Profile name used in multicloud/k8s plugin", + "description" : "vf-module-id", "type" : "string" }, "group" : "default", - "updated-by" : "Samuli, Silvius ", + "updated-by" : "Singal, Kapil ", "sources" : { "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/k8s-rb-profile-namespace", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "k8s-rb-profile-namespace" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "vpg-management-port" : { - "tags" : "vpg-management-port", - "name" : "vpg-management-port", - "property" : { - "description" : "vpg-management-port", - "type" : "string" - }, - "updated-by" : "Rajewski, Lukasz ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - } - } - }, - "key_name" : { - "tags" : "key_name", - "name" : "key_name", - "property" : { - "description" : "key_name", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/key_name", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "key_name" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "management-prefix-id" : { - "tags" : "management-prefix-id", - "name" : "management-prefix-id", - "property" : { - "description" : "management-prefix-id", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/management-prefix-id", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "management-prefix-id" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "endpoint-selector" : "dynamic-db-source", - "query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"management\"", - "input-key-mapping" : { }, - "output-key-mapping" : { - "management-prefix-id" : "prefix_id" - } - } - } - } - }, - "nexus_artifact_repo" : { - "tags" : "nexus_artifact_repo", - "name" : "nexus_artifact_repo", - "property" : { - "description" : "nexus_artifact_repo", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/nexus_artifact_repo", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "nexus_artifact_repo" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "nfc-naming-code" : { - "tags" : "nfc-naming-code", - "name" : "nfc-naming-code", - "property" : { - "description" : "nfc-naming-code", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select nfc_naming_code as nfc_naming_code from sdnctl.VFC_MODEL where customization_uuid=:vfccustomizationuuid", - "input-key-mapping" : { - "vfccustomizationuuid" : "vfccustomizationuuid" - }, - "output-key-mapping" : { - "nfc-naming-code" : "nfc_naming_code" - }, - "key-dependencies" : [ "vfccustomizationuuid" ], - "endpoint-selector" : "dynamic-db-source" - } - } - } - }, - "onap_private_gw_ip" : { - "tags" : "k8s, cnf, onap_private_gw_ip", - "name" : "onap_private_gw_ip", - "property" : { - "description" : "Private onap management network gateway ip address", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Samuli, Silvius ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/onap_private_gw_ip", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "onap_private_gw_ip" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "onap_private_net_cidr" : { - "tags" : "onap_private_net_cidr", - "name" : "onap_private_net_cidr", - "property" : { - "description" : "onap_private_net_cidr", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "endpoint-selector" : "dynamic-db-source", - "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"management\"", - "input-key-mapping" : { }, - "output-key-mapping" : { - "onap_private_net_cidr" : "prefix" - } - } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/onap_private_net_cidr", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "onap_private_net_cidr" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "onap_private_net_id" : { - "tags" : "onap_private_net_id", - "name" : "onap_private_net_id", - "property" : { - "description" : "onap_private_net_id", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/onap_private_net_id", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "onap_private_net_id" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "private1-prefix-id" : { - "tags" : "private1-prefix-id", - "name" : "private1-prefix-id", - "property" : { - "description" : "private1-prefix-id", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/private1-prefix-id", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "private1-prefix-id" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "endpoint-selector" : "dynamic-db-source", - "query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private1\"", - "input-key-mapping" : { }, - "output-key-mapping" : { - "private1-prefix-id" : "prefix_id" - } - } - } - } - }, - "private2-prefix-id" : { - "tags" : "private2-prefix-id", - "name" : "private2-prefix-id", - "property" : { - "description" : "private2-prefix-id", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/private2-prefix-id", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "private2-prefix-id" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "endpoint-selector" : "dynamic-db-source", - "query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private2\"", - "input-key-mapping" : { }, - "output-key-mapping" : { - "private2-prefix-id" : "prefix_id" - } - } - } - } - }, - "pub_key" : { - "tags" : "pub_key", - "name" : "pub_key", - "property" : { - "description" : "pub_key", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/pub_key", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "pub_key" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "public_net_id" : { - "tags" : "public_net_id", - "name" : "public_net_id", - "property" : { - "description" : "public_net_id", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/public_net_id", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "public_net_id" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "put-active-streams" : { - "tags" : "put-active-streams", - "name" : "put-active-streams", - "property" : { - "description" : "put-active-streams", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "PUT", - "type" : "JSON", - "url-path" : "$vpg_onap_private_ip_0:8183/restconf/config/stream-count:stream-count/streams", - "path" : "/param/0/value", - "input-key-mapping" : { - "vpg_onap_private_ip_0" : "vpg_onap_private_ip_0", - "active-streams" : "active-streams" - }, - "output-key-mapping" : { }, - "key-dependencies" : [ "vpg_onap_private_ip_0", "active-streams" ], - "endpoint-selector" : "vpkg-rest-api", - "payload" : "{\"streams\": {\"active-streams\": $active-streams}}" - } - } - } - }, - "sec_group" : { - "tags" : "sec_group", - "name" : "sec_group", - "property" : { - "description" : "sec_group", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/sec_group", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "sec_group" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "service-instance-id" : { - "tags" : "service-instance-id, tosca.datatypes.Root, data_type", - "name" : "service-instance-id", - "property" : { - "description" : "To be provided", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Singal, Kapil ", - "sources" : { - "input" : { - "type" : "source-input", - "properties" : { } - }, - "any-db" : { - "type" : "source-db", - "properties" : { - "query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"", - "input-key-mapping" : { }, - "output-key-mapping" : { - "service-instance-id" : "artifact_name" - } - } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"", - "input-key-mapping" : { }, - "output-key-mapping" : { - "service-instance-id" : "artifact_name" - } - } - }, - "capability" : { - "type" : "source-capability", - "properties" : { - "script-type" : "jython", - "script-class-reference" : "SampleRAProcessor", - "instance-dependencies" : [ ] - } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id", - "path" : "/service/0/service-instance-id", - "input-key-mapping" : { - "service-instance-id" : "service-instance.service-instance-id" - }, - "output-key-mapping" : { - "service-instance-id" : "service-instance-id" - }, - "key-dependencies" : [ "service-instance.service-instance-id" ] - } - } - } - }, - "vf-module-id" : { - "tags" : "vf-module-id", - "name" : "vf-module-id", - "property" : { - "description" : "vf-module-id", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Singal, Kapil ", - "sources" : { - "input" : { - "type" : "source-input", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vf-modules/vf-module/$vf-module-id", - "path" : "/vf-module/0/vf-module-id", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id", - "vf-module-id" : "vf-module.vf-module-id" - }, - "output-key-mapping" : { - "vf-module-id" : "vf-module-id" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id", "vf-module.vf-module-id" ] - } - } - } - }, - "vf-module-label" : { - "tags" : "vf-module-label", - "name" : "vf-module-label", - "property" : { - "description" : "vf-module-label", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select sdnctl.VF_MODULE_MODEL.vf_module_label as vf_module_label from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", - "input-key-mapping" : { - "customizationid" : "vf-module-model-customization-uuid" - }, - "output-key-mapping" : { - "vf-module-label" : "vf_module_label" - }, - "key-dependencies" : [ "vf-module-model-customization-uuid" ], - "endpoint-selector" : "dynamic-db-source" - } - } - } - }, - "vf-module-model-customization-uuid" : { - "tags" : "vf-module-model-customization-uuid", - "name" : "vf-module-model-customization-uuid", - "property" : { - "description" : "vf-module-model-customization-uuid", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - } - } - }, - "vf-module-model-invariant-uuid" : { - "tags" : "vnf, vf-module", - "name" : "vf-module-model-invariant-uuid", - "property" : { - "description" : "vf module model invariant uuid", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Samuli, Silvius ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select sdnctl.VF_MODULE_MODEL.invariant_uuid as vf_module_model_invariant_uuid from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", - "input-key-mapping" : { - "customizationid" : "vf-module-model-customization-uuid" - }, - "output-key-mapping" : { - "vf-module-model-invariant-uuid" : "vf_module_model_invariant_uuid" - }, - "key-dependencies" : [ "vf-module-model-customization-uuid" ], - "endpoint-selector" : "dynamic-db-source" - } - } - } - }, - "vf-module-model-version" : { - "tags" : "vnf, vf-module", - "name" : "vf-module-model-version", - "property" : { - "description" : "vf module model model version", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Samuli, Silvius ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select sdnctl.VF_MODULE_MODEL.uuid as vf_module_model_version from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", - "input-key-mapping" : { - "customizationid" : "vf-module-model-customization-uuid" - }, - "output-key-mapping" : { - "vf-module-model-version" : "vf_module_model_version" - }, - "key-dependencies" : [ "vf-module-model-customization-uuid" ], - "endpoint-selector" : "dynamic-db-source" - } - } - } - }, - "vf-module-name" : { - "tags" : "vf-module-name", - "name" : "vf-module-name", - "property" : { - "description" : "vf_module_name", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Singal, Kapil ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - } - } - }, - "vf-module-type" : { - "tags" : "vf-module-type", - "name" : "vf-module-type", - "property" : { - "description" : "vf-module-type", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select sdnctl.VF_MODULE_MODEL.vf_module_type as vf_module_type from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", - "output-key-mapping" : { - "vf-module-type" : "vf_module_type" - }, - "input-key-mapping" : { - "customizationid" : "vf-module-model-customization-uuid" - }, - "key-dependencies" : [ "vf-module-model-customization-uuid" ], - "endpoint-selector" : "dynamic-db-source" - } - } - } - }, - "vf-naming-policy" : { - "tags" : "vf-naming-policy", - "name" : "vf-naming-policy", - "property" : { - "description" : "vf-naming-policy", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vf-naming-policy", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vf-naming-policy" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select sdnctl.VF_MODEL.naming_policy as vf_naming_policy from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnf_model_customization_uuid", - "input-key-mapping" : { - "vnf_model_customization_uuid" : "vnf-model-customization-uuid" - }, - "output-key-mapping" : { - "vf-naming-policy" : "vf_naming_policy" - }, - "key-dependencies" : [ "vnf-model-customization-uuid" ] - } - } - } - }, - "vfccustomizationuuid" : { - "tags" : "vfccustomizationuuid", - "name" : "vfccustomizationuuid", - "property" : { - "description" : "vfccustomizationuuid", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "processor-db" : { - "type" : "source-db", - "properties" : { - "type" : "SQL", - "query" : "select sdnctl.VF_MODULE_TO_VFC_MAPPING.vfc_customization_uuid as vnf_customid from sdnctl.VF_MODULE_TO_VFC_MAPPING where vm_count = 1 and sdnctl.VF_MODULE_TO_VFC_MAPPING.vf_module_customization_uuid=:vfmodulecustomizationuuid", - "input-key-mapping" : { - "vfmodulecustomizationuuid" : "vf-module-model-customization-uuid" - }, - "output-key-mapping" : { - "vfccustomizationuuid" : "vnf_customid" - }, - "key-dependencies" : [ "vf-module-model-customization-uuid" ], - "endpoint-selector" : "dynamic-db-source" - } - } - } - }, - "vfw_int_private1_ip_0" : { - "tags" : "vfw_int_private1_ip_0", - "name" : "vfw_int_private1_ip_0", - "property" : { - "description" : "vfw_int_private1_ip_0", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vfw_int_private1_ip_0", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vfw_int_private1_ip_0" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "vfw_int_private2_floating_ip" : { - "tags" : "vfw_int_private2_floating_ip", - "name" : "vfw_int_private2_floating_ip", - "property" : { - "description" : "vfw_int_private2_floating_ip", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vfw_int_private2_floating_ip", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vfw_int_private2_floating_ip" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "vfw_int_private2_ip_0" : { - "tags" : "vfw_int_private2_ip_0", - "name" : "vfw_int_private2_ip_0", - "property" : { - "description" : "vfw_int_private2_ip_0", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vfw_int_private2_ip_0", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vfw_int_private2_ip_0" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "vfw_name_0" : { - "tags" : "vfw_name_0", - "name" : "vfw_name_0", - "property" : { - "description" : "vfw_name_0", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Singal, Kapil ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vfw_name_0", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vfw_name_0" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } - } - } - }, - "vfw_onap_private_ip_0" : { - "tags" : "vfw_onap_private_ip_0", - "name" : "vfw_onap_private_ip_0", - "property" : { - "description" : "vfw_onap_private_ip_0", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", + "type" : "source-input", "properties" : { } }, "sdnc" : { @@ -1645,25 +617,26 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vfw_onap_private_ip_0", - "path" : "/param/0/value", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vf-modules/vf-module/$vf-module-id", + "path" : "/vf-module/0/vf-module-id", "input-key-mapping" : { "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" + "vnf-id" : "vnf-id", + "vf-module-id" : "vf-module.vf-module-id" }, "output-key-mapping" : { - "vfw_onap_private_ip_0" : "value" + "vf-module-id" : "vf-module-id" }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] + "key-dependencies" : [ "service-instance-id", "vnf-id", "vf-module.vf-module-id" ] } } } }, - "vnf-id" : { - "tags" : "vnf-id", - "name" : "vnf-id", + "vf-module-label" : { + "tags" : "vf-module-label", + "name" : "vf-module-label", "property" : { - "description" : "vnf-id", + "description" : "vf-module-label", "type" : "string" }, "group" : "default", @@ -1676,46 +649,28 @@ "type" : "source-default", "properties" : { } }, - "sdnc" : { - "type" : "source-rest", + "processor-db" : { + "type" : "source-db", "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/", - "path" : "/vnf/0/vnf-id", + "type" : "SQL", + "query" : "select sdnctl.VF_MODULE_MODEL.vf_module_label as vf_module_label from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "generic-vnf.vnf-id" + "customizationid" : "vf-module-model-customization-uuid" }, "output-key-mapping" : { - "vnf-id" : "vnf-id" + "vf-module-label" : "vf_module_label" }, - "key-dependencies" : [ "service-instance-id", "generic-vnf.vnf-id" ] + "key-dependencies" : [ "vf-module-model-customization-uuid" ], + "endpoint-selector" : "dynamic-db-source" } } } }, - "vnf-model-customization-uuid" : { - "tags" : "vnf-model-customization-uuid", - "name" : "vnf-model-customization-uuid", - "property" : { - "description" : "vnf-model-customization-uuid", - "type" : "string" - }, - "group" : "default", - "updated-by" : "Singal, Kapil ", - "sources" : { - "input" : { - "type" : "source-input", - "properties" : { } - } - } - }, - "vnf_name" : { - "tags" : "vnf_name", - "name" : "vnf_name", + "vf-module-model-customization-uuid" : { + "tags" : "vf-module-model-customization-uuid", + "name" : "vf-module-model-customization-uuid", "property" : { - "description" : "vnf_name", + "description" : "vf-module-model-customization-uuid", "type" : "string" }, "group" : "default", @@ -1727,35 +682,18 @@ "default" : { "type" : "source-default", "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vnf_name" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } } } }, - "vnfc-model-invariant-uuid" : { - "tags" : "vnfc-model-invariant-uuid", - "name" : "vnfc-model-invariant-uuid", + "vf-module-model-invariant-uuid" : { + "tags" : "vnf, vf-module", + "name" : "vf-module-model-invariant-uuid", "property" : { - "description" : "vnfc-model-invariant-uuid", + "description" : "vf module model invariant uuid", "type" : "string" }, "group" : "default", - "updated-by" : "MALAKOV, YURIY ", + "updated-by" : "Samuli, Silvius ", "sources" : { "input" : { "type" : "source-input" @@ -1768,27 +706,28 @@ "type" : "source-db", "properties" : { "type" : "SQL", - "query" : "select VFC_MODEL.invariant_uuid as vfc_invariant_uuid from VFC_MODEL where customization_uuid=:vfccustomizationuuid", - "output-key-mapping" : { - "vnfc-model-invariant-uuid" : "vfc_invariant_uuid" - }, + "query" : "select sdnctl.VF_MODULE_MODEL.invariant_uuid as vf_module_model_invariant_uuid from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", "input-key-mapping" : { - "vfccustomizationuuid" : "vfccustomizationuuid" + "customizationid" : "vf-module-model-customization-uuid" + }, + "output-key-mapping" : { + "vf-module-model-invariant-uuid" : "vf_module_model_invariant_uuid" }, - "key-dependencies" : [ "vfccustomizationuuid" ] + "key-dependencies" : [ "vf-module-model-customization-uuid" ], + "endpoint-selector" : "dynamic-db-source" } } } }, - "vnfc-model-version" : { - "tags" : "vnfc-model-version", - "name" : "vnfc-model-version", + "vf-module-model-version" : { + "tags" : "vnf, vf-module", + "name" : "vf-module-model-version", "property" : { - "description" : "vnfc-model-version", + "description" : "vf module model model version", "type" : "string" }, "group" : "default", - "updated-by" : "MALAKOV, YURIY ", + "updated-by" : "Samuli, Silvius ", "sources" : { "input" : { "type" : "source-input" @@ -1801,31 +740,29 @@ "type" : "source-db", "properties" : { "type" : "SQL", - "query" : "select VFC_MODEL.version as vnfc_model_version from VFC_MODEL where customization_uuid=:vfccustomizationuuid", + "query" : "select sdnctl.VF_MODULE_MODEL.uuid as vf_module_model_version from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid", "input-key-mapping" : { - "vfccustomizationuuid" : "vfccustomizationuuid" + "customizationid" : "vf-module-model-customization-uuid" }, "output-key-mapping" : { - "vnfc-model-version" : "vnfc_model_version" + "vf-module-model-version" : "vf_module_model_version" }, - "key-dependencies" : [ "vfccustomizationuuid" ] + "key-dependencies" : [ "vf-module-model-customization-uuid" ], + "endpoint-selector" : "dynamic-db-source" } } } }, - "vpg_int_private1_ip_0" : { - "tags" : "vpg_int_private1_ip_0", - "name" : "vpg_int_private1_ip_0", + "vf-naming-policy" : { + "tags" : "vf-naming-policy", + "name" : "vf-naming-policy", "property" : { - "description" : "vpg_int_private1_ip_0", + "description" : "vf-naming-policy", "type" : "string" }, "group" : "default", "updated-by" : "MALAKOV, YURIY ", "sources" : { - "input" : { - "type" : "source-input" - }, "default" : { "type" : "source-default", "properties" : { } @@ -1835,65 +772,43 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vpg_int_private1_ip_0", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vf-naming-policy", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "vpg_int_private1_ip_0" : "value" + "vf-naming-policy" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } - } - } - }, - "vpg_name_0" : { - "tags" : "vpg_name_0", - "name" : "vpg_name_0", - "property" : { - "description" : "vpg_name_0", - "type" : "string" - }, - "group" : "default", - "updated-by" : "MALAKOV, YURIY ", - "sources" : { - "input" : { - "type" : "source-input" - }, - "default" : { - "type" : "source-default", - "properties" : { } }, - "sdnc" : { - "type" : "source-rest", + "processor-db" : { + "type" : "source-db", "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vpg_name_0", - "path" : "/param/0/value", + "type" : "SQL", + "query" : "select sdnctl.VF_MODEL.naming_policy as vf_naming_policy from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnf_model_customization_uuid", "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" + "vnf_model_customization_uuid" : "vnf-model-customization-uuid" }, "output-key-mapping" : { - "vpg_name_0" : "value" + "vf-naming-policy" : "vf_naming_policy" }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] + "key-dependencies" : [ "vnf-model-customization-uuid" ] } } } }, - "vpg_onap_private_ip_0" : { - "tags" : "vpg_onap_private_ip_0", - "name" : "vpg_onap_private_ip_0", + "vnf-id" : { + "tags" : "vnf-id", + "name" : "vnf-id", "property" : { - "description" : "vpg_onap_private_ip_0", + "description" : "vnf-id", "type" : "string" }, "group" : "default", - "updated-by" : "Singal, Kapil ", + "updated-by" : "MALAKOV, YURIY ", "sources" : { "input" : { "type" : "source-input" @@ -1907,25 +822,25 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vpg_onap_private_ip_0", - "path" : "/param/0/value", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/", + "path" : "/vnf/0/vnf-id", "input-key-mapping" : { "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" + "vnf-id" : "generic-vnf.vnf-id" }, "output-key-mapping" : { - "vpg_onap_private_ip_0" : "value" + "vnf-id" : "vnf-id" }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] + "key-dependencies" : [ "service-instance-id", "generic-vnf.vnf-id" ] } } } }, - "vsn_int_private2_ip_0" : { - "tags" : "vsn_int_private2_ip_0", - "name" : "vsn_int_private2_ip_0", + "vnf_name" : { + "tags" : "vnf_name", + "name" : "vnf_name", "property" : { - "description" : "vsn_int_private2_ip_0", + "description" : "vnf_name", "type" : "string" }, "group" : "default", @@ -1943,29 +858,29 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vsn_int_private2_ip_0", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "vsn_int_private2_ip_0" : "value" + "vnf_name" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } } } }, - "vsn_name_0" : { - "tags" : "vsn_name_0", - "name" : "vsn_name_0", + "vpg-management-port" : { + "tags" : "vpg-management-port", + "name" : "vpg-management-port", "property" : { - "description" : "vsn_name_0", + "description" : "vpg-management-port", "type" : "string" }, "group" : "default", - "updated-by" : "Singal, Kapil ", + "updated-by" : "Rajewski, Lukasz ", "sources" : { "input" : { "type" : "source-input" @@ -1973,35 +888,18 @@ "default" : { "type" : "source-default", "properties" : { } - }, - "sdnc" : { - "type" : "source-rest", - "properties" : { - "verb" : "GET", - "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vsn_name_0", - "path" : "/param/0/value", - "input-key-mapping" : { - "service-instance-id" : "service-instance-id", - "vnf-id" : "vnf-id" - }, - "output-key-mapping" : { - "vsn_name_0" : "value" - }, - "key-dependencies" : [ "service-instance-id", "vnf-id" ] - } } } }, - "vsn_onap_private_ip_0" : { - "tags" : "vsn_onap_private_ip_0", - "name" : "vsn_onap_private_ip_0", + "vpg_onap_private_ip_0" : { + "tags" : "vpg_onap_private_ip_0", + "name" : "vpg_onap_private_ip_0", "property" : { - "description" : "vsn_onap_private_ip_0", + "description" : "vpg_onap_private_ip_0", "type" : "string" }, "group" : "default", - "updated-by" : "MALAKOV, YURIY ", + "updated-by" : "Singal, Kapil ", "sources" : { "input" : { "type" : "source-input" @@ -2015,14 +913,14 @@ "properties" : { "verb" : "GET", "type" : "JSON", - "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vsn_onap_private_ip_0", + "url-path" : "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vpg_onap_private_ip_0", "path" : "/param/0/value", "input-key-mapping" : { "service-instance-id" : "service-instance-id", "vnf-id" : "vnf-id" }, "output-key-mapping" : { - "vsn_onap_private_ip_0" : "value" + "vpg_onap_private_ip_0" : "value" }, "key-dependencies" : [ "service-instance-id", "vnf-id" ] } diff --git a/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json b/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json index 5f7fa0e2..4a0ec295 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json +++ b/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json @@ -5,7 +5,7 @@ "author-email" : "abdelmuhaimen.seaudi@orange.com", "user-groups" : "ADMIN, OPERATION", "template_name" : "vFW_CNF_CDS", - "template_version" : "1.0.25", + "template_version" : "1.0.44", "template_tags" : "Samuli Silvius, vFW_CNF_CDS", "template_type" : "DEFAULT" }, @@ -34,16 +34,16 @@ "url" : "http://multicloud-k8s:9015" }, "profile-upload-properties" : { - "assignment-params": { + "assignment-params" : { "get_attribute" : [ "resource-assignment", "assignment-params" ] }, - "profile-modification-decision-data": { + "profile-modification-decision-data" : { "get_input" : "vpg-management-port" }, - "profile-artifacts": { + "profile-artifacts" : { "get_attribute" : [ "profile-modification", "assignment-params" ] }, - "api-access": "*multicloud-k8s-api" + "api-access" : "*multicloud-k8s-api" }, "config-deploy-properties" : { "resolution-key" : { @@ -64,35 +64,25 @@ "resource-assignment" : { "description" : "Resource Assign Workflow", "target" : "resource-assignment", - "activities": [ - { - "call_operation": "ResourceResolutionComponent.process" - } - ], - "on_success": [ - "profile-modification" - ] + "activities" : [ { + "call_operation" : "ResourceResolutionComponent.process" + } ], + "on_success" : [ "profile-modification" ] }, "profile-modification" : { "description" : "Profile Modification Resources", "target" : "profile-modification", - "activities": [ - { - "call_operation": "ResourceResolutionComponent.process" - } - ], - "on_success": [ - "profile-upload" - ] + "activities" : [ { + "call_operation" : "ResourceResolutionComponent.process" + } ], + "on_success" : [ "profile-upload" ] }, "profile-upload" : { "description" : "Upload K8s Profile", "target" : "profile-upload", - "activities": [ - { - "call_operation": "ComponentScriptExecutor.process" - } - ] + "activities" : [ { + "call_operation" : "ComponentScriptExecutor.process" + } ] } }, "inputs" : { -- cgit 1.2.3-korg