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
This commit is contained in:
parent
ac65a5cac0
commit
df5e69114f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user