def retry_failure_internal(self, tenant_id, tenant_name, fw_data,<EOL>is_fw_virt, result):
if not self.auto_nwk_create:<EOL><INDENT>LOG.info("<STR_LIT>")<EOL>return False<EOL><DEDENT>try:<EOL><INDENT>if tenant_id not in self.service_attr:<EOL><INDENT>LOG.error("<STR_LIT>")<EOL>return False<EOL><DEDENT>if result == fw_const.RESULT_FW_CREATE_INIT:<EOL><INDENT>ret = self.run_create_sm(tenant_id, fw_data, is_fw_virt)<EOL><DEDENT>else:<EOL><INDENT>if result == fw_const.RESULT_FW_DELETE_INIT:<EOL><INDENT>ret = self.run_delete_sm(tenant_id, fw_data, is_fw_virt)<EOL><DEDENT>else:<EOL><INDENT>LOG.error("<STR_LIT>")<EOL>return False<EOL><DEDENT><DEDENT>self.service_attr[tenant_id].set_fabric_create(ret)<EOL><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>str(exc))<EOL>return False<EOL><DEDENT>return ret<EOL>
Internal routine to retry the failed cases.