Small fix in post-stack.sh script
Change-Id: Ie8a751c5a5dca1c995799016f054718672b9e0cb
This commit is contained in:
parent
5c5fd0436d
commit
f7e04aca74
|
@ -42,7 +42,7 @@ function glance_image_create {
|
|||
if [[ $NETWORK_MODE == "nova" ]] ; then
|
||||
if [[ ',standalone,compute,' =~ ,$INSTALL_MODE, ]] ; then
|
||||
echo "Adding iptables rule to allow Internet access from instances..."
|
||||
__iptables_rule="POSTROUTING -t nat -s '$FIXED_RANGE' ! -d '$FIXED_RANGE' -j MASQUERADE"
|
||||
__iptables_rule="POSTROUTING -t nat -s $FIXED_RANGE ! -d $FIXED_RANGE -j MASQUERADE"
|
||||
sudo iptables -C $__iptables_rule
|
||||
if [[ $? == 0 ]] ; then
|
||||
echo "Iptables rule already exists."
|
||||
|
|
Loading…
Reference in New Issue