mirror of https://github.com/apache/cloudstack.git
VPC : static route, add route table in cloud-early-config
This commit is contained in:
parent
2af007a739
commit
810fe381bf
|
|
@ -600,7 +600,12 @@ EOF
|
|||
fi
|
||||
|
||||
ip route delete default
|
||||
# create route table for static route
|
||||
|
||||
sudo echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
|
||||
sudo echo "252 static_route" >> /etc/iproute2/rt_tables 2>/dev/null
|
||||
sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
|
||||
sudo ip rule add from $VPCCIDR table static_route 2>/dev/null
|
||||
|
||||
sed -i /gateway/d /etc/hosts
|
||||
|
||||
|
|
@ -951,6 +956,9 @@ for i in $CMDLINE
|
|||
vmpassword)
|
||||
VM_PASSWORD=$VALUE
|
||||
;;
|
||||
vpccidr)
|
||||
VPCCIDR=$VALUE
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue