]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow update of ext gateway IP's w/out port delete
authorAndrew Boik <dboik@cisco.com>
Fri, 27 Feb 2015 23:48:29 +0000 (18:48 -0500)
committerAndrew Boik <dboik@cisco.com>
Sat, 28 Mar 2015 05:16:24 +0000 (05:16 +0000)
commite2666293c449ca98c52fc7f661be43323ee36828
tree49a4e04455cac28389efd6b105b10e20f2aaf109
parent420c21f6c75484d047a2ed64e4c12f19c495e377
Allow update of ext gateway IP's w/out port delete

(Patch set #5 for the multiple-ipv6-prefixes blueprint)

Updating an external gateway port currently triggers a port-delete
followed by a port-create. In the multi-prefix case, if a second
subnet is added to an external gateway port, the port will be
deleted, freeing the original IP allocation, and then the port will
be recreated with new IP allocations from the two subnets. This is
undesirable as the port can't keep the same IP address from the
original subnet.

This patch modifies the behavior so that a fixed-ip change on an
external gateway port will cause a port-update instead of a
delete/create. If the gateway port network id has changed, however,
the port will be deleted and recreated as before.

Change-Id: I5b19d3b167668ce5c04e7ce8adc63249a4501d0e
Partially-implements: blueprint multiple-ipv6-prefixes
neutron/db/l3_db.py
neutron/db/l3_dvr_db.py
neutron/tests/unit/db/test_l3_dvr_db.py
neutron/tests/unit/test_l3_plugin.py