code: def check_pool(lb, name):
      '''
      Check to see if a pool exists
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-run f5.check_pool load_balancer pool_name
      '''
      if __opts__['load_balancers'].get(lb, None):
          (username, password) = list(__opts__['load_balancers'][lb].values())
      else:
          raise Exception('Unable to find `{0}` load balancer'.format(lb))
      F5 = F5Mgmt(lb, username, password)
      return F5.check_pool(namef check_pool(lb, name):
      '''
      Check to see if a pool exists
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-run f5.check_pool load_balancer pool_name
      '''
      if __opts__['load_balancers'].get(lb, None):
          (username, password) = list(__opts__['load_balancers'][lb].values())
      else:
          raise Exception('Unable to find `{0}` load balancer'.format(lb))
      F5 = F5Mgmt(lb, username, password)
      return F5.check_pool(name)
docs: Check to see if a pool exists
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-run f5.check_pool load_balancer pool_name