#NEWLINE# def filter_hosts_with_network_access( self , context , network_id , candidate_hosts ) : #NEWLINE# #INDENT# segments = db . get_network_segments ( context . session , network_id ) #NEWLINE# return self . mechanism_manager . filter_hosts_with_segment_access ( context , segments , candidate_hosts , self . get_agents )