Merge "Stop setting route pointing back to tenant router"

This commit is contained in:
Jenkins 2016-11-18 01:50:50 +00:00 committed by Gerrit Code Review
commit 1493bdeba2

View File

@ -371,11 +371,6 @@ function _neutron_configure_router_v4 {
fi
ROUTER_GW_IP=$(openstack --os-cloud devstack-admin --os-region "$REGION_NAME" port list -c 'Fixed IP Addresses' --device-owner network:router_gateway | awk -F'ip_address' '{ print $2 }' | cut -f2 -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