diff options
author | 2020-10-23 13:28:42 +0200 | |
---|---|---|
committer | 2020-10-28 21:33:48 +0000 | |
commit | 7b6da0e35be54ac5ce92458454a6e8d0b83031fd (patch) | |
tree | 5b04ceae67d11e86262cd22145f7ff80b01a181b /components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json | |
parent | cf1e08373c11c19ef6acf6f1390225c6e9ccf4eb (diff) |
Simplify PNF-DEMO CBA
- fix reference issues causing enrichment/validation to fail
- remove redundant data dictionaries
- remove redundant template & mapping
- rename node-templates for clarity
- add workflow outputs for better feedback
- remove bash scripts which belong in documentation
Issue-ID: CCSDK-2859
Change-Id: I12095f37ff20fcfeee6af43aef3bd221b2ab1ef7
Signed-off-by: JakobKrieg <jakob.krieg@bcmsolutions.de>
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Diffstat (limited to 'components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json')
-rw-r--r-- | components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json | 161 |
1 files changed, 98 insertions, 63 deletions
diff --git a/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json index 30d0749b2..1c9a6e011 100644 --- a/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json +++ b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Definitions/node_types.json @@ -1,5 +1,77 @@ { "node_types" : { + "component-netconf-executor" : { + "description" : "This is Netconf Transaction Configuration Component API", + "version" : "1.0.0", + "attributes" : { + "response-data" : { + "required" : false, + "type" : "json" + } + }, + "capabilities" : { + "component-node" : { + "type" : "tosca.capabilities.Node" + } + }, + "requirements" : { + "netconf-connection" : { + "capability" : "netconf", + "node" : "vnf-netconf-device", + "relationship" : "tosca.relationships.ConnectsTo" + } + }, + "interfaces" : { + "ComponentNetconfExecutor" : { + "operations" : { + "process" : { + "inputs" : { + "script-type" : { + "description" : "Script type, kotlin type is supported", + "required" : true, + "type" : "string", + "constraints" : [ { + "valid_values" : [ "kotlin", "jython", "internal" ] + } ], + "default" : "internal" + }, + "script-class-reference" : { + "description" : "Kotlin Script class name or jython script name.", + "required" : true, + "type" : "string" + }, + "instance-dependencies" : { + "description" : "Instance names to inject to Jython or Kotlin Script.", + "required" : true, + "type" : "list", + "entry_schema" : { + "type" : "string" + } + }, + "dynamic-properties" : { + "description" : "Dynamic Json Content or DSL Json reference.", + "required" : false, + "type" : "json" + } + }, + "outputs" : { + "response-data" : { + "description" : "Execution Response Data in JSON format.", + "required" : false, + "type" : "string" + }, + "status" : { + "description" : "Status of the Component Execution ( success or failure )", + "required" : true, + "type" : "string" + } + } + } + } + } + }, + "derived_from" : "tosca.nodes.Component" + }, "component-resource-resolution" : { "description" : "This is Resource Assignment Component API", "version" : "1.0.0", @@ -100,69 +172,6 @@ }, "derived_from" : "tosca.nodes.Component" }, - "component-script-executor" : { - "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" - } - }, - "interfaces" : { - "ComponentScriptExecutor" : { - "operations" : { - "process" : { - "inputs" : { - "script-type" : { - "description" : "Script type, kotlin type is supported", - "required" : true, - "type" : "string", - "constraints" : [ { - "valid_values" : [ "kotlin", "jython", "internal" ] - } ], - "default" : "internal" - }, - "script-class-reference" : { - "description" : "Kotlin Script class name or jython script name.", - "required" : true, - "type" : "string" - }, - "dynamic-properties" : { - "description" : "Dynamic Json Content or DSL Json reference.", - "required" : false, - "type" : "json" - } - }, - "outputs" : { - "response-data" : { - "description" : "Execution Response Data.", - "required" : false, - "type" : "string" - }, - "status" : { - "description" : "Status of the Component Execution ( success or failure )", - "required" : true, - "type" : "string" - } - } - } - } - } - }, - "derived_from" : "tosca.nodes.Component" - }, - "source-default" : { - "description" : "This is Default Resource Source Node Type", - "version" : "1.0.0", - "properties" : { }, - "derived_from" : "tosca.nodes.ResourceSource" - }, "source-input" : { "description" : "This is Input Resource Source Node Type", "version" : "1.0.0", @@ -221,6 +230,32 @@ "default" : 30 } } + }, + "restconf" : { + "type" : "tosca.capabilities.Restconf", + "properties" : { + "login-key" : { + "required" : true, + "type" : "string" + }, + "login-account" : { + "required" : true, + "type" : "string" + }, + "target-ip-address" : { + "required" : true, + "type" : "string" + }, + "port-number" : { + "required" : true, + "type" : "integer" + }, + "connection-time-out" : { + "required" : false, + "type" : "integer", + "default" : 30 + } + } } }, "derived_from" : "tosca.nodes.Vnf" |