@RegisterWithArgChecks(name='prefix.delete_local',
                       req_args=[ROUTE_DISTINGUISHER, PREFIX],
                       opt_args=[VRF_RF])
def delete_local(route_dist, prefix, route_family=VRF_RF_IPV4):
    try:
        tm = CORE_MANAGER.get_core_service().table_manager
        tm.remove_from_vrf(route_dist, prefix, route_family)
        # Send success response to ApgwAgent.
        return [{ROUTE_DISTINGUISHER: route_dist, PREFIX: prefix,
                 VRF_RF: route_family}]
    except BgpCoreError as e:
        raise PrefixError(desc=e)
Operations that involve sharing FK objects across databases raise an error
dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/api/prefix.py/delete_local--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/multiple_database/tests.py/RouterTestCase.test_o2o_cross_database_protection