From ac4fa56ca75b2824f0dfeb2a77a2448a0ada4ae5 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Fri, 6 Aug 2010 11:36:34 +0300 Subject: [PATCH] ControlScripts: add pre-run and post-run scripts --- ControlScripts/post-run_bw_limit.sh | 10 ++++++++++ ControlScripts/post-run_bw_limit_ct.sh | 10 ++++++++++ ControlScripts/post-run_nop.sh | 8 ++++++++ ControlScripts/pre-run_bw_limit.sh | 8 ++++++++ ControlScripts/pre-run_bw_limit_ct.sh | 10 ++++++++++ ControlScripts/pre-run_nop.sh | 10 ++++++++++ 6 files changed, 56 insertions(+) create mode 100755 ControlScripts/post-run_bw_limit.sh create mode 100755 ControlScripts/post-run_bw_limit_ct.sh create mode 100755 ControlScripts/post-run_nop.sh create mode 100755 ControlScripts/pre-run_bw_limit.sh create mode 100755 ControlScripts/pre-run_bw_limit_ct.sh create mode 100755 ControlScripts/pre-run_nop.sh diff --git a/ControlScripts/post-run_bw_limit.sh b/ControlScripts/post-run_bw_limit.sh new file mode 100755 index 0000000..6d7d0eb --- /dev/null +++ b/ControlScripts/post-run_bw_limit.sh @@ -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 index 0000000..b48d0bd --- /dev/null +++ b/ControlScripts/post-run_bw_limit_ct.sh @@ -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 index 0000000..57207de --- /dev/null +++ b/ControlScripts/post-run_nop.sh @@ -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 index 0000000..fad41f8 --- /dev/null +++ b/ControlScripts/pre-run_bw_limit.sh @@ -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 index 0000000..aed7a9d --- /dev/null +++ b/ControlScripts/pre-run_bw_limit_ct.sh @@ -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 index 0000000..8682bbb --- /dev/null +++ b/ControlScripts/pre-run_nop.sh @@ -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} -- 2.20.1