aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions
diff options
context:
space:
mode:
authortragait <rahul.tyagi@est.tech>2019-11-06 11:44:11 +0000
committertragait <rahul.tyagi@est.tech>2019-11-13 14:51:40 +0000
commit6f7a427e53f4e129d84198f4c94036b4fe6b3898 (patch)
tree87238feaa6262bd4c96a910cc0b3df38f0a7905d /components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions
parent54eb2f2680d4f2447a4d48b612b2b83e37d90754 (diff)
CCSDK-1603:Changes in 'Config via netconf' BP to pull data from AAI
This commit includes changes in blueprint for "Configuration over netconf", So that CDS can fetch data from AAI. It has enhancement in UAT test yaml file, so this blueprint can be tested. An enhancement is also included to introduce request headers in the source-rest. Change-Id: I4ff973538249925239b89da4c5720ec63ffe8037 Issue-ID: CCSDK-1603 Signed-off-by: tragait <rahul.tyagi@est.tech>
Diffstat (limited to 'components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions')
-rw-r--r--components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/activation-blueprint.json40
-rw-r--r--components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/node_types.json92
-rw-r--r--components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/resources_definition_types.json27
3 files changed, 117 insertions, 42 deletions
diff --git a/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/activation-blueprint.json b/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/activation-blueprint.json
index d185128d5..1a7ba559a 100644
--- a/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/activation-blueprint.json
+++ b/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/activation-blueprint.json
@@ -32,7 +32,7 @@
"steps" : {
"activate-process" : {
"description" : "Create a configlet",
- "target" : "config-assign-process",
+ "target" : "config-assign",
"activities" : [ {
"call_operation" : ""
} ]
@@ -58,7 +58,7 @@
"steps" : {
"activate-process" : {
"description" : "Send a configlet to the pnf",
- "target" : "config-deploy-process",
+ "target" : "config-deploy",
"activities" : [ {
"call_operation" : ""
} ]
@@ -78,21 +78,6 @@
}
},
"node_templates" : {
- "config-assign-process" : {
- "type" : "dg-generic",
- "properties" : {
- "content" : {
- "get_artifact" : [ "SELF", "dg-config-assign-process" ]
- },
- "dependency-node-templates" : [ "config-assign" ]
- },
- "artifacts" : {
- "dg-config-assign-process" : {
- "type" : "artifact-directed-graph",
- "file" : "Plans/CONFIG_configAssign.xml"
- }
- }
- },
"config-assign" : {
"type" : "component-resource-resolution",
"interfaces" : {
@@ -104,7 +89,7 @@
"get_input" : "resolution-key"
},
"store-result" : true,
- "artifact-prefix-names" : ["config-assign"]
+ "artifact-prefix-names" : [ "config-assign" ]
},
"outputs" : {
"resource-assignment-params" : {
@@ -127,21 +112,6 @@
}
}
},
- "config-deploy-process" : {
- "type" : "dg-generic",
- "properties" : {
- "content" : {
- "get_artifact" : [ "SELF", "dg-config-deploy-process" ]
- },
- "dependency-node-templates" : [ "config-deploy" ]
- },
- "artifacts" : {
- "dg-config-assign-process" : {
- "type" : "artifact-directed-graph",
- "file" : "Plans/CONFIG_configDeploy.xml"
- }
- }
- },
"config-deploy" : {
"type" : "component-script-executor",
"interfaces" : {
@@ -149,7 +119,9 @@
"operations" : {
"process" : {
"implementation" : {
- "primary" : "component-script"
+ "primary" : "component-script",
+ "timeout" : 180,
+ "operation_host" : "SELF"
},
"inputs" : {
"script-type" : "jython",
diff --git a/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/node_types.json b/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/node_types.json
index 8c2c0abea..bfae6779e 100644
--- a/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/node_types.json
+++ b/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/node_types.json
@@ -24,6 +24,12 @@
"required" : false,
"type" : "string"
},
+ "occurrence" : {
+ "description" : "Number of time to perform the resolution.",
+ "required" : false,
+ "type" : "integer",
+ "default" : 1
+ },
"store-result" : {
"description" : "Whether or not to store the output.",
"required" : false,
@@ -80,8 +86,14 @@
"derived_from" : "tosca.nodes.Component"
},
"component-script-executor" : {
- "description" : "This is Restconf Transaction Configuration Component API",
+ "description" : "This is CLI Transaction Configuration Component API",
"version" : "1.0.0",
+ "attributes" : {
+ "response-data" : {
+ "required" : false,
+ "type" : "json"
+ }
+ },
"capabilities" : {
"component-node" : {
"type" : "tosca.capabilities.Node"
@@ -114,7 +126,7 @@
},
"outputs" : {
"response-data" : {
- "description" : "Execution Response Data in JSON format.",
+ "description" : "Execution Response Data.",
"required" : false,
"type" : "string"
},
@@ -155,6 +167,82 @@
"properties" : { },
"derived_from" : "tosca.nodes.ResourceSource"
},
+ "source-rest" : {
+ "description" : "This is Rest Resource Source Node Type",
+ "version" : "1.0.0",
+ "properties" : {
+ "type" : {
+ "required" : true,
+ "type" : "string",
+ "constraints" : [ {
+ "valid_values" : [ "JSON" ]
+ } ],
+ "default" : "JSON"
+ },
+ "headers" : {
+ "required" : false,
+ "type" : "map",
+ "entry_schema" : {
+ "type" : "string"
+ }
+ },
+ "verb" : {
+ "required" : true,
+ "type" : "string",
+ "constraints" : [ {
+ "valid_values" : [ "GET", "POST", "DELETE", "PUT" ]
+ } ],
+ "default" : "GET"
+ },
+ "payload" : {
+ "required" : false,
+ "type" : "string",
+ "default" : ""
+ },
+ "endpoint-selector" : {
+ "required" : false,
+ "type" : "string"
+ },
+ "url-path" : {
+ "required" : true,
+ "type" : "string"
+ },
+ "path" : {
+ "required" : true,
+ "type" : "string"
+ },
+ "expression-type" : {
+ "required" : false,
+ "type" : "string",
+ "constraints" : [ {
+ "valid_values" : [ "JSON_PATH", "JSON_POINTER" ]
+ } ],
+ "default" : "JSON_PATH"
+ },
+ "input-key-mapping" : {
+ "required" : false,
+ "type" : "map",
+ "entry_schema" : {
+ "type" : "string"
+ }
+ },
+ "output-key-mapping" : {
+ "required" : false,
+ "type" : "map",
+ "entry_schema" : {
+ "type" : "string"
+ }
+ },
+ "key-dependencies" : {
+ "required" : true,
+ "type" : "list",
+ "entry_schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "derived_from" : "tosca.nodes.ResourceSource"
+ },
"tosca.nodes.Component" : {
"description" : "This is default Component Node",
"version" : "1.0.0",
diff --git a/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/resources_definition_types.json b/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/resources_definition_types.json
index 114eb1992..d1183f14b 100644
--- a/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/resources_definition_types.json
+++ b/components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/resources_definition_types.json
@@ -15,17 +15,32 @@
}
},
"pnf-ipv4-address" : {
- "tags" : "pnf-ipv4-address",
+ "tags" : "aai-get",
"name" : "pnf-ipv4-address",
"property" : {
- "description" : "pnf-ipv4-address",
+ "description" : "primary aai data to get resource",
"type" : "string"
},
- "updated-by" : "Rodrigo Ottero <rodrigo.ottero@est.tech>",
+ "updated-by" : "Rahul, Tyagi <rahul.tyagi@est.tech>",
"sources" : {
- "input" : {
- "type" : "source-input",
- "properties" : { }
+ "aai-data" : {
+ "type" : "source-rest",
+ "properties" : {
+ "type" : "JSON",
+ "verb" : "GET",
+ "url-path" : "/aai/v14/network/pnfs/pnf/$pnf-id",
+ "path" : "/ipaddress-v4-oam",
+ "input-key-mapping" : {
+ "pnf-id" : "pnf-id"
+ },
+ "headers" : {
+ "Accept" : "application/json"
+ },
+ "output-key-mapping" : {
+ "ipaddress-v4-oam" : "value"
+ },
+ "key-dependencies" : [ "pnf-id" ]
+ }
}
}
}