]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Encapsulate DVR Fip namespace
authorCarl Baldwin <carl.baldwin@hp.com>
Wed, 7 Jan 2015 19:25:41 +0000 (19:25 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Sat, 31 Jan 2015 00:02:54 +0000 (00:02 +0000)
commit59795ab607579f2c764fecb33f538dae0124671e
treed27a6a4045b498b519b3d3e35b72088042499b21
parent9d1db4a01c4e617109d742e44e54fc9588a2b856
Encapsulate DVR Fip namespace

The floating ip namespace is an important concept that links a DVR
enabled L3 agent to DVR routers.  The namespace is shared by all of
the dvr routers on a compute host connected to the same network.  It
is managed by the dvr enabled agent.  Hence, it should be known to the
agent and made available to the DVR routers as well.  This calls for a
proper encapsulation of this functionality in a class which can be
accessed by both the agent and the routers.

In trying to tease floating ip functionality out of the L3 agent and
in to the new router classes, I found it very difficult to do because
the logic around the floating ip namespace has not yet been properly
encapsulated.

Change-Id: I0913cfae391164146bbb50ed42311506d6559e3f
Partially-Implements: bp/restructure-l3-agent
neutron/agent/l3/agent.py
neutron/agent/l3/dvr.py
neutron/agent/l3/dvr_fip_ns.py [new file with mode: 0644]
neutron/agent/l3/dvr_router.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/agent/test_dvr_fip_ns.py [new file with mode: 0644]
neutron/tests/unit/test_l3_agent.py