mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-22 04:40:59 +02:00
The GeneralDeviceProvider works with device IDs with prefix "device:", which is the same leadership topic prefix used by the Mastership service. This caused an issue when any app was creating leadership contests with topic deviceId.toString() (e.g. XConnectManager, DefaultRoutingHandler, etc), as the resulting leadership events where picked by the mastership service and propagated, because of the "device:" prefix. This patch minimizes the occurrence of such issue by choosing a more specific leadership topic prefix for the mastership service. However, the right solution would be to add isolation of leadership contests between different services/apps. Change-Id: I333fd9796a66bb4ca04cd2facd337ac57a2947b2