use local log file in /tmp dir

parent 302cd1a0
......@@ -110,7 +110,7 @@ def bandwidthTopo(bw, controllerip):
bottomSwitch.start([c0])
lvl2Switch.start([c0])
ryu_c = Popen("./ryu_init.sh %s %d 1> ryu.out 2> ryu.out" % (controllerip, 3), shell=True)
ryu_c = Popen("./ryu_init.sh %s %d 1> /tmp/ryu.out 2> /tmp/ryu.out" % (controllerip, 3), shell=True)
print "wait 5 sec for controller to connect"
sleep(5)
......
......@@ -116,7 +116,7 @@ def bandwidthTopo(bw, controllerip):
bottomSwitch.start([c0])
lvl2Switch.start([c0])
ryu_c = Popen("./ryu_init.sh %s %d 1> ryu.out 2> ryu.out" % (controllerip, 3), shell=True)
ryu_c = Popen("./ryu_init.sh %s %d 1> /tmp/ryu.out 2> /tmp/ryu.out" % (controllerip, 3), shell=True)
print "wait 5 sec for controller to connect"
sleep(5)
......@@ -188,7 +188,7 @@ def bandwidthTest(bw=5, controllerip="localhost"):
#start the traffic generation wait for 5 seconds (H1->H3)
tg_cmd = 'mz h1-eth0 -c 0 -t udp sp=49 -A 10.0.0.1 -B 10.0.0.3 -P \"Hello World\" &'
print "Traffic generation from H1 -> H3 started"
h1.cmd(tg_cmd)
#h1.cmd(tg_cmd)
CLI(net)
......
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