

def _add_networks(self, routing_settings):
    'Add networks from given settings to BGPS runtime.\n\n        If any of the networks are miss-configured errors are logged.\n        All valid networks are loaded.\n        '
    networks = routing_settings.setdefault('networks', [])
    for prefix in networks:
        try:
            call('network.add', prefix=prefix)
            LOG.debug('Added network %s', prefix)
        except RuntimeConfigError as e:
            LOG.error(e)
            continue

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