def create_vs(lb, name, ip, port, protocol, profile, 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)
 F5.create_vs(name, ip, port, protocol, profile, pool_name)
 return True

def create_vs ( lb , name , ip , port , protocol , profile , 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 ) F5 . create_vs ( name , ip , port , protocol , profile , pool_name ) return True
create a virtual server cli examples: .