def delete_dcnm_out_part(self, tenant_id, fw_dict, is_fw_virt=False):
        """Delete the DCNM OUT partition and update the result. """
        res = fw_const.DCNM_OUT_PART_DEL_SUCCESS
        tenant_name = fw_dict.get('tenant_name')
        ret = True
        try:
            self._delete_partition(tenant_id, tenant_name)
        except Exception as exc:
            LOG.error("deletion of Out Partition failed for tenant "
                      "%(tenant)s, Exception %(exc)s",
                      {'tenant': tenant_id, 'exc': str(exc)})
            res = fw_const.DCNM_OUT_PART_DEL_FAIL
            ret = False
        self.update_fw_db_result(tenant_id, dcnm_status=res)
        LOG.info("Out partition deleted")
        return ret
def delete_dcnm_out_part ( self , tenant_id , fw_dict , is_fw_virt = False ) : res = fw_const . DCNM_OUT_PART_DEL_SUCCESS tenant_name = fw_dict . get ( 'tenant_name' ) ret = True try : self . _delete_partition ( tenant_id , tenant_name ) except Exception as exc : LOG . error ( "deletion of Out Partition failed for tenant " "%(tenant)s, Exception %(exc)s" , { 'tenant' : tenant_id , 'exc' : str ( exc ) } ) res = fw_const . DCNM_OUT_PART_DEL_FAIL ret = False self . update_fw_db_result ( tenant_id , dcnm_status = res ) LOG . info ( "Out partition deleted" ) return ret
Delete the DCNM OUT partition and update the result.