CLOUDSTACK-8863: VM doesn't reconnect to internet post VR RESTART/STOP-START/RECREATE

This commit is contained in:
SudharmaJain 2015-09-16 14:40:31 +05:30
parent 6e426fa46d
commit 56d4429500
1 changed files with 11 additions and 0 deletions

View File

@ -93,4 +93,15 @@ done < $cfg
#remove the configuration file, log file should have all the records as well
rm -f $cfg
# Flush kernel conntrack table
log_it "VR config: Flushing conntrack table"
conntrackd -d 2> /dev/null
if [ $? -eq 0 ]; then
conntrackd -F
conntrackd -k
else
conntrackd -F
fi
log_it "VR config: Flushing conntrack table completed"
exit 0