Commit f731092a authored by Robin Obůrka's avatar Robin Obůrka Committed by Robin Obůrka

Add SNMultipleOutputPipelineBox for DynFW rules_collector

parent 462370b4
......@@ -3,4 +3,5 @@ from sn.messages import *
from sn.argparser import *
from sn.network import *
from sn.msgloop import SNPipelineBox, SNGeneratorBox, SNTerminationBox
from sn.msgloop import SNMultipleOutputPipelineBox
import sn.logging
......@@ -246,3 +246,10 @@ class SNTerminationBox(SNBox):
def process_result(self, result):
if result:
raise LoopFail("Input-only box generated output message. Possibly bug in box.")
class SNMultipleOutputPipelineBox(SNPipelineBox):
def process_result(self, result):
if result:
for single_result in result:
super().process_result(single_result)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment