From: tierno Date: Fri, 5 Jul 2019 15:25:25 +0000 (+0000) Subject: minor changes at ns.py X-Git-Tag: v6.0.2rc1~9 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c95569774f9119c7ad9d53405ca59b836f675134;p=osm%2FLCM.git minor changes at ns.py Change-Id: Ic0a6ee048137d56dcd73bfede524bd7065803831 Signed-off-by: tierno --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index d2724a0..3b2dc2e 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -1560,8 +1560,9 @@ class NsLcm(LcmBase): else: return False - # Get a numerically sorted list of the sequences for this VNFD's terminate action - def _get_terminate_config_primitive_seq_list(self, vnfd): + @staticmethod + def _get_terminate_config_primitive_seq_list(vnfd): + """ Get a numerically sorted list of the sequences for this VNFD's terminate action """ # No need to check for existing primitive twice, already done before vnf_config = vnfd.get("vnf-configuration") seq_list = vnf_config.get("terminate-config-primitive") @@ -1603,10 +1604,10 @@ class NsLcm(LcmBase): } return nslcmop - # Create a primitive with params from VNFD - # - Called from terminate() before deleting instance - # - Calls action() to execute the primitive async def _terminate_action(self, db_nslcmop, nslcmop_id, nsr_id): + """ Create a primitive with params from VNFD + Called from terminate() before deleting instance + Calls action() to execute the primitive """ logging_text = "Task ns={} _terminate_action={} ".format(nsr_id, nslcmop_id) db_vnfds = {} db_vnfrs_list = self.db.get_list("vnfrs", {"nsr-id-ref": nsr_id})