New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rest] support erasing all persistent info #1908
Conversation
This replaces #1893 and implements what has been discussed in that PR. |
9ae6226
to
6d547cb
Compare
I think the test failure "Border Router / Border Router MATN (mDNSResponder)" is not caused by this PR, could someone trigger another test run of that test? |
There are conflicts in third_party/openthread/repo |
6d547cb
to
2c4b3bc
Compare
Add REST API to support erasing all persistent information, effectively factory resetting the OTBR. The implementation follows the semantic of the D-Bus API and automatically disables the Thread network. After erasing all persistent information the dataset is cleared too. So this allows to build a new Thread network with subsequent use of the PUT method to the /node/dataset/active endpoint.
2c4b3bc
to
ee59050
Compare
Thanks for the hint, the issue is resolved now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍🏼
The patch is not needed since it is implemented in openthread/ot-br-posix#1908 and included into the current version. Signed-off-by: krant <aleksey.vasilenko@gmail.com>
The patch is not needed since it is implemented in openthread/ot-br-posix#1908 and included into the current version. Signed-off-by: krant <aleksey.vasilenko@gmail.com>
The patch is not needed since it is implemented in openthread/ot-br-posix#1908 and included into the current version. Signed-off-by: krant <aleksey.vasilenko@gmail.com>
The patch is not needed since it is implemented in openthread/ot-br-posix#1908 and included into the current version. Signed-off-by: krant <aleksey.vasilenko@gmail.com>
The patch is not needed since it is implemented in openthread/ot-br-posix#1908 and included into the current version. Signed-off-by: krant <aleksey.vasilenko@gmail.com>
Add REST API to support erasing all persistent information, effectively factory resetting the OTBR. The implementation follows the semantic of the D-Bus API and automatically disables the Thread network.
After erasing all persistent information the dataset is cleared too. So this allows to build a new Thread network with subsequent use of the PUT method to the /node/dataset/active endpoint.