mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
VPC : clean up rt_table when stop domr
This commit is contained in:
parent
6c96e638be
commit
5756a2a73b
@ -602,10 +602,10 @@ EOF
|
||||
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 echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
|
||||
sudo ip rule add from $VPCCIDR table static_route 2>/dev/null
|
||||
sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
|
||||
|
||||
sed -i /gateway/d /etc/hosts
|
||||
|
||||
@ -777,6 +777,7 @@ setup_default() {
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
EOF
|
||||
cp -f /etc/iptables/rt_tables_init /etc/iproute2/rt_tables
|
||||
}
|
||||
|
||||
change_password() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user