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