Commit 79121405 authored by Andreas Schmidt's avatar Andreas Schmidt

Add minimal output and redirect PRRT output to file with entrypoint.sh.

parent 47ac73df
Pipeline #1221 passed with stages
in 50 seconds
......@@ -10,5 +10,5 @@ sudo docker run --rm --name=prrt_send --net=host prrt sender 127.0.0.1 5000 127
bridge=docker network create --subnet="10.5.1.0/24" prrt | cut -c1-12
ovs-vsctl add-port of-switch br-$bridge
docker run --rm --name=prrt_recv --network="prrt" --ip=10.5.1.52 --cap-add NET_ADMIN prrt receiver 5000 127
docker run --rm --name=prrt_send --network="prrt" --ip=10.5.1.51 --cap-add NET_ADMIN prrt sender 10.50.1.52 5000 127 rate 1mbit
docker run --rm --name=prrt_recv --network="prrt" -v=/opt/prrt:/output --ip=10.5.1.52 --cap-add NET_ADMIN git.nt.uni-saarland.de:4567/larn/prrt:develop receiver 5000 127
docker run --rm --name=prrt_send --network="prrt" -v=/opt/prrt:/output --ip=10.5.1.51 --cap-add NET_ADMIN git.nt.uni-saarland.de:4567/larn/prrt:develop sender 10.50.1.52 5000 127 rate 1mbit
......@@ -16,6 +16,10 @@ fi
params=$(echo $params $1); shift # Add Port
params=$(echo $params $1); shift # Add Rounds
tc qdisc add dev $dev root netem "$@"
/prrt/bin/$command $params
netem_params="$@"
echo "Running PRRT with command" $command $params "with link params:" $netem_params
tc qdisc add dev $dev root netem $netem_params
/prrt/bin/$command $params /output/log.csv
tc qdisc del dev $dev root
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment