neutron/neutron/tests/unit
Hong Hui Xiao fcb12b5c27 DVR: Pings to floatingip returns with fixed-ip on same network
Pinging a floatingip of VM1 from a second VM(VM2) which has SNAT
enabled connected to a DVR router on the same network returns
with fixed-ip address rather than the floatingip address.

The NAT forwarding rules for floatingip in the router namespace
does not check for the in coming port and tries to add the rule
for all in coming ports.

This causes the packets that are originating from the router
namespace to be modified and forwarded directly to the VM2 fixed
ip instead of forwarding the traffic to the SNAT namespace.

The fix in here will make sure that for all routers, the floatingip
forwarding rules will be applied only to the 'rfp-' internal ports
and not to all ports.

Change-Id: I9453beffd94bf685afd74b0820506fb6b7c996c4
Closes-Bug: #1462154
Co-Authored-By: Hong Hui Xiao <xiaohhui@cn.ibm.com>
(cherry picked from commit a388f78c8c)
2016-09-28 11:30:44 +03:00
..
agent DVR: Pings to floatingip returns with fixed-ip on same network 2016-09-28 11:30:44 +03:00
api Merge "Fix internal server error during updating QoS rule" into stable/mitaka 2016-08-30 13:10:56 +00:00
callbacks Provide kwargs for callback abort 2016-01-12 21:48:05 +00:00
cmd Make netns_cleanup to purge resources of selected agent only 2016-02-11 12:19:26 +03:00
common Add exponential back-off RPC client 2016-05-06 18:58:03 -07:00
core_extensions Objects DB api: added composite key to handle multiple primary key 2016-03-01 17:05:11 +00:00
db Check for StaleData errors in retry decorator 2016-09-21 09:48:15 +02:00
debug tests: stop validating neutronclient in neutron-debug tests 2016-01-14 06:46:45 +00:00
extensions Fixes port device_id/device_owner change in failed operation 2016-08-30 09:44:01 +08:00
hacking Using LOG.warning replace LOG.warn 2016-03-10 11:02:45 -08:00
ipam Always call ipam driver on subnet update 2016-05-26 14:03:03 +00:00
notifiers When deleting floating IP catch PortNotFound 2016-07-08 15:52:28 +00:00
objects Merge "tests: register all objects before validating their hash versions" 2016-03-16 14:13:09 +00:00
plugins ml2: allow retry on retriabable db error by precommit 2016-09-21 09:48:15 +02:00
quota Fix module's import order 2016-01-22 06:38:42 -08:00
scheduler Check compatibility when auto schedule ha routers 2016-07-21 16:23:13 +00:00
services Merge "Fix unicode bug for password-authenticated BGP peer" into stable/mitaka 2016-07-09 00:54:12 +00:00
tests Fix get_free_namespace_port to actually avoid used ports 2016-06-06 09:54:42 +02:00
__init__.py
_test_extension_portbindings.py Fix module's import order 2016-01-22 06:38:42 -08:00
dummy_plugin.py Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00
extension_stubs.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_context.py Support Unicode request_id on Python 3 2015-11-27 16:21:16 +01:00
test_manager.py Add the ability to load a set of service plugins on startup 2016-02-10 10:04:15 -06:00
test_policy.py Check target_tenant when create rbac policy 2016-09-05 13:27:05 +00:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Ensure metadata agent doesn't use SSL for UNIX socket 2016-04-07 21:36:39 +00:00
testlib_api.py Improve fixture usage. 2015-07-01 14:53:48 +12:00