# Path: neutron_vpnaas/services/vpn/common/constants.py
# SUBNET_ENDPOINT = 'subnet'
# CIDR_ENDPOINT = 'cidr'
# VLAN_ENDPOINT = 'vlan'
# NETWORK_ENDPOINT = 'network'
# ROUTER_ENDPOINT = 'router'
# VPN_SUPPORTED_ENDPOINT_TYPES = [
#     SUBNET_ENDPOINT, CIDR_ENDPOINT, VLAN_ENDPOINT,
#     NETWORK_ENDPOINT, ROUTER_ENDPOINT,
# ]


import abc
from neutron.api.v2 import resource_helper
from neutron_lib.api import converters
from neutron_lib.api import extensions
from neutron_lib.db import constants as db_const
from neutron_lib.plugins import constants as nconstants
from neutron_vpnaas.services.vpn.common import constants
    @classmethod
    def get_resources(cls):
        plural_mappings = resource_helper.build_plural_mappings(
            {}, RESOURCE_ATTRIBUTE_MAP)
        return resource_helper.build_resource_info(plural_mappings,
                                                   RESOURCE_ATTRIBUTE_MAP,
                                                   nconstants.VPN,
                                                   register_quota=True,
                                                   translate_name=True)

    def get_required_extensions(self):
        return ["vpnaas"]

    def update_attributes_map(self, attributes):
        super(Vpn_endpoint_groups, self).update_attributes_map(
            attributes, extension_attrs_map=RESOURCE_ATTRIBUTE_MAP)

    def get_extended_resources(self, version):
        if version == "2.0":
            return RESOURCE_ATTRIBUTE_MAP
        return {}


class VPNEndpointGroupsPluginBase(object, metaclass=abc.ABCMeta):

    @abc.abstractmethod
    def create_endpoint_group(self, context, endpoint_group):
        pass

    @abc.abstractmethod

# Path: neutron_vpnaas/services/vpn/common/constants.py
# SUBNET_ENDPOINT = 'subnet'
# CIDR_ENDPOINT = 'cidr'
# VLAN_ENDPOINT = 'vlan'
# NETWORK_ENDPOINT = 'network'
# ROUTER_ENDPOINT = 'router'
# VPN_SUPPORTED_ENDPOINT_TYPES = [
#     SUBNET_ENDPOINT, CIDR_ENDPOINT, VLAN_ENDPOINT,
#     NETWORK_ENDPOINT, ROUTER_ENDPOINT,
# ]


# Path: neutron_vpnaas/extensions/vpn_endpoint_groups.py
import abc
from neutron.api.v2 import resource_helper
from neutron_lib.api import converters
from neutron_lib.api import extensions
from neutron_lib.db import constants as db_const
from neutron_lib.plugins import constants as nconstants
from neutron_vpnaas.services.vpn.common import constants

    @classmethod
    def get_resources(cls):
        plural_mappings = resource_helper.build_plural_mappings(
            {}, RESOURCE_ATTRIBUTE_MAP)
        return resource_helper.build_resource_info(plural_mappings,
                                                   RESOURCE_ATTRIBUTE_MAP,
                                                   nconstants.VPN,
                                                   register_quota=True,
                                                   translate_name=True)

    def get_required_extensions(self):
        return ["vpnaas"]

    def update_attributes_map(self, attributes):
        super(Vpn_endpoint_groups, self).update_attributes_map(
            attributes, extension_attrs_map=RESOURCE_ATTRIBUTE_MAP)

    def get_extended_resources(self, version):
        if version == "2.0":
            return RESOURCE_ATTRIBUTE_MAP
        return {}


class VPNEndpointGroupsPluginBase(object, metaclass=abc.ABCMeta):

    @abc.abstractmethod
    def create_endpoint_group(self, context, endpoint_group):
        pass

    @abc.abstractmethod

    def update_endpoint_group(self, context, endpoint_group_id,