Fix blueprint data 35/84535/1
authorottero <rodrigo.ottero@est.tech>
Mon, 8 Apr 2019 14:15:07 +0000 (14:15 +0000)
committerottero <rodrigo.ottero@est.tech>
Mon, 8 Apr 2019 14:15:07 +0000 (14:15 +0000)
Request parameter nf-id should be: pnf-id
ODL key name ODL-private-key should be: ODL_private_key_0

Change-Id: I846112c3bd6a80d21a4b5de0845ce99d06b0515f
Issue-ID: CCSDK-1208
Signed-off-by: ottero <rodrigo.ottero@est.tech>
components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Definitions/config-deploy-pnf-mapping.json
components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Definitions/data_types.json
components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Scripts/python/RestconfConfigDeploy.py
components/model-catalog/blueprint-model/test-blueprint/capability_restconf/Templates/config-deploy-restconf-mount-template.vtl
components/model-catalog/resource-dictionary/starter-dictionary/pnf-id.json [moved from components/model-catalog/resource-dictionary/starter-dictionary/nf-id.json with 73% similarity]

index 536295e..d87b8d1 100644 (file)
@@ -1,11 +1,11 @@
 [
   {
-    "name": "nf-id",
+    "name": "pnf-id",
     "input-param": true,
     "property": {
       "type": "string"
     },
-    "dictionary-name": "nf-id",
+    "dictionary-name": "pnf-id",
     "dictionary-source": "input",
     "dependencies": [
     ]
index e94bb0f..a0804bb 100644 (file)
@@ -13,7 +13,7 @@
         "pnf-ipv4-address" : {
           "type" : "string"
         },
-        "nf-id" : {
+        "pnf-id" : {
           "type" : "string"
         }
       },
index 0153276..114eb19 100644 (file)
@@ -1,9 +1,9 @@
 {
-  "nf-id" : {
-    "tags" : "nf-id",
-    "name" : "nf-id",
+  "pnf-id" : {
+    "tags" : "pnf-id",
+    "name" : "pnf-id",
     "property" : {
-      "description" : "nf-id",
+      "description" : "pnf-id",
       "type" : "string"
     },
     "updated-by" : "Rodrigo Ottero <rodrigo.ottero@est.tech>",
index 2402c5b..d65aefa 100644 (file)
@@ -67,9 +67,9 @@ class RestconfConfigDeploy(RestconfComponentFunction):
     def retrieve_parameters(self, execution_request):
         resolution_key = self.getDynamicProperties("resolution-key").asText()
         self.log.info("resolution_key: {}", resolution_key)
-        pnf_id = execution_request.payload.get("config-deploy-request").get("config-deploy-properties").get("nf-id")
+        pnf_id = execution_request.payload.get("config-deploy-request").get("config-deploy-properties").get("pnf-id")
         pnf_id = str(pnf_id).strip('\"')
-        self.log.info("nf-id: {}", pnf_id)
+        self.log.info("pnf-id: {}", pnf_id)
         return pnf_id, resolution_key
 
     def recover(self, runtime_exception, execution_request):
index caad02b..ad03321 100644 (file)
@@ -1,7 +1,7 @@
 <node xmlns="urn:TBD:params:xml:ns:yang:network-topology">
-    <node-id>$nf-id</node-id>
+    <node-id>$pnf-id</node-id>
     <key-based xmlns="urn:opendaylight:netconf-node-topology">
-        <key-id xmlns="urn:opendaylight:netconf-node-topology">ODL-private-key</key-id>
+        <key-id xmlns="urn:opendaylight:netconf-node-topology">ODL_private_key_0</key-id>
         <username xmlns="urn:opendaylight:netconf-node-topology">netconf</username>
      </key-based>
     <host xmlns="urn:opendaylight:netconf-node-topology">$pnf-ipv4-address</host>
@@ -1,9 +1,9 @@
 {
-  "name" : "nf-id",
-  "tags" : "nf-id",
+  "name" : "pnf-id",
+  "tags" : "pnf-id",
   "updated-by" : "Rodrigo Ottero <rodrigo.ottero@est.tech>",
   "property" : {
-    "description" : "nf-id",
+    "description" : "pnf-id",
     "type" : "string"
   },
   "sources" : {