ControlScripts: add pre-run and post-run scripts
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 6 Aug 2010 08:36:34 +0000 (11:36 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 6 Aug 2010 08:36:34 +0000 (11:36 +0300)
ControlScripts/post-run_bw_limit.sh [new file with mode: 0755]
ControlScripts/post-run_bw_limit_ct.sh [new file with mode: 0755]
ControlScripts/post-run_nop.sh [new file with mode: 0755]
ControlScripts/pre-run_bw_limit.sh [new file with mode: 0755]
ControlScripts/pre-run_bw_limit_ct.sh [new file with mode: 0755]
ControlScripts/pre-run_nop.sh [new file with mode: 0755]

diff --git a/ControlScripts/post-run_bw_limit.sh b/ControlScripts/post-run_bw_limit.sh
new file mode 100755 (executable)
index 0000000..6d7d0eb
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# 2010, Razvan Deaconescu
+#
+# post-run script for local bandwidth limitation scenarios
+
+# source configuration file
+source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
+
+./bw_limit.sh del ${IFACE}
diff --git a/ControlScripts/post-run_bw_limit_ct.sh b/ControlScripts/post-run_bw_limit_ct.sh
new file mode 100755 (executable)
index 0000000..b48d0bd
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# 2010, Razvan Deaconescu
+#
+# post-run script for container bandwidth limitation scenarios
+
+# source configuration file
+source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
+
+./bw_limit_ct.sh del ${IFACE}
diff --git a/ControlScripts/post-run_nop.sh b/ControlScripts/post-run_nop.sh
new file mode 100755 (executable)
index 0000000..57207de
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# 2010, Razvan Deaconescu
+#
+# pre-run script for client-based limitation scenarios
+
+# source configuration file
+source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
diff --git a/ControlScripts/pre-run_bw_limit.sh b/ControlScripts/pre-run_bw_limit.sh
new file mode 100755 (executable)
index 0000000..fad41f8
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# 2010, Razvan Deaconescu
+#
+# pre-run script for local bandwidth limitation scenarios
+
+# source configuration file
+source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
diff --git a/ControlScripts/pre-run_bw_limit_ct.sh b/ControlScripts/pre-run_bw_limit_ct.sh
new file mode 100755 (executable)
index 0000000..aed7a9d
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# 2010, Razvan Deaconescu
+#
+# pre-run script for container bandwidth limitation scenarios
+
+# source configuration file
+source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
+
+./bw_limit.sh set ${IFACE} ${DL_BW} ${DL_BURST} ${UL_BW} ${UL_BURST}
diff --git a/ControlScripts/pre-run_nop.sh b/ControlScripts/pre-run_nop.sh
new file mode 100755 (executable)
index 0000000..8682bbb
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# 2010, Razvan Deaconescu
+#
+# pre-run script for client-based limitation scenarios
+
+# source configuration file
+source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
+
+./bw_limit_ct.sh set ${IFACE} ${DL_BW} ${DL_BURST} ${UL_BW} ${UL_BURST}