def check_member_pool(lb, member, 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_member_pool(member, pool_name)

def check_member_pool ( lb , member , 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_member_pool ( member , pool_name )
check a pool member exists in a specific pool cli examples: .