New feature: packet capture for IOS routers.

This commit is contained in:
grossmj committed 2014-06-26 03:06:58 -06:00
1 parent 14bb12d3fb
commit 606f773f3d
5 files changed
+225 -2

No files matched your search

+3 -1
View File
@@ -57,6 +57,8 @@ class NIO(object):
Deletes this NIO.
"""
if self._input_filter or self._output_filter:
self.unbind_filter("both")
self._hypervisor.send("nio delete {}".format(self._name))
log.info("NIO {name} has been deleted".format(name=self._name))
@@ -134,7 +136,7 @@ class NIO(object):
def setup_filter(self, direction, options):
"""
Setups a packet filter binded with this NIO.
Setups a packet filter bound with this NIO.
Filter "freq_drop" has 1 argument "<frequency>". It will drop
everything with a -1 frequency, drop every Nth packet with a