From df5e69114fa2af663c50e734b4a842c727e6a7e9 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Tue, 15 Nov 2016 15:02:23 -0800 Subject: [PATCH] Stop setting route pointing back to tenant router This removes the logic to add a route pointing to the IPv4 tenant private network range since the router is performing SNAT. If reaching the IPs via the route worked at all, it was by accident since this behavior is certainly not guaranteed by Neutron. Change-Id: If45e3fc15c050cfbac11b57c1eaf137dd7ed816f --- lib/neutron_plugins/services/l3 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/neutron_plugins/services/l3 b/lib/neutron_plugins/services/l3 index aa61a109fa..e9ee03f865 100644 --- a/lib/neutron_plugins/services/l3 +++ b/lib/neutron_plugins/services/l3 @@ -373,11 +373,6 @@ function _neutron_configure_router_v4 { fi ROUTER_GW_IP=$(neutron --os-cloud devstack-admin --os-region "$REGION_NAME" port-list -c fixed_ips -c device_owner | grep router_gateway | awk -F'ip_address' '{ print $2 }' | cut -f3 -d\" | tr '\n' ' ') die_if_not_set $LINENO ROUTER_GW_IP "Failure retrieving ROUTER_GW_IP" - local replace_range=${SUBNETPOOL_PREFIX_V4} - if [[ -z "${SUBNETPOOL_V4_ID}" ]]; then - replace_range=${FIXED_RANGE} - fi - sudo ip route replace $replace_range via $ROUTER_GW_IP fi _neutron_set_router_id fi