]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Not assign dynamic IPv6 address on dhcp interface
authorXu Han Peng <xuhanp@cn.ibm.com>
Fri, 23 Jan 2015 05:29:47 +0000 (13:29 +0800)
committerXu Han Peng <xuhanp@cn.ibm.com>
Thu, 29 Jan 2015 17:07:35 +0000 (01:07 +0800)
commit5595956b88d9b7bb8f1f293be83c44e766be2917
treed4302aa6181aff03748cbe04fef07ae6b31e359d
parent6510c32f04abbed06188efc31c557e1e72fb689c
Not assign dynamic IPv6 address on dhcp interface

When SLAAC IPv6 subnet using external router advertisement
(ipv6_ra_mode=None, ipv6_address_mode=slaac) is added to a
dual-stack network, the device of dnsmasq or router gateway may
already be assigned with dynamic SLAAC IPv6 address. Current
code only checks for permanent address on a device when
initilizing the l3 address of that device. This results
assigning duplicated address to dhcp tap device, which leads
to dhcp agent failure.

This fix changes dhcp code to not init dynamic IPv6 address
on dhcp device so dynamic address can be auto-configured by
either internal or external RA device.

Change-Id: I72b85eb93d1849299d523eedf563ab201b4a0352
Closes-Bug:1409634
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_dhcp_agent.py