]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Support Dual-Stack Gateway Ports on Neutron Routers
authorDane LeBlanc <leblancd@cisco.com>
Wed, 18 Mar 2015 20:38:57 +0000 (16:38 -0400)
committerDane LeBlanc <leblancd@cisco.com>
Sat, 28 Mar 2015 03:37:58 +0000 (23:37 -0400)
commit420c21f6c75484d047a2ed64e4c12f19c495e377
tree13f4e5efbe5869caf326a346dfd7ba30bb4de3da
parent801f78cce2a8169f1cb51bf09a039ec5d620e0d5
Support Dual-Stack Gateway Ports on Neutron Routers

(Patch set #2 for multiple-ipv6-prefixes blueprint)

This patchset adds support for dual-stack gateway ports on Neutron
routers. Some background on the changes included in this patchset:

- The L3 driver's init_l3() method has been changed to accept a list
  of gateway IPs, rather than a single gateway IP.
- The Neutron port dictionary's singular 'subnet' entry has been
  replaced with a 'subnets' list, since ports can now be associated
  with multiple subnets.
- The Neutron port dictionary no longer has a (singular) 'ip_cidr'
  entry, since a port can now be associated with multiple IP CIDRs
  (e.g. up to one IP CIDR per IP family on gateway ports).
  Instead, a 'prefixlen' entry has been added to the Neutron
  fixed_ips dictionary, so that the port's (multiple) IP CIDRs can
  be derived from the matching 'ip_address' and 'prefixlen' pairs
  in the port's fixed_ips.

Change-Id: I150da5938e79eeef0c947ddb1a4282e37d0515ee
Partially-implements: blueprint multiple-ipv6-prefixes
21 files changed:
neutron/agent/l3/dvr_fip_ns.py
neutron/agent/l3/dvr_router.py
neutron/agent/l3/ha_router.py
neutron/agent/l3/router_info.py
neutron/agent/linux/interface.py
neutron/agent/linux/ip_lib.py
neutron/agent/linux/keepalived.py
neutron/agent/linux/ra.py
neutron/common/utils.py
neutron/db/l3_db.py
neutron/db/l3_dvr_db.py
neutron/db/l3_hamode_db.py
neutron/tests/functional/agent/linux/test_ip_lib.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/agent/l3/test_dvr_router.py
neutron/tests/unit/agent/linux/test_keepalived.py
neutron/tests/unit/agent/test_dvr_fip_ns.py
neutron/tests/unit/db/test_l3_ha_db.py
neutron/tests/unit/test_l3_agent.py
neutron/tests/unit/test_l3_plugin.py
neutron/tests/unit/test_linux_interface.py