Restart operational advertisements when we get a new opcert. #7885
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Per the spec, the commissioning flow goes like this:
This means when the commissionnee gets a new opcert it needs to start
operational advertisement (if it's able to), because it doesn't know
whether the next step on the part of the commissioner will be network
config or operational discovery.
In particular, adding a new opcert adds a new fabric and node id, so
we need to redo our operational advertisements in the case when we are
already on the operational network to advertise the new operational
identity.
Problem
When doing onnetwork pairing, the device does not start advertising its new operational identity, so the commissioner can't discover what port it's using for the new fabric.
Change overview
Ensure that we start advertising once we get a new opcert.
Testing
Manually tested that:
There is no automated testing for this yet, but if this is not done then we can't change the "tests" CI job to do operational discovery and stand up CASE. Once that happens, this PR's change will be tested in CI. Doing that depends on #7865, which is why I'm not making that change in this PR so far.