]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Decompose DVR CSNAT L3 Agent from Compute Node L3 Agent
authorGal Sagie <gal.sagie@huawei.com>
Mon, 25 May 2015 12:20:05 +0000 (15:20 +0300)
committerCarl Baldwin <carl.baldwin@hp.com>
Fri, 19 Jun 2015 21:46:31 +0000 (21:46 +0000)
commit35654ec23ef9db6bda313ea300ab76c287a98ceb
tree1a19ffc3d5a203dec644e5c055afbfd536c34094
parent1ab4fc7319010ddd5584451feccf78b704bd09c6
Decompose DVR CSNAT L3 Agent from Compute Node L3 Agent

Currently the same dvr router class is used both by the L3 Agent
in the compute nodes that is responsible for the virtual routers
namespace and the fip namespace and also used by the centralized
SNAT L3 Agent in the network node.
This is the first step to decompose the two into different
classes.

The above means that we have one class of DVR router which is used
for two jobs (the virtual router namespace wiring and the fips wiring
in the compute node in one hand and the centralized snat wiring in the other)
The end goal of this patch is to separate the two into different classes
which will also help maintaining it and also help projects that want
to use one but not the other (for example only use the centralized
SNAT behaviour with there own DVR implementation)

Change-Id: I581a097b9e7c49f20d0eb0e4ca66a25e90d9511b
Partial-Bug: #1458541
Partially-Implements: blueprint dvr-router-code-decompose
neutron/agent/l3/agent.py
neutron/agent/l3/dvr_edge_router.py [new file with mode: 0644]
neutron/agent/l3/dvr_local_router.py [moved from neutron/agent/l3/dvr_router.py with 79% similarity]
neutron/tests/common/l3_test_common.py [new file with mode: 0644]
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/agent/l3/test_agent.py
neutron/tests/unit/agent/l3/test_dvr_local_router.py [new file with mode: 0644]
neutron/tests/unit/agent/l3/test_dvr_router.py [deleted file]