provide juju parameters to the config primitives 78/9878/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 14 Oct 2020 15:13:28 +0000 (15:13 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 19 Oct 2020 10:45:43 +0000 (10:45 +0000)
Change-Id: I87c3e895a7065bab5658c74756ed7305af403fab
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_lcm/ns.py

index 2a0e8b4..7160b99 100644 (file)
@@ -3521,8 +3521,7 @@ class NsLcm(LcmBase):
             self._write_op_status(nslcmop_id, stage)
         return error_detail_list
 
-    @staticmethod
-    def _map_primitive_params(primitive_desc, params, instantiation_params):
+    def _map_primitive_params(self, primitive_desc, params, instantiation_params):
         """
         Generates the params to be provided to charm before executing primitive. If user does not provide a parameter,
         The default-value is used. If it is between < > it look for a value at instantiation_params
@@ -3570,6 +3569,7 @@ class NsLcm(LcmBase):
         if primitive_desc["name"] == "config":
             if "ns_config_info" in instantiation_params:
                 calculated_params["ns_config_info"] = instantiation_params["ns_config_info"]
+            calculated_params["VCA"] = self.vca_config
         return calculated_params
 
     def _look_for_deployed_vca(self, deployed_vca, member_vnf_index, vdu_id, vdu_count_index, kdu_name=None,