update vLB CDS CBA 26/96726/2
authorAbdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Tue, 8 Oct 2019 14:41:50 +0000 (14:41 +0000)
committerAbdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Tue, 8 Oct 2019 19:55:52 +0000 (19:55 +0000)
Issue-ID: CCSDK-1816
Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Change-Id: I1b399aae8abca6a2f5d175560053fa0c7b646896

20 files changed:
components/model-catalog/blueprint-model/service-blueprint/vLB/Definitions/data_types.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Definitions/node_types.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Definitions/vLB_CDS.json [moved from components/model-catalog/blueprint-model/service-blueprint/vLB/Definitions/vDNS-CDS.json with 97% similarity]
components/model-catalog/blueprint-model/service-blueprint/vLB/Plans/CONFIG_ConfigDeploy.xml
components/model-catalog/blueprint-model/service-blueprint/vLB/Scripts/python/ConfigDeploy.py
components/model-catalog/blueprint-model/service-blueprint/vLB/TOSCA-Metadata/TOSCA.meta
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/base_template-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/base_template-template.vtl
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/baseconfig-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/incremental-config-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/nf-params-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vdns-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vdns-template.vtl
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vlb-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vlb-template.vtl
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vnf-mapping.json [moved from components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vdns-vnf-mapping.json with 97% similarity]
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vnf-template.vtl [moved from components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vdns-vnf-template.vtl with 98% similarity]
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vpkg-mapping.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Templates/vpkg-template.vtl

index 346bc4b..b3d719f 100644 (file)
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "",
           "entry_schema" : {
             "type" : ""
           }
             "type" : ""
           }
         },
+        "flavor_name" : {
+          "description" : "",
+          "required" : false,
+          "type" : "string",
+          "status" : "",
+          "constraints" : [ { } ],
+          "entry_schema" : {
+            "type" : ""
+          }
+        },
         "dcae_collector_ip" : {
           "description" : "",
           "required" : false,
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "",
           "entry_schema" : {
             "type" : ""
           }
             "type" : ""
           }
         },
-        "vf_module_name" : {
+        "vf-module-name" : {
           "description" : "",
           "required" : false,
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "${vf_module_name}",
+          "default" : "${vf-module-name}",
           "entry_schema" : {
             "type" : ""
           }
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "m1.medium",
           "entry_schema" : {
             "type" : ""
           }
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "m1.medium",
           "entry_schema" : {
             "type" : ""
           }
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "",
           "entry_schema" : {
             "type" : ""
           }
           "type" : "string",
           "status" : "",
           "constraints" : [ { } ],
-          "default" : "",
           "entry_schema" : {
             "type" : ""
           }
index 7a44860..e3f915e 100644 (file)
@@ -3,6 +3,12 @@
     "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"
                   "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,
       },
       "derived_from" : "tosca.nodes.ResourceSource"
     },
-    "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",
-      "properties" : { },
-      "derived_from" : "tosca.nodes.ResourceSource"
-    },
     "source-db" : {
       "description" : "This is Database Resource Source Node Type",
       "version" : "1.0.0",
       },
       "derived_from" : "tosca.nodes.ResourceSource"
     },
+    "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",
+      "properties" : { },
+      "derived_from" : "tosca.nodes.ResourceSource"
+    },
     "source-rest" : {
       "description" : "This is Rest Resource Source Node Type",
       "version" : "1.0.0",
       "derived_from" : "tosca.nodes.Vnf"
     }
   }
-}
+}
\ No newline at end of file
index ef1c5e2..aa49e1e 100644 (file)
@@ -75,7 +75,7 @@
           "key-dependencies" : [ "vf-module-id", "service-instance-id", "vnf-id" ]
         }
       },
-      "aai-data" : {
+      "primary-aai-data" : {
         "type" : "source-rest",
         "properties" : {
           "verb" : "PATCH",
       }
     }
   },
+  "flavor_name" : {
+    "tags" : "flavor_name",
+    "name" : "flavor_name",
+    "property" : {
+      "description" : "flavor_name",
+      "type" : "string"
+    },
+    "updated-by" : "MALAKOV, YURIY <yuriy.malakov@att.com>",
+    "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/flavor_name",
+          "path" : "/param/0/value",
+          "input-key-mapping" : {
+            "service-instance-id" : "service-instance-id",
+            "vnf-id" : "vnf-id"
+          },
+          "output-key-mapping" : {
+            "flavor_name" : "value"
+          },
+          "key-dependencies" : [ "service-instance-id", "vnf-id" ]
+        }
+      }
+    }
+  },
   "gre_ipaddr" : {
     "tags" : "gre_ipaddr",
     "name" : "gre_ipaddr",
       "any-db" : {
         "type" : "source-db",
         "properties" : {
-          "query" : "SELECT artifact_name FROM BLUEPRINT_MODEL where artifact_version=\"1.0.0\"",
+          "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_MODEL where artifact_version=\"1.0.0\"",
+          "query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
           "input-key-mapping" : { },
           "output-key-mapping" : {
             "service-instance-id" : "artifact_name"
       }
     }
   },
-  "vdns_flavor_name" : {
-    "tags" : "vdns_flavor_name",
-    "name" : "vdns_flavor_name",
-    "property" : {
-      "description" : "vdns_flavor_name",
-      "type" : "string"
-    },
-    "updated-by" : "MALAKOV, YURIY <yuriy.malakov@att.com>",
-    "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/vdns_flavor_name",
-          "path" : "/param/0/value",
-          "input-key-mapping" : {
-            "service-instance-id" : "service-instance-id",
-            "vnf-id" : "vnf-id"
-          },
-          "output-key-mapping" : {
-            "vdns_flavor_name" : "value"
-          },
-          "key-dependencies" : [ "service-instance-id", "vnf-id" ]
-        }
-      }
-    }
-  },
   "vdns_int_private_ip_0" : {
     "tags" : "vdns_int_private_ip_0",
     "name" : "vdns_int_private_ip_0",
           "key-dependencies" : [ "service-instance-id", "vnf-id" ]
         }
       },
-      "aai-data" : {
+      "primary-aai-data" : {
         "type" : "source-rest",
         "properties" : {
           "verb" : "GET",
       }
     }
   },
-  "vf_module_name" : {
-    "tags" : "vf_module_name",
-    "name" : "vf_module_name",
+  "vf-module-name" : {
+    "tags" : "vf-module-name",
+    "name" : "vf-module-name",
     "property" : {
-      "description" : "vf_module_name",
+      "description" : "vf-module-name",
       "type" : "string"
     },
     "updated-by" : "Singal, Kapil <ks220y@att.com>",
       }
     }
   },
-  "vlb_flavor_name" : {
-    "tags" : "vlb_flavor_name",
-    "name" : "vlb_flavor_name",
-    "property" : {
-      "description" : "vlb_flavor_name",
-      "type" : "string"
-    },
-    "updated-by" : "MALAKOV, YURIY <yuriy.malakov@att.com>",
-    "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/vlb_flavor_name",
-          "path" : "/param/0/value",
-          "input-key-mapping" : {
-            "service-instance-id" : "service-instance-id",
-            "vnf-id" : "vnf-id"
-          },
-          "output-key-mapping" : {
-            "vlb_flavor_name" : "value"
-          },
-          "key-dependencies" : [ "service-instance-id", "vnf-id" ]
-        }
-      }
-    }
-  },
   "vlb_int_pktgen_private_ip_0" : {
     "tags" : "vlb_int_pktgen_private_ip_0",
     "name" : "vlb_int_pktgen_private_ip_0",
         "type" : "source-default",
         "properties" : { }
       },
-      "processor-db" : {
-        "type" : "source-db",
-        "properties" : {
-          "endpoint-selector" : "dynamic-db-source",
-          "type" : "SQL",
-          "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private1\"",
-          "input-key-mapping" : { },
-          "output-key-mapping" : {
-            "vlb_private_net_cidr" : "prefix"
-          }
-        }
-      },
       "sdnc" : {
         "type" : "source-rest",
         "properties" : {
           },
           "key-dependencies" : [ "service-instance-id", "vnf-id" ]
         }
+      },
+      "processor-db" : {
+        "type" : "source-db",
+        "properties" : {
+          "endpoint-selector" : "dynamic-db-source",
+          "type" : "SQL",
+          "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private1\"",
+          "input-key-mapping" : { },
+          "output-key-mapping" : {
+            "vlb_private_net_cidr" : "prefix"
+          }
+        }
       }
     }
   },
       "processor-db" : {
         "type" : "source-db",
         "properties" : {
-          "endpoint-selector" : "dynamic-db-source",
           "type" : "SQL",
           "query" : "select VFC_MODEL.version as vnfc_model_version from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
-          "input-key-mapping" : {
-            "vfccustomizationuuid" : "vfccustomizationuuid"
-          },
           "output-key-mapping" : {
             "vnfc-model-version" : "vnfc_model_version"
           },
-          "key-dependencies" : [ "vfccustomizationuuid" ]
-        }
-      }
-    }
-  },
-  "vpg_flavor_name" : {
-    "tags" : "vpg_flavor_name",
-    "name" : "vpg_flavor_name",
-    "property" : {
-      "description" : "vpg_flavor_name",
-      "type" : "string"
-    },
-    "updated-by" : "MALAKOV, YURIY <yuriy.malakov@att.com>",
-    "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/vpg_flavor_name",
-          "path" : "/param/0/value",
+          "endpoint-selector" : "dynamic-db-source",
           "input-key-mapping" : {
-            "service-instance-id" : "service-instance-id",
-            "vnf-id" : "vnf-id"
-          },
-          "output-key-mapping" : {
-            "vpg_flavor_name" : "value"
+            "vfccustomizationuuid" : "vfccustomizationuuid"
           },
-          "key-dependencies" : [ "service-instance-id", "vnf-id" ]
+          "key-dependencies" : [ "vfccustomizationuuid" ]
         }
       }
     }
       }
     }
   }
-}
+}
\ No newline at end of file
@@ -4,7 +4,7 @@
     "template_author" : "Abdelmuhaimen Seaudi",
     "author-email" : "abdelmuhaimen.seaudi@orange.com",
     "user-groups" : "ADMIN, OPERATION",
-    "template_name" : "test",
+    "template_name" : "vLB_CDS",
     "template_version" : "1.0.0",
     "template_tags" : "test, vDNS-CDS, SCALE-OUT, MARCO"
   },
             "type" : "artifact-mapping-resource",
             "file" : "Templates/vdns-mapping.json"
           },
-          "vdns-vnf-template" : {
+          "vnf-template" : {
             "type" : "artifact-template-velocity",
-            "file" : "Templates/vdns-vnf-template.vtl"
+            "file" : "Templates/vnf-template.vtl"
           },
-          "vdns-vnf-mapping" : {
+          "vnf-mapping" : {
             "type" : "artifact-mapping-resource",
-            "file" : "Templates/vdns-vnf-mapping.json"
+            "file" : "Templates/vnf-mapping.json"
           },
           "vlb-template" : {
             "type" : "artifact-template-velocity",
index 519aecf..92fb2aa 100644 (file)
@@ -1,27 +1,27 @@
-<service-logic
-        xmlns='http://www.onap.org/sdnc/svclogic'
-        xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
-        xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='CONFIG' version='1.0.0'>
-    <method rpc='ConfigDeploy' mode='sync'>
-        <block atomic="true">
-            <execute plugin="nf-account-collection" method="process">
-                <outcome value='failure'>
-                    <return status="failure">
-                    </return>
-                </outcome>
-                <outcome value='success'>
-                    <execute plugin="execute" method="process">
-                        <outcome value='failure'>
-                            <return status="failure">
-                            </return>
-                        </outcome>
-                        <outcome value='success'>
-                            <return status='success'>
-                            </return>
-                        </outcome>
-                    </execute>
-                </outcome>
-            </execute>
-        </block>
-    </method>
+<service-logic\r
+  xmlns='http://www.onap.org/sdnc/svclogic'\r
+  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\r
+  xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='CONFIG' version='1.0.0'>\r
+    <method rpc='ConfigDeploy' mode='sync'>\r
+        <block atomic="true">\r
+            <execute plugin="nf-account-collection" method="process">\r
+                <outcome value='failure'>\r
+                    <return status="failure">\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <execute plugin="execute" method="process">\r
+                        <outcome value='failure'>\r
+                            <return status="failure">\r
+                            </return>\r
+                        </outcome>\r
+                        <outcome value='success'>\r
+                            <return status='success'>\r
+                            </return>\r
+                        </outcome>\r
+                    </execute>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
 </service-logic>
\ No newline at end of file
index 04ea82e..34fd140 100644 (file)
@@ -1,54 +1,54 @@
-#  Copyright (c) 2019 Bell Canada.
-#
-#  Licensed under the Apache License, Version 2.0 (the "License");
-#  you may not use this file except in compliance with the License.
-#  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-import netconf_constant
-from common import ResolutionHelper
-from time import sleep 
-from netconfclient import NetconfClient
-from org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor import \
-  NetconfComponentFunction
-
-
-class ConfigDeploy(NetconfComponentFunction):
-
-  def process(self, execution_request):      
-      log = globals()[netconf_constant.SERVICE_LOG]      
-      print(globals())
-      print("Waiting 4 minutes until NETCONF server is UP on vLB ...")
-      sleep (240)
-      nc = NetconfClient(log, self, "netconf-connection")
-      rr = ResolutionHelper(self)
-
-      # Get meshed template from DB
-      resolution_key = self.getDynamicProperties("resolution-key").asText()
-      payloadHostname = rr.retrieve_resolved_template_from_database(resolution_key, "baseconfig")
-      payloadInterface = rr.retrieve_resolved_template_from_database(resolution_key, "incremental-config")
-
-      nc.connect()
-      nc.lock()
-      #if not response.isSuccess():
-      #  og.error(response.errorMessage)
-      nc.discard_change()
-      nc.edit_config(message_content=payloadInterface, edit_default_peration="none")
-      nc.edit_config(message_content=payloadHostname, edit_default_peration="none")
-      nc.validate()
-      nc.commit()
-      #nc.commit(confirmed = True, confirm_timeout=15)
-      nc.unlock()
-      nc.disconnect()
-
-  def recover(self, runtime_exception, execution_request):
-        log.error("Exception in the script {}", runtime_exception)
-        print self.addError(runtime_exception.cause.message)
+#  Copyright (c) 2019 Bell Canada.\r
+#\r
+#  Licensed under the Apache License, Version 2.0 (the "License");\r
+#  you may not use this file except in compliance with the License.\r
+#  You may obtain a copy of the License at\r
+#\r
+#      http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+#  Unless required by applicable law or agreed to in writing, software\r
+#  distributed under the License is distributed on an "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+#  See the License for the specific language governing permissions and\r
+#  limitations under the License.\r
+\r
+import netconf_constant\r
+from common import ResolutionHelper\r
+from time import sleep \r
+from netconfclient import NetconfClient\r
+from org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor import \\r
+  NetconfComponentFunction\r
+\r
+\r
+class ConfigDeploy(NetconfComponentFunction):\r
+\r
+  def process(self, execution_request):      \r
+      log = globals()[netconf_constant.SERVICE_LOG]      \r
+      print(globals())\r
+#      print("Waiting 4 minutes until NETCONF server is UP on vLB ...")\r
+#     sleep (240)\r
+      nc = NetconfClient(log, self, "netconf-connection")\r
+      rr = ResolutionHelper(self)\r
+\r
+      # Get meshed template from DB\r
+      resolution_key = self.getDynamicProperties("resolution-key").asText()\r
+      payloadHostname = rr.retrieve_resolved_template_from_database(resolution_key, "baseconfig")\r
+      payloadInterface = rr.retrieve_resolved_template_from_database(resolution_key, "incremental-config")\r
+\r
+      nc.connect()\r
+      nc.lock()\r
+      #if not response.isSuccess():\r
+      #  og.error(response.errorMessage)\r
+      nc.discard_change()\r
+      nc.edit_config(message_content=payloadInterface, edit_default_peration="none")\r
+      nc.edit_config(message_content=payloadHostname, edit_default_peration="none")\r
+      nc.validate()\r
+      nc.commit()\r
+      #nc.commit(confirmed = True, confirm_timeout=15)\r
+      nc.unlock()\r
+      nc.disconnect()\r
+\r
+  def recover(self, runtime_exception, execution_request):\r
+        log.error("Exception in the script {}", runtime_exception)\r
+        print self.addError(runtime_exception.cause.message)\r
         return None
\ No newline at end of file
index ea1a903..37c59ee 100644 (file)
@@ -1,6 +1,6 @@
 TOSCA-Meta-File-Version: 1.0.0
 CSAR-Version: 1.0
 Created-By: PLATANIA, MARCO <platania@research.att.com>
-Entry-Definitions: Definitions/vDNS-CDS.json
+Entry-Definitions: Definitions/vLB_CDS.json
 Template-Tags: vDNS-CDS-test1
 Content-Type: application/vnd.oasis.bpmn
\ No newline at end of file
index 62d1b96..43b0f9d 100644 (file)
@@ -20,7 +20,7 @@
     "version": 0
   },
     {
-    "name": "vf_module_name",
+    "name": "vf-module-name",
     "property": {
       "description": "",
       "required": false,
       "entry_schema": {
         "type": ""
       },
-      "default": "${vf_module_name}"
+      "default": "${vf-module-name}"
     },
     "input-param": false,
-    "dictionary-name": "vf_module_name",
+    "dictionary-name": "vf-module-name",
     "dictionary-source": "default",
     "dependencies": [],
     "version": 0
     ],
     "version": 0
   }
-]
+]
\ No newline at end of file
index 8055030..58512be 100644 (file)
           "payload": [
             {
               "param-name": "resource-name",
-              "param-value": "vf_module_name"
+              "param-value": "vf-module-name"
             },
             {
               "param-name": "resource-value",
-              "param-value": "${vf_module_name}"
+              "param-value": "${vf-module-name}"
             },
             {
               "param-name": "external-key",
-              "param-value": "${vf-module-id}_vf_module_name"
+              "param-value": "${vf-module-id}_vf-module-name"
             },
             {
               "param-name": "policy-instance-name",
           ],
           "output-key-mapping": [
             {
-              "resource-name": "vf_module_name",
-              "resource-value": "${vf_module_name}"
+              "resource-name": "vf-module-name",
+              "resource-value": "${vf-module-name}"
             }
           ]
         }
index cf30994..2dee19c 100644 (file)
     "version": 0
   },
   {
-    "name": "vf_module_name",
+    "name": "vf-module-name",
     "property": {
       "description": "",
       "required": false,
       "entry_schema": {
         "type": ""
       },
-      "default": "${vf_module_name}"
+      "default": "${vf-module-name}"
     },
     "input-param": false,
-    "dictionary-name": "vf_module_name",
+    "dictionary-name": "vf-module-name",
     "dictionary-source": "default",
     "dependencies": [],
     "version": 0
       "default": "m1.medium"
     },
     "input-param": false,
-    "dictionary-name": "vdns_flavor_name",
-    "dictionary-source": "default",
-    "dependencies": [],
+   "dictionary-name": "flavor_name",
+    "dictionary-source": "sdnc",
+    "dependencies": [
+         "service-instance-id",
+      "vnf-id"
+       ],
     "version": 0
   },
   
     ],
     "version": 0
   }
-]
+]
\ No newline at end of file
index 9c493dc..84fab0d 100644 (file)
           "payload": [
             {
               "param-name": "resource-name",
-              "param-value": "vf_module_name"
+              "param-value": "vf-module-name"
             },
             {
               "param-name": "resource-value",
-              "param-value": "${vf_module_name}"
+              "param-value": "${vf-module-name}"
             },
             {
               "param-name": "external-key",
-              "param-value": "${vf-module-id}_vf_module_name"
+              "param-value": "${vf-module-id}_vf-module-name"
             },
             {
               "param-name": "policy-instance-name",
           ],
           "output-key-mapping": [
             {
-              "resource-name": "vf_module_name",
-              "resource-value": "${vf_module_name}"
+              "resource-name": "vf-module-name",
+              "resource-value": "${vf-module-name}"
             }
           ]
         }
index 9e3b693..0104579 100644 (file)
@@ -21,7 +21,7 @@
     "version": 0
   },
   {
-    "name": "vf_module_name",
+    "name": "vf-module-name",
     "property": {
       "description": "",
       "required": false,
       "entry_schema": {
         "type": ""
       },
-      "default": "${vf_module_name}"
+      "default": "${vf-module-name}"
     },
     "input-param": false,
-    "dictionary-name": "vf_module_name",
+    "dictionary-name": "vf-module-name",
     "dictionary-source": "default",
     "dependencies": [],
     "version": 0
       ],
       "entry_schema": {
         "type": ""
-      },
-      "default": "m1.medium"
-    },
+      }
+         },
     "input-param": false,
-    "dictionary-name": "vlb_flavor_name",
-    "dictionary-source": "default",
-    "dependencies": [],
+    "dictionary-name": "flavor_name",
+    "dictionary-source": "sdnc",
+    "dependencies": [
+         "service-instance-id",
+      "vnf-id"
+       ],
     "version": 0
   },
   {
     "dependencies": [],
     "version": 0
   }
-]
+]
\ No newline at end of file
index bc495bd..458423e 100644 (file)
           "payload": [
             {
               "param-name": "resource-name",
-              "param-value": "vf_module_name"
+              "param-value": "vf-module-name"
             },
             {
               "param-name": "resource-value",
-              "param-value": "${vf_module_name}"
+              "param-value": "${vf-module-name}"
             },
             {
               "param-name": "external-key",
-              "param-value": "${vf-module-id}_vf_module_name"
+              "param-value": "${vf-module-id}_vf-module-name"
             },
             {
               "param-name": "policy-instance-name",
           ],
           "output-key-mapping": [
             {
-              "resource-name": "vf_module_name",
-              "resource-value": "${vf_module_name}"
+              "resource-name": "vf-module-name",
+              "resource-value": "${vf-module-name}"
             }
           ]
         }
     "dictionary-source": "input",
     "dependencies": [],
     "version": 0
+  },
+    {
+    "name": "flavor_name",
+    "property": {
+      "description": "",
+      "required": false,
+      "type": "string",
+      "status": "",
+      "constraints": [
+        {}
+      ],
+      "entry_schema": {
+        "type": ""
+      }
+    },
+    "input-param": false,
+    "dictionary-name": "flavor_name",
+    "dictionary-source": "input",
+    "dependencies": [],
+    "version": 0
   },
   {
     "name": "image_name",
     {
       "param-name": "cloud_env",
       "param-value": "${cloud_env}"
+    },
+          {
+      "param-name": "flavor_name",
+      "param-value": "${flavor_name}"
     },
     {
       "param-name": "install_script_version",
index 554d45f..25721e2 100644 (file)
@@ -21,7 +21,7 @@
     "version": 0
   },
   {
-    "name": "vf_module_name",
+    "name": "vf-module-name",
     "property": {
       "description": "",
       "required": false,
       "entry_schema": {
         "type": ""
       },
-      "default": "${vf_module_name}"
+      "default": "${vf-module-name}"
     },
     "input-param": false,
-    "dictionary-name": "vf_module_name",
+    "dictionary-name": "vf-module-name",
     "dictionary-source": "default",
     "dependencies": [],
     "version": 0
       ],
       "entry_schema": {
         "type": ""
-      },
-      "default": "m1.medium"
+      }
     },
     "input-param": false,
-    "dictionary-name": "vpg_flavor_name",
-    "dictionary-source": "default",
-    "dependencies": [],
+   "dictionary-name": "flavor_name",
+    "dictionary-source": "sdnc",
+    "dependencies": [
+         "service-instance-id",
+      "vnf-id"
+       ],
     "version": 0
   },
   {
     ],
     "version": 0
   }
-]
+]
\ No newline at end of file
index 98d541d..bd745b1 100644 (file)
           "payload": [
             {
               "param-name": "resource-name",
-              "param-value": "vf_module_name"
+              "param-value": "vf-module-name"
             },
             {
               "param-name": "resource-value",
-              "param-value": "${vf_module_name}"
+              "param-value": "${vf-module-name}"
             },
             {
               "param-name": "external-key",
-              "param-value": "${vf-module-id}_vf_module_name"
+              "param-value": "${vf-module-id}_vf-module-name"
             },
             {
               "param-name": "policy-instance-name",
           ],
           "output-key-mapping": [
             {
-              "resource-name": "vf_module_name",
-              "resource-value": "${vf_module_name}"
+              "resource-name": "vf-module-name",
+              "resource-value": "${vf-module-name}"
             }
           ]
         }