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

Function command_module

bessctl/commands.py:976–985  ·  view source on GitHub ↗
(cli, module, cmd, arg_type, args)

Source from the content-addressed store, hash-verified

974@cmd('command module MODULE MODULE_CMD ARG_TYPE [CMD_ARGS...]',
975 'Send a command to a module')
976def command_module(cli, module, cmd, arg_type, args):
977 if args is None:
978 args = {}
979
980 cli.bess.pause_all()
981 try:
982 ret = cli.bess.run_module_command(module, cmd, arg_type, args)
983 cli.fout.write('response: %s\n' % repr(ret))
984 finally:
985 cli.bess.resume_all()
986
987
988@cmd('delete worker WORKER_ID...', 'Delete a worker')

Callers

nothing calls this directly

Calls 3

pause_allMethod · 0.80
run_module_commandMethod · 0.80
resume_allMethod · 0.80

Tested by

no test coverage detected