Преглед изворни кода

set networking including unset

avadapal пре 1 година
родитељ
комит
b3edb4445e
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      Docker/set-networking.sh

+ 4 - 3
Docker/set-networking.sh

@@ -9,6 +9,7 @@ fi
 if [ "$2" != "" ]; then
 if [ "$2" != "" ]; then
     bw="$2"
     bw="$2"
 fi
 fi
-docker exec --privileged  -w /root/duoram party0 tc qdisc add dev eth0 root netem delay $latency rate $bw
-docker exec --privileged  -w /root/duoram party1 tc qdisc add dev eth0 root netem delay $latency rate $bw
-docker exec --privileged  -w /root/duoram party2 tc qdisc add dev eth0 root netem delay $latency rate $bw
+sh unset-networking.sh
+docker exec --privileged  -w /root/duoram duoram_p0 tc qdisc add dev eth0 root netem delay $latency rate $bw
+docker exec --privileged  -w /root/duoram duoram_p1 tc qdisc add dev eth0 root netem delay $latency rate $bw
+docker exec --privileged  -w /root/duoram duoram_p2 tc qdisc add dev eth0 root netem delay $latency rate $bw