]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move _set_subnet_arp_info to dvr_router
authorCarl Baldwin <carl.baldwin@hp.com>
Mon, 23 Feb 2015 20:57:02 +0000 (20:57 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Wed, 4 Mar 2015 23:21:30 +0000 (23:21 +0000)
commit500007411a6009e94b56cfa1d719bf279cc0f813
treeec4af472516dc7bcd57d8f1b9e8d62909631d3a6
parent6c5e044ab7ee944cfacf4491b3bc5278d9c04b8f
Move _set_subnet_arp_info to dvr_router

Further teasing DVR apart from the agent and other router types.  This
change illustrates the need to use plugin_rpc and context from the
agent.  It leaves this as a dependence of dvr_router on the instance
of the agent.  So, when the agent creates a dvr_router, it passes
itself in as an argument.  It doesn't do this with other router types.

I would like to eliminate the dependence of RPC while processing a
router.  However, this is just a refactor and at least decouples it as
much as possible and isolates the dependence to DVR only.

Change-Id: Icb2154648b7aee6ddf781c48f1801ff97d35c6e6
Partially-Implements: bp/restructure-l3-agent
neutron/agent/l3/agent.py
neutron/agent/l3/dvr.py
neutron/agent/l3/dvr_router.py
neutron/tests/unit/agent/l3/test_dvr_router.py
neutron/tests/unit/test_l3_agent.py