]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add ext-gw-mode support to ML2
authorFrancois Eleouet <f.eleouet@gmail.com>
Fri, 16 Aug 2013 11:24:20 +0000 (13:24 +0200)
committerFrancois Eleouet <f.eleouet@gmail.com>
Mon, 19 Aug 2013 18:21:40 +0000 (20:21 +0200)
commit62040d03b3b7f02ff7f67ed08e0dc867eef183dc
treee04e16d6dc3ab6eb13411cdcf99946b545dddf7f
parent7a79ea4f2f1c3d597e9857d0c38b4da3cc303161
Add ext-gw-mode support to ML2

Closes-Bug: #1212772

ML2 doesn't support ext-gw-mode, resulting in L3 agents not
setting-up NAT rules in neutron routers (currently, l3 agents
will assume enable_snat=false if plugin doesn't provide this
parameter as described in bug 1212868)

This patchset adds the support of ext-gw-mode to ML2 plugin.

In order to support ext-gw-mode alembic migration (as well as
other potential migrations on plugin dbs), folsom_initial
migration script is fixed to include ML2 plugin. Otherwise
databases won't be set-up during migration script (but at
plugin startup by sqlalchemy), resulting in migration failures.

Change-Id: I95ec18e0a4f0e5b661f3a5d679c434f18f100fa6
neutron/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py
neutron/db/migration/alembic_migrations/versions/folsom_initial.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py