Files
openthread/tests/scripts/thread-cert
Abtin Keshavarzian d2d9aff012 [mle] send MLE Avd on router promo & accept former child as router (#8307)
This commit updates `MleRouter to send an immediate MLE Advertisement
on promotion to `router` role and assignment of new Router ID. This
helps inform our former parent of our newly allocated Router ID and
cause it to reset it own advertisement trickle timer. This can help
speed up the dissemination of the new Router ID to other routers. It
can also help with quicker link establishment with our former parent
and other routers.

It also removes tx of multicast Link Request (including its delay
mechanism) upon promotion to `router` role.

It also updates `Mle` so if we receive an MLE advertisement from a
former child (which is recently get promoted to router) to accept it
immediately and copy the info from `Child` entry to `Router`.

Finally this commit updates the following test-cases which are
impacted by the changes above (e.g., skipping the checks for
multicast Link Request):

- `v1_2_router_5_1_1`
- `Cert_5_1_01_RouterAttach`
- `Cert_5_2_04_REEDUpgrade`
- `Cert_5_5_02_LeaderReboot`
- `Cert_5_5_05_SplitMergeREED`
2023-03-06 21:15:32 -08:00
..
2022-09-29 10:54:49 -07:00

OpenThread Certification Tests

Inspector

Inspect nodes status by the following modification:

  1. Insert the inspector to where you want to inspect.
import debug
debug.Inspector(self).inspect()
  1. Run the test and it will stop at the line above and prompt #.
./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
  1. Inspect
#
# 1
> state
leader
> exit
# 2
> panid
face
> exit
# exit

CLI reference

# mode

This is selection mode. You may select the node to inspect here.

  • list - list available nodes.
  • exit - end inspecting, continue running test case.
  • <number> - select the node with id <number>. This will result in entering > mode.

> mode

This is node mode. You may run OpenThread CLI here.

  • exit - go back to # mode.