mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-02-11 10:41:39 +01:00
The P4RuntimeClient implements a deferring mechanism to avoid becoming master when it shouldn't, i.e. when the requested election ID is bigger than the master one on the device, but it was not asked to be master. We rely on a distributed primitive to make sure all nodes are aware of the latest master election ID on the device. In case we lose primitive update events, this patch adds a maximum timeout after which the MasterArbitrationUpdate message is always sent. Change-Id: I98669dac3fc79173b9e98f41e11a4d08901c6cb1