neutron/neutron/agent/l3
Hong Hui Xiao 1cea77b0aa DVR: Fix issue of SNAT rule for DVR with floating ip
With current code, there are 2 issues.

1) The prevent snat rule that is added for floating ip will be
cleaned, when restarting the l3 agent. Without this rule, the fixed
ip will be SNATed to floating ip, even if the network request is to
an internal IP.

2) The prevent snat rule will not be cleaned, even if the external
device(rfp device) is deleted. So, when the floating ips are removed
from DVR router, there are still dump rules in iptables. Restarting
the l3 agent can clean these dump rules.

The fix in this patch will handle DVR floating ip nat rules at the
same step to handle nat rules for other routers(legacy router, dvr
edge router)

After the change in [1], the fip nat rules for external port have
been extracted together into a method. Add all rules in that method
in the same step can fix the issue of ping floating ip, but reply
with fixed ip.

[1] https://review.openstack.org/#/c/286392/

Change-Id: I018232c03f5df2237a11b48ac877793d1cb5c1bf
Closes-Bug: #1549311
Related-Bug: #1462154
2016-03-23 12:48:06 -04:00
..
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Using LOG.warning replace LOG.warn 2016-03-10 11:02:45 -08:00
config.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
dvr.py Merge "Fixes typos Openstack -> OpenStack" 2016-02-05 04:23:26 +00:00
dvr_edge_ha_router.py Make agent interface plugging utilize network MTU 2016-02-29 19:19:25 +00:00
dvr_edge_router.py DVR: Fix issue of SNAT rule for DVR with floating ip 2016-03-23 12:48:06 -04:00
dvr_fip_ns.py DVR: Fix issue of SNAT rule for DVR with floating ip 2016-03-23 12:48:06 -04:00
dvr_local_router.py DVR: Fix issue of SNAT rule for DVR with floating ip 2016-03-23 12:48:06 -04:00
dvr_router_base.py Refactor router delete processing 2016-01-15 09:37:37 -06:00
dvr_snat_ns.py Fix _device_to_port_id for non-tap devices 2015-04-29 14:53:43 +00:00
fip_rule_priority_allocator.py Preserve DVR FIP rule priority over Agent restarts 2015-08-12 15:52:19 -05:00
ha.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
ha_router.py Make agent interface plugging utilize network MTU 2016-02-29 19:19:25 +00:00
item_allocator.py item allocator should return same value for same key 2016-01-28 08:40:45 +00:00
keepalived_state_change.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
legacy_router.py Fixes typos Openstack -> OpenStack 2016-01-18 16:04:56 +00:00
link_local_allocator.py Fix usage of netaddr '.broadcast' 2015-08-31 12:38:39 +00:00
namespace_manager.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
namespaces.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
router_info.py Using LOG.warning replace LOG.warn 2016-03-10 11:02:45 -08:00
router_processing_queue.py Fix module's import order 2016-01-22 06:38:42 -08:00