mpExperience: with router view

This commit is contained in:
Quentin De Coninck 2016-05-04 13:41:58 +02:00
parent 7f2ad0710e
commit f462a1bd54

View File

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