-
Notifications
You must be signed in to change notification settings - Fork 36
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
[petition] return ID of existing active commissioner if one exists #36
Conversation
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
==========================================
- Coverage 59.92% 59.67% -0.25%
==========================================
Files 54 53 -1
Lines 5397 5379 -18
==========================================
- Hits 3234 3210 -24
- Misses 2163 2169 +6
Continue to review full report at Codecov.
|
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:+1:
@wgtdkp, thanks for the updates! Would it be possible to implement a functional test on Travis for this feature? |
I has been thinking about this but find it to be not possible for now. We currently doing functional tests with OTBR and opethread simulation. But border agent on device side has only one DTLS server and a new connection will be rejected if the DTLS session is active. In this case, the connection between a new commissioner and border agent cannot be established and we got no chance to get the existing commissioner ID. So, with current openthread border agent implementation, the user actually can never see existing commissioner ID. We can add one more DTLS session to border agent to allow a second commissioner to get connected to border agent but later rejected because of existing active commissioner. How about I create an issue for this and add the functional tests back after making the change to border agent? |
I am fine to defer this as long as we track it. I see you already submitted #41. |
This PR returns the commissioner ID when petition failed due to an already-active commissioner in the Thread Network.