]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Update internal snat port prefix for multiple IPv6 subnets
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Fri, 18 Sep 2015 19:57:24 +0000 (12:57 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Mon, 9 Nov 2015 23:31:45 +0000 (15:31 -0800)
commit63978327e766ee4d62f024394e7d39e0a0351bfe
tree5a93c06bfd5fa4da057815378fb0d4592b672fa6
parentad103befd46f3572620b22a29d45609009a90382
Update internal snat port prefix for multiple IPv6 subnets

In neutron when multiple IPv6 subnets on the same
network are added to a router interface, the router
interface port is updated with multiple fixed_ips rather
than creating a new port. In the case of IPv4 subnets
a new port is created for every added interface.

For dvr routers there are internal snat ports that are
created for every router interface that is added to a
router. So when multiple IPv6 subnets on the same network
was added to a dvr router, the internal snat ports were not
appended with the IPv6 prefix properly.

An error log message was thrown for the SNAT port not
matching the given internal port for the IPv6 address.

This patch will address this issue when IPv6 subnets are
added or removed from the dvr router that are on the
same network.

Partial-Bug: #1493524

Change-Id: I777d95d9a148fc6b6bad4538f3a1156ae5052bf6
neutron/agent/l3/dvr_local_router.py
neutron/db/ipam_backend_mixin.py
neutron/db/l3_dvr_db.py
neutron/tests/functional/services/l3_router/test_l3_dvr_router_plugin.py