From bbe6564a7b7dea16d1916f490c8c689b3e70b32d Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 1 Jun 2016 16:01:01 +0200 Subject: [PATCH] mpExperienceDITG: get log from both sides --- src/mpExperienceDITG.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mpExperienceDITG.py b/src/mpExperienceDITG.py index 4b8f3aa..665f769 100644 --- a/src/mpExperienceDITG.py +++ b/src/mpExperienceDITG.py @@ -9,7 +9,8 @@ class MpExperienceDITG(MpExperience): ITGDEC_BIN = "/home/mininet/D-ITG-2.8.1-r1023/bin/ITGDec" ITGRECV_BIN = "/home/mininet/D-ITG-2.8.1-r1023/bin/ITGRecv" ITGSEND_BIN = "/home/mininet/D-ITG-2.8.1-r1023/bin/ITGSend" - DITG_TEMP_LOG = "recv_log_file" + DITG_TEMP_LOG = "snd_log_file" + DITG_SERVER_TEMP_LOG = "recv_log_file" PING_OUTPUT = "ping.log" @@ -55,7 +56,7 @@ class MpExperienceDITG(MpExperience): return s def getServerCmd(self): - s = MpExperienceDITG.ITGRECV_BIN + " &> " + MpExperienceDITG.DITG_SERVER_LOG + " &" + s = MpExperienceDITG.ITGRECV_BIN + " -l " + MpExperienceDITG.DITG_SERVER_TEMP_LOG + " &" print(s) return s @@ -73,4 +74,5 @@ class MpExperienceDITG(MpExperience): cmd = self.getClientCmd() self.mpTopo.commandTo(self.mpConfig.client, cmd) self.mpTopo.commandTo(self.mpConfig.server, "pkill -9 -f ITGRecv") + self.mpTopo.commandTo(self.mpConfig.server, MpExperienceDITG.ITGDEC_BIN + " " + MpExperienceDITG.DITG_SERVER_TEMP_LOG + " &> " + MpExperienceDITG.DITG_SERVER_LOG) self.mpTopo.commandTo(self.mpConfig.client, "sleep 2")