neutron/neutron/tests
Dustin Lundquist 4cdc71e7d0 Ensure floating IPs only use IPv4 addresses
Description:
Presently Neutron doesn't validate the address family of floating IP
addresses or the internal addresses they are associated with. It merely
associates the first IP of the floating IP's port with the first IP of
the internal port, unless a specified fixed IP is specified. This can
lead to incorrect or poorly defined behavior when IPv6 is present.

The existing L3 agent implementation only manages IPv4 NAT rules. While
IPv6 NAT and NAT protocol translation are possible, the existing
implementation does not support these configurations.

Presently a floating IP can be created on an IPv6 only external network
or associated with an IPv6 fixed IP, but the L3 agent is unable to bind
these configurations.

Implementation:
When creating and updating a floating IP, only consider IPv4 addresses
on both the floating IPs port and the internal port he floating IP is
associated with. Additionally disallow creating floating IPs on networks
without any IPv4 subnets, since these floating IPs could not be
allocated an IPv4 address.

DocImpact
APIImpact

Co-Authored-By: Bradley Jones <jones.bradley@me.com>
Change-Id: I79b28a304b38ecdafc17eddc41213df1c24ec202
Related-Bug: #1437855
Closes-Bug: #1323766
Closes-Bug: #1469322
2015-07-12 20:21:03 -07:00
..
api Use REST rather than ReST 2015-06-27 13:41:54 +08:00
common Improve fixture usage. 2015-07-01 14:53:48 +12:00
contrib Prepare for full stack CI job 2015-06-22 11:47:54 -04:00
etc Support Basic Address Scope CRUD as extensions 2015-07-02 13:49:06 +05:30
fullstack Improve fixture usage. 2015-07-01 14:53:48 +12:00
functional Merge "OVS native DBListcommand if_exists support" 2015-07-03 04:24:20 +00:00
retargetable Improve fixture usage. 2015-07-01 14:53:48 +12:00
tempest Python3: do not use urllib.urlencode 2015-07-02 16:32:46 +02:00
unit Ensure floating IPs only use IPv4 addresses 2015-07-12 20:21:03 -07:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Add eventlet monkey_patch helper 2015-03-24 08:44:00 -07:00
base.py Improve fixture usage. 2015-07-01 14:53:48 +12:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
tools.py Improve fixture usage. 2015-07-01 14:53:48 +12:00