'Reboot the given instance.'

@check_instance_lock
def reboot(self, context, instance, reboot_type):

    if (reboot_type == 'SOFT'):
        self._soft_reboot(context, instance)
    else:
        self._hard_reboot(context, instance)
