summaryrefslogtreecommitdiffhomepage
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/base.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lib/base.py b/test/lib/base.py
index d64afdae..d31ec14b 100644
--- a/test/lib/base.py
+++ b/test/lib/base.py
@@ -224,6 +224,12 @@ class Container(object):
return int(local(cmd, capture=True))
return -1
+ def start_tcpdump(self, interface=None, filename=None):
+ if not interface:
+ interface = "eth0"
+ if not filename:
+ filename = "{0}/{1}.dump".format(self.shared_volumes[0][1], interface)
+ self.local("tcpdump -i {0} -w {1}".format(interface, filename), detach=True)
class BGPContainer(Container):