mpExperience: with router view
This commit is contained in:
parent
7f2ad0710e
commit
f462a1bd54
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user