@RegisterWithArgChecks(name='neighbor.in_filter.set', req_args=[neighbors.IP_ADDRESS, neighbors.IN_FILTER])
def set_neighbor_in_filter(neigh_ip_address, filters):
 core = CORE_MANAGER.get_core_service()
 peer = core.peer_manager.get_by_addr(neigh_ip_address)
 peer.in_filters = filters
 return True

@ RegisterWithArgChecks ( name = 'neighbor.in_filter.set' , req_args = [ neighbors . IP_ADDRESS , neighbors . IN_FILTER ] ) def set_neighbor_in_filter ( neigh_ip_address , filters ) : core = CORE_MANAGER . get_core_service ( ) peer = core . peer_manager . get_by_addr ( neigh_ip_address ) peer . in_filters = filters return True
returns a neighbor in_filter for given ip address if exists .