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


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/56d44295
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/56d44295
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/56d44295

Branch: refs/heads/master
Commit: 56d4429500d0d3da7334b3f1c559d1eca8ee85a4
Parents: 6e426fa
Author: SudharmaJain <[email protected]>
Authored: Wed Sep 16 14:40:31 2015 +0530
Committer: SudharmaJain <[email protected]>
Committed: Thu Sep 17 11:50:21 2015 +0530

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/56d44295/systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh 
b/systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh
index 7ed7d6b..dcc71ed 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh
@@ -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

Reply via email to