code: def restart_local(drain=False):
      '''
      Restart the traffic_manager and traffic_server processes on the local node.
  
      drain
          This option modifies the restart behavior such that
          ``traffic_server`` is not shut down until the number of
          active client connections drops to the number given by the
          ``proxy.config.restart.active_client_threshold`` configuration
          variable.
  
      .. code-block:: bash
  
          salt '*' trafficserver.restart_local
          salt '*' trafficserver.restart_local drain=True
      '''
      if _TRAFFICCTL:
          cmd = _traffic_ctl('server', 'restart', '--manager')
      else:
          cmd = _traffic_line('-L')
  
      if drain:
          cmd = cmd + ['--drain']
  
      return _subprocess(cmdf restart_local(drain=False):
      '''
      Restart the traffic_manager and traffic_server processes on the local node.
  
      drain
          This option modifies the restart behavior such that
          ``traffic_server`` is not shut down until the number of
          active client connections drops to the number given by the
          ``proxy.config.restart.active_client_threshold`` configuration
          variable.
  
      .. code-block:: bash
  
          salt '*' trafficserver.restart_local
          salt '*' trafficserver.restart_local drain=True
      '''
      if _TRAFFICCTL:
          cmd = _traffic_ctl('server', 'restart', '--manager')
      else:
          cmd = _traffic_line('-L')
  
      if drain:
          cmd = cmd + ['--drain']
  
      return _subprocess(cmd)
docs: Restart the traffic_manager and traffic_server processes on the local node.
  
      drain
          This option modifies the restart behavior such that
          ``traffic_server`` is not shut down until the number of
          active client connections drops to the number given by the
          ``proxy.config.restart.active_client_threshold`` configuration
          variable.
  
      .. code-block:: bash
  
          salt '*' trafficserver.restart_local
          salt '*' trafficserver.restart_local drain=True