

def create_bgpvpn_postcommit(self, context, bgpvpn):
    url = BGPVPNS
    try:
        self._scrub_rd_list(bgpvpn)
        d_bgpvpn.client.sendjson('post', url, {
            BGPVPNS[:(- 1)]: bgpvpn,
        })
    except requests.exceptions.RequestException:
        with excutils.save_and_reraise_exception():
            d_bgpvpn = self.bgpvpn_db.delete_bgpvpn(context, bgpvpn['id'])
            LOG.debug('Deleted bgpvpn %s from db', d_bgpvpn)

dataset/ETHPy150Open openstack/networking-bgpvpn/networking_bgpvpn/neutron/services/service_drivers/opendaylight/odl.py OpenDaylightBgpvpnDriver.create_bgpvpn_postcommit/VarMisuse@29/47 `self`->`d_bgpvpn`