

def _add_neighbors(self, routing_settings):
    'Add bgp peers/neighbors from given settings to BGPS runtime.\n\n        All valid neighbors are loaded. Miss-configured neighbors are ignored\n        and error is logged.\n        '
    bgp_neighbors = routing_settings.setdefault('bgp_neighbors', {
        
    })
    for (ip, bgp_neighbor) in bgp_neighbors.items():
        try:
            bgp_neighbor[neighbors.IP_ADDRESS] = ip
            call('neighbor.create', **bgp_neighbor)
            LOG.debug('Added neighbor %s', ip)
        except RuntimeConfigError as re:
            LOG.error(re)
            LOG.error(traceback.format_exc())
            continue

dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/application.py RyuBGPSpeaker._add_neighbors/original