def create_bgpvpn_precommit(self, context, bgpvpn):
        if bgpvpn['type'] != constants.BGPVPN_L3:
            raise bgpvpn_ext.BGPVPNTypeNotSupported(
                driver=OPENDAYLIGHT_BGPVPN_DRIVER_NAME,
                type=bgpvpn['type'])
dataset/ETHPy150Open openstack/networking-bgpvpn/networking_bgpvpn/neutron/services/service_drivers/opendaylight/odl.py/OpenDaylightBgpvpnDriver.create_bgpvpn_precommit/original