#NEWLINE# @ classmethod #NEWLINE# def _get_objects( cls , lb , names , minimal = False ) : #NEWLINE# #INDENT# 'Returns a list of Pool objects from a list of pool names' #NEWLINE# if ( not names ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# pools = cls . factory . create ( names , lb ) #NEWLINE# if ( not minimal ) : #NEWLINE# #INDENT# active_member_count = cls . _lbcall ( lb , 'get_active_member_count' , names ) #NEWLINE# description = cls . _lbcall ( lb , 'get_description' , names ) #NEWLINE# lbmethod = cls . _lbcall ( lb , 'get_lb_method' , names ) #NEWLINE# members = cls . _lbcall ( lb , 'get_member' , names ) #NEWLINE# minimum_active_member = cls . _lbcall ( lb , 'get_minimum_active_member' , names ) #NEWLINE# minimum_up_member = cls . _lbcall ( lb , 'get_minimum_up_member' , names ) #NEWLINE# slow_ramp_time = cls . _lbcall ( lb , 'get_slow_ramp_time' , names ) #NEWLINE# statistics = cls . _lbcall ( lb , 'get_statistics' , names ) #NEWLINE# for ( idx , pool ) in enumerate ( pools ) : #NEWLINE# #INDENT# pool . _active_member_count = active_member_count [ idx ] #NEWLINE# pool . _description = description [ idx ] #NEWLINE# pool . _lbmethod = lbmethod [ idx ] #NEWLINE# pool . _minimum_active_member = minimum_active_member [ idx ] #NEWLINE# pool . _minimum_up_member = minimum_up_member [ idx ] #NEWLINE# pool . _slow_ramp_time = slow_ramp_time [ idx ] #NEWLINE# pool . _statistics = statistics [ 'statistics' ] [ idx ] #NEWLINE# pool . _members = f5 . PoolMember . _get_objects ( lb , [ pool ] , [ members [ idx ] ] , minimal = True ) #NEWLINE# #UNINDENT# #UNINDENT# return pools