code: def reboot(env, identifier, hard):
      
  
      virtual_guest = env.client['Virtual_Guest']
      mgr = SoftLayer.HardwareManager(env.client)
      vs_id = helpers.resolve_id(mgr.resolve_ids, identifier, 'VS')
      if not (env.skip_confirmations or
              formatting.confirm('This will reboot the VS with id %s. '
                                 'Continue?' % vs_id)):
          raise exceptions.CLIAbort('Aborted.')
  
      if hard is True:
          virtual_guest.rebootHard(id=vs_id)
      elif hard is False:
          virtual_guest.rebootSoft(id=vs_id)
      else:
          virtual_guest.rebootDefault(id=vs_id)
docs: Reboot an active virtual server.