[harness-simulation] add the usage of the CLI command nodeidfilter (#8196)

This commit is contained in:
Jiachen Dong
2022-09-24 03:20:05 +08:00
committed by GitHub
parent 5f7f48be9b
commit bcf9d8058e
+6
View File
@@ -83,6 +83,12 @@ extern otError ProcessNodeIdFilter(void *aContext, uint8_t aArgsLength, char *aA
static const otCliCommand kCommands[] = {
{"exit", ProcessExit},
#if OPENTHREAD_EXAMPLES_SIMULATION
/*
* The CLI command `nodeidfilter` only works for simulation in real time.
* The usage of the command `nodeidfilter`:
* - `nodeidfilter deny <nodeid>`: It denies the connection to a specified node.
* - `nodeidfilter clear`: It restores the filter state to default.
*/
{"nodeidfilter", ProcessNodeIdFilter},
#endif
};