[mle] re-attach on FTD/MTD mode changes or from rx-on to sleepy (#8484)

This commit updates behavior when device mode gets changed
so to re-attach on switching between MTD/FTD modes and also on
switching from rx-on to sleepy (rx-off) mode (when attached as a
child).

This commit also updates `test-027-child-mode-change.py` to match
the new behavior.
This commit is contained in:
Abtin Keshavarzian
2022-12-07 11:11:45 -08:00
committed by GitHub
parent e609eef7cc
commit 6f1631aeba
3 changed files with 16 additions and 27 deletions
+1
View File
@@ -52,6 +52,7 @@ expect_line "Done"
switch_node 2
send "mode rdn\n"
expect_line "Done"
sleep 5
send "state router\n"
expect_line "Done"
wait_for "router list" $router_id