]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Configurable external gateway modes
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 18 Feb 2013 09:57:39 +0000 (10:57 +0100)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 27 May 2013 18:59:09 +0000 (20:59 +0200)
commit9f1d2e0c51ba47610f30d56de356f301c22e0dcd
tree5b2fcd51d449916aae529bb1c4bb258d254c4fff
parentc65a39deaf8907d50dfae44e7fc14fae451005ab
Configurable external gateway modes

Blueprint l3-ext-gw-modes

This patch introduces an API extension for enabling or disabling
source/destination NAT on the router gateway interface, and implements
support for this extension in the l3 agent, which has also been
refactored in order to ensure SNAT rules are applied (or removed)
in a single place in the process_router routine.
The patch therefore enables the extension on all plugins which
leverage this agent.
In this patch the validate_boolean function is re-introduced, as it
used for validating a field of the external_gateway_info dict.
The resource extension process is also slightly changed so that an
API extension can specify which extension should be processed before
its attributes can be processed. This is needed to ensure the
proper validator for external_gateway_info is installed.

Change-Id: Ia80cb56135229366b1706dd3c6d366e40cde1500
18 files changed:
quantum/agent/l3_agent.py
quantum/api/v2/attributes.py
quantum/db/l3_db.py
quantum/db/l3_gwmode_db.py [new file with mode: 0644]
quantum/db/migration/alembic_migrations/versions/128e042a2b68_ext_gw_mode.py [new file with mode: 0644]
quantum/extensions/l3.py
quantum/extensions/l3_ext_gw_mode.py [new file with mode: 0644]
quantum/plugins/hyperv/hyperv_quantum_plugin.py
quantum/plugins/linuxbridge/lb_quantum_plugin.py
quantum/plugins/metaplugin/meta_quantum_plugin.py
quantum/plugins/nec/nec_plugin.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/plugins/ryu/ryu_quantum_plugin.py
quantum/tests/unit/metaplugin/fake_plugin.py
quantum/tests/unit/test_db_plugin.py
quantum/tests/unit/test_extension_ext_gw_mode.py [new file with mode: 0644]
quantum/tests/unit/test_l3_agent.py
quantum/tests/unit/test_l3_plugin.py