# 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,
# ]


from alembic import op
from neutron_vpnaas.services.vpn.common import constants
import sqlalchemy as sa
#    License for the specific language governing permissions and limitations
#    under the License.

"""VPNaaS endpoint groups

Revision ID: 41b509d10b5e
Revises: 24f28869838b
Create Date: 2015-08-06 18:21:03.241664

"""



# revision identifiers, used by Alembic.
revision = '41b509d10b5e'
down_revision = '24f28869838b'


def upgrade():
    op.create_table(
        'vpn_endpoint_groups',
        sa.Column('id', sa.String(length=36), nullable=False,
                  primary_key=True),
        sa.Column('tenant_id', sa.String(length=255),
                  index=True),
        sa.Column('name', sa.String(length=255)),
        sa.Column('description', sa.String(length=255)),
        sa.Column('endpoint_type',
                  sa.Enum(constants.SUBNET_ENDPOINT, constants.CIDR_ENDPOINT,
                          constants.VLAN_ENDPOINT, constants.NETWORK_ENDPOINT,

# 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/db/migration/alembic_migrations/versions/mitaka/expand/41b509d10b5e_vpnaas_endpoint_groups.py
from alembic import op
from neutron_vpnaas.services.vpn.common import constants
import sqlalchemy as sa

#    License for the specific language governing permissions and limitations
#    under the License.

"""VPNaaS endpoint groups

Revision ID: 41b509d10b5e
Revises: 24f28869838b
Create Date: 2015-08-06 18:21:03.241664

"""



# revision identifiers, used by Alembic.
revision = '41b509d10b5e'
down_revision = '24f28869838b'


def upgrade():
    op.create_table(
        'vpn_endpoint_groups',
        sa.Column('id', sa.String(length=36), nullable=False,
                  primary_key=True),
        sa.Column('tenant_id', sa.String(length=255),
                  index=True),
        sa.Column('name', sa.String(length=255)),
        sa.Column('description', sa.String(length=255)),
        sa.Column('endpoint_type',
                  sa.Enum(constants.SUBNET_ENDPOINT, constants.CIDR_ENDPOINT,
                          constants.VLAN_ENDPOINT, constants.NETWORK_ENDPOINT,

                          constants.ROUTER_ENDPOINT,