Merge "Derive the public interface"

Jenkins 2015-07-21 14:23:53 +00:00 committed by Gerrit Code Review
commit fe0c382bfa
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ access the internet through PUBLIC_INTERFACE::
cat > /opt/stack/devstack/ << END_LOCAL_SH
sudo iptables -t nat -A POSTROUTING -o br-ex -j MASQUERADE
ROUTE_TO_INTERNET=$(ip route get
OBOUND_DEV=$(echo ${ROUTE_TO_INTERNET#*dev} | awk '{print $1}')
sudo iptables -t nat -A POSTROUTING -o $OBOUND_DEV -j MASQUERADE
chmod 755 /opt/stack/devstack/