]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix enable_metadata_network flag
authorAaron Rosen <aaronorosen@gmail.com>
Tue, 18 Nov 2014 23:59:40 +0000 (15:59 -0800)
committerAaron Rosen <aaronorosen@gmail.com>
Thu, 4 Dec 2014 06:08:03 +0000 (22:08 -0800)
commitc45842af38da322b93d1200451a4a254abfcaed1
treea54b424290f459c2d0541f7ac4a02696aed630b4
parent371e9ac733d4d943017890db14972f0488388ae7
Fix enable_metadata_network flag

The following patch: 9569b2fe broke the desired functionality of
the enable_metadata_network flag, by not allowing the metadata
proxy to be spawn for 'metadata networks', which are used for
accessing the metadata service when the logical router is not
implemented through the l3 agent.

This patch enables spawning of the metadata proxy for metadata
networks when the appropriate flag is set to True.

The patch also adds rather pedant unit test coverage for the
should_enable_metadata method which previously had no unit test.

Change-Id: I8dca1fce9fbc83e75ba7e4ce948531427bf7e88b
Closes-bug: 1394020
neutron/agent/dhcp_agent.py
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py