Fix prefix delegation deleting addresses for ports
If a network has IPv4 and IPv6(prefix delegated) subnets,
prefix delegation is deleting port's IPv4 address and
not properly updating IPv6 address.
Prefix Delegation(PD) is calling port_update with empty fixed_ip,
for the port with IPv4 and IPv6(PD) subnets. After fixing this,
when _update_ips_for_port is called with new_ips having IPv6 PD subnet,
it is unable to add IPv6 address with new subnet prefix,
as _test_fixed_ips_for_port not returning IPv6 PD subnet.
To fix this, we explicitly add PD subnet to "to_add" list,
so that IPv6 address with new prefix added to PD subnet's port.
Reviewed: https:/ /review. openstack. org/241227 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c2f780648d8 78477bec731d255 e71c112ca941b5
Committed: https:/
Submitter: Jenkins
Branch: master
commit c2f780648d87847 7bec731d255e71c 112ca941b5
Author: venkata anil <email address hidden>
Date: Wed Apr 6 08:39:13 2016 +0000
Fix prefix delegation deleting addresses for ports
If a network has IPv4 and IPv6(prefix delegated) subnets,
prefix delegation is deleting port's IPv4 address and
not properly updating IPv6 address.
Prefix Delegation(PD) is calling port_update with empty fixed_ip, ips_for_ port is called with new_ips having IPv6 PD subnet, ips_for_ port not returning IPv6 PD subnet.
for the port with IPv4 and IPv6(PD) subnets. After fixing this,
when _update_
it is unable to add IPv6 address with new subnet prefix,
as _test_fixed_
To fix this, we explicitly add PD subnet to "to_add" list,
so that IPv6 address with new prefix added to PD subnet's port.
Closes-bug: #1509626 c335b0f6e0a9b5d 6dff0a10429
Partial-Bug: #1505316
Change-Id: I1162ca7d004461