(cli, module, cmd, arg_type, args)
| 974 | @cmd('command module MODULE MODULE_CMD ARG_TYPE [CMD_ARGS...]', |
| 975 | 'Send a command to a module') |
| 976 | def 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') |
nothing calls this directly
no test coverage detected