

def _add_vrfs(self, routing_settings):
    'Add VRFs from given settings to BGPS runtime.\n\n        If any of the VRFs are miss-configured errors are logged.\n        All valid VRFs are loaded.\n        '
    vpns_conf = routing_settings.setdefault('vpns', {
        
    })
    for (vrfname, vrf) in vpns_conf.items():
        try:
            vrf[vrfs.VRF_NAME] = vrfname
            call('vrf.create', **vrf)
            LOG.debug('Added vrf  %s', vrf)
        except RuntimeConfigError as e:
            LOG.error(e)
            continue

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