def start_bf_client_module(self): config = self.netman.config["BoundedFlood"] cmd = [ BoundedFloodProxy.RyuManager, "--user-flags", "modules/BFFlags.py", "--nouse-stderr", "--bf-config-string", json.dumps(config), "modules/BoundedFlood.py" ] self._bf_proc = Modlib.create_process(cmd)
def __init__(self, host_port_tuple, streamhandler, netman): super().__init__(host_port_tuple, streamhandler) self.netman = netman config = self.netman.config["BoundedFlood"] # start the BF RYU module cmd = [ BoundedFloodProxy.RyuManager, "--user-flags", "modules/BFFlags.py", "--nouse-stderr", "--bf-config-string", json.dumps(config), "modules/BoundedFlood.py" ] self._bf_proc = Modlib.create_process(cmd)