]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix metadata proxy start problem for v6-v4 network
authorXu Han Peng <xuhanp@cn.ibm.com>
Fri, 14 Nov 2014 02:53:59 +0000 (10:53 +0800)
committerXu Han Peng <xuhanp@cn.ibm.com>
Sat, 22 Nov 2014 10:01:53 +0000 (18:01 +0800)
commit4c128c351589ef9f2fc1e084c655a97bdbbda7ce
treec8016f9ae4c60212022793ada8d12f2d8c91b9d1
parentfffb74a6197ce9ee1b6097fa7413225c2fd147d2
Fix metadata proxy start problem for v6-v4 network

Commit 1b66e11b5d8c0b3de0610ca02c3e10b6f64ae375 introduces
a new problem that metadata proxy will not be started when
an isolated network contains ipv6 subnet with dhcp enabled
and a ipv4 subnet.

This fix separates the checks to enable dhcp and enable metadata
so metadata proxy can be started if there is ipv4 subnet exists
in the network with metadata enabled.

Change-Id: If26806083db225e9ab30d75fa6c728ce99a7cafe
Closes-Bug: 1392564
neutron/agent/dhcp_agent.py
neutron/tests/unit/test_dhcp_agent.py