From f462a1bd54d0c8a8cdf5d7a5b03067832b0f486e Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 4 May 2016 13:41:58 +0200 Subject: [PATCH] mpExperience: with router view --- src/mpExperience.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mpExperience.py b/src/mpExperience.py index 425bb05..69dd2ca 100644 --- a/src/mpExperience.py +++ b/src/mpExperience.py @@ -1,4 +1,5 @@ from mpParamXp import MpParamXp +from mpTopo import MpTopo class MpExperience: PING = "ping" @@ -187,5 +188,8 @@ class MpExperience: if spcap == "yes" : self.mpTopo.commandTo(self.mpConfig.server, "tcpdump -i any -s " + snaplenpcap + " -w server.pcap &") + if spcap == "yes" and cpcap == "yes": + router = self.mpTopo.getHost(MpTopo.routerName) + self.mpTopo.commandTo(router, "tcpdump -i any -s " + snaplenpcap + " -w router.pcap &") if spcap == "yes" or cpcap == "yes": self.mpTopo.commandTo(self.mpConfig.client,"sleep 5")