]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Should not add metadata filter rules if disable metadata proxy
authorHui HX Xiang <xianghui@cn.ibm.com>
Mon, 30 Sep 2013 02:48:51 +0000 (19:48 -0700)
committerHui HX Xiang <xianghui@cn.ibm.com>
Mon, 30 Sep 2013 02:48:56 +0000 (19:48 -0700)
commitdb4b8afd1d7b42d7c6fd4ccbe35531a7dcf4898d
treecdf1415338f7bc9af698f54518e4a3b79e55df39
parent01debad5665bcae5c0f4745759ae744f85daa723
Should not add metadata filter rules if disable metadata proxy

The metadata filter rules should not be added into iptables if Neutron
metadata proxy is disabled.
This patchset fixes this issue by adding a condition when adding metadata
filter rules to iptables.

Closes-Bug #1224290

Change-Id: I7f14d281c31c1828a90abac8821635773238b2d0
neutron/agent/l3_agent.py
neutron/tests/unit/test_l3_agent.py