def _get_neighbor_conf(neigh_ip_address):
 neigh_conf = CORE_MANAGER.neighbors_conf.get_neighbor_conf(neigh_ip_address)
 if (not neigh_conf):
  raise RuntimeConfigError(desc=('No Neighbor configuration with IP address %s' % neigh_ip_address))
 assert isinstance(neigh_conf, NeighborConf)
 return neigh_conf

def _get_neighbor_conf ( neigh_ip_address ) : neigh_conf = CORE_MANAGER . neighbors_conf . get_neighbor_conf ( neigh_ip_address ) if ( not neigh_conf ) : raise RuntimeConfigError ( desc = ( 'No Neighbor configuration with IP address %s' % neigh_ip_address ) ) assert isinstance ( neigh_conf , NeighborConf ) return neigh_conf
returns neighbor configuration for given neighbor ip address .