group-based-policy/gbpservice/neutron/db/migration/alembic_migrations/versions/5fe2285071fd_svi.py
Kent Wu 8c0d978296 SVI network support for APIC.
1. Introduce the apic:svi network extension attribute to indicate its a SVI network.
2. For SVI network, user can do either pre-existing l3out or auto-l3out (which means we
will create the whole l3out for the user). For pre-existing l3out, user has to provide
the external network DN while creating the SVI network.
3. When auto-l3out is being used, the l3out vrf/tenant can be changed accordingly when this
SVI network is connected to a router. For this release we will prevent user from connecting
the pre-existing l3out SVI network to a router.
4. When VM is being spun on a host, the corresponding host link(s) will be used to create
the SVI interface under the l3out while for the non-SVI network, the host link(s) will be
added to the static paths of the corresponding EPG. There will be no EPG/BD being created
on the APIC side though for the SVI network as its using the l3out instead.

Change-Id: I44e2d3ef57ba562c5f157c440f7f15d671536cf4
2018-02-14 20:58:28 -08:00

45 lines
1.4 KiB
Python

# 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.
#
"""svi-apic
Revision ID: 5fe2285071fd
Revises: 886c376885a3
Create Date: 2018-01-05 00:00:00.000000
"""
# revision identifiers, used by Alembic.
revision = '5fe2285071fd'
down_revision = '886c376885a3'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('apic_aim_network_extensions',
sa.Column('svi', sa.Boolean))
op.add_column('apic_aim_network_mappings',
sa.Column('l3out_name', sa.String(64), nullable=True))
op.add_column('apic_aim_network_mappings',
sa.Column('l3out_ext_net_name', sa.String(64),
nullable=True))
op.add_column('apic_aim_network_mappings',
sa.Column('l3out_tenant_name', sa.String(64),
nullable=True))
def downgrade():
pass