]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove RPC to plugin when dhcp sets default route
authorDarragh O'Reilly <dara2002-openstack@yahoo.com>
Sun, 9 Mar 2014 15:14:03 +0000 (15:14 +0000)
committerDarragh O'Reilly <dara2002-openstack@yahoo.com>
Sun, 6 Apr 2014 13:40:12 +0000 (13:40 +0000)
commit9dbd1e5e5a41eff88a044b8de992d2f1f14898b3
tree81dd821e8e36f24364e3497864af02aed7ef0514
parent0eb3a105d6a9e481961e835c57d2e711d3e4f303
Remove RPC to plugin when dhcp sets default route

_set_default_route() was using an RPC to the plugin to get the DHCP
port for the network on the current host, and then used it to form
the tap device name. This happened on every allocation reload too.
This fix removes the RPC and gets the tap device name using local
methods instead. It also removes an unnecessary call to set the
default route in the restart method.

Closes-Bug: 1290068
Related-Bug: 1294254
Change-Id: I639bcf93725c4969d1011d2d20491d461ccfdbed
neutron/agent/dhcp_agent.py
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_dhcp_agent.py
neutron/tests/unit/test_linux_dhcp.py