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")