def delete(self, request, obj_id): try: neutron.networktemplate_delete(request, obj_id) except Exception as e: LOG.info(str(e)) messages.error( request, _("Unable to delete template. Template may " "be in use by a tenant."))
def delete(self, request, template_id): result = bsnneutron.networktemplate_delete(request, template_id) return result