| 1 |
# Filter that does noting, just passes any data through. |
| 2 |
# |
| 3 |
# Author:Just van den Broecke |
| 4 |
|
| 5 |
from stetl.util import Util |
| 6 |
from stetl.filter import Filter |
| 7 |
from stetl.packet import FORMAT |
| 8 |
|
| 9 |
log = Util.get_log("nullfilter") |
| 10 |
|
| 11 |
|
| 12 |
class NullFilter(Filter): |
| 13 |
""" |
| 14 |
Pass-through Filter, does nothing. Mainly used in Test Cases. |
| 15 |
""" |
| 16 |
|
| 17 |
# Constructor |
| 18 |
def __init__(self, configdict, section, consumes=FORMAT.any, produces=FORMAT.any): |
| 19 |
Filter.__init__(self, configdict, section, consumes, produces) |
| 20 |
|
| 21 |
def invoke(self, packet): |
| 22 |
return packet |