code: def create_vs(lb, name, ip, port, protocol, profile, pool_name):
      '''
      Create a virtual server
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-run f5.create_vs lbalancer vs_name 10.0.0.1 80 tcp http poolname
      '''
      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)
      F5.create_vs(name, ip, port, protocol, profile, pool_name)
      return Truf create_vs(lb, name, ip, port, protocol, profile, pool_name):
      '''
      Create a virtual server
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-run f5.create_vs lbalancer vs_name 10.0.0.1 80 tcp http poolname
      '''
      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)
      F5.create_vs(name, ip, port, protocol, profile, pool_name)
      return True
docs: Create a virtual server
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-run f5.create_vs lbalancer vs_name 10.0.0.1 80 tcp http poolname