

def create_router_assoc_postcommit(self, context, router_assoc):
    bgpvpn = self.get_bgpvpn(context, router_assoc['bgpvpn_id'])
    url = ((BGPVPNS + '/') + bgpvpn['id'])
    self._scrub_rd_list(bgpvpn)
    try:
        self.client.sendjson('put', url, {
            BGPVPNS[:(- 1)]: bgpvpn,
        })
    except requests.exceptions.RequestException:
        with excutils.save_and_reraise_exception():
            d_routerassoc = self.bgpvpn_db.delete_router_assoc(context, router_assoc['id'], router_assoc['bgpvpn_id'])
            LOG.debug('Deleted router_assoc %s from db', router_assoc)

dataset/ETHPy150Open openstack/networking-bgpvpn/networking_bgpvpn/neutron/services/service_drivers/opendaylight/odl.py OpenDaylightBgpvpnDriver.create_router_assoc_postcommit/VarMisuse@127/209 `d_routerassoc`->`router_assoc`