MCPcopy Create free account
hub / github.com/NetSys/bess / create_module

Method create_module

pybess/bess.py:438–449  ·  view source on GitHub ↗
(self, mclass, name=None, arg=None)

Source from the content-addressed store, hash-verified

436 return self._request('ResetModules')
437
438 def create_module(self, mclass, name=None, arg=None):
439 arg = arg or {}
440
441 request = bess_msg.CreateModuleRequest()
442 request.name = name or ''
443 request.mclass = mclass
444
445 message_type = getattr(module_pb, mclass + 'Arg', module_msg.EmptyArg)
446 arg_msg = pb_conv.dict_to_protobuf(message_type, arg)
447 request.arg.Pack(arg_msg)
448
449 return self._request('CreateModule', request)
450
451 def destroy_module(self, name):
452 request = bess_msg.DestroyModuleRequest()

Callers 6

add_moduleFunction · 0.80
run_forMethod · 0.80
run_pipelineMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

_requestMethod · 0.95

Tested by 2

run_forMethod · 0.64
run_pipelineMethod · 0.64