This file is indexed.

/usr/lib/python2.7/dist-packages/neutron_vpnaas/db/migration/alembic_migrations/versions/mitaka/expand/28ee739a7e4b_multiple_local_subnets.py is in python-neutron-vpnaas 2:9.0.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#    (c) Copyright 2015 Cisco Systems Inc.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
#

"""Multiple local subnets

Revision ID: 28ee739a7e4b
Revises: 41b509d10b5e
Create Date: 2015-09-09 20:32:54.231765

"""

from alembic import op
import sqlalchemy as sa

from neutron.db import migration


# revision identifiers, used by Alembic.
revision = '28ee739a7e4b'
down_revision = '41b509d10b5e'

# milestone identifier, used by neutron-db-manage
neutron_milestone = [migration.MITAKA]


def upgrade():
    op.add_column('ipsec_site_connections',
                  sa.Column('local_ep_group_id',
                            sa.String(length=36),
                            nullable=True))
    op.add_column('ipsec_site_connections',
                  sa.Column('peer_ep_group_id',
                            sa.String(length=36),
                            nullable=True))
    op.create_foreign_key(constraint_name=None,
                          source_table='ipsec_site_connections',
                          referent_table='vpn_endpoint_groups',
                          local_cols=['local_ep_group_id'],
                          remote_cols=['id'])
    op.create_foreign_key(constraint_name=None,
                          source_table='ipsec_site_connections',
                          referent_table='vpn_endpoint_groups',
                          local_cols=['peer_ep_group_id'],
                          remote_cols=['id'])
    op.alter_column('vpnservices', 'subnet_id',
                    existing_type=sa.String(length=36), nullable=True)