Split out sal-distributed-eos This splits out entity ownership implementation from sal-distributed-datastore. Key point here is that the tie with CDS is an implementation detail, which is subject to future revision (for example by using purely raft-based-approach). JIRA: CONTROLLER-1922 Change-Id: Ia62b0a14991e64424b08e0d4274b0e8eaffdacbd Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Adjust to yangtools-2.0.0 changes Change-Id: Ib86747e5ed19c0c00bb46b8d7e4936f4d90c4364 Signed-off-by: Robert Varga <robert.varga@pantheon.tech> Signed-off-by: Stephen Kitt <skitt@redhat.com>
Convert distributed EOS impl to use new DOM EOS interfaces Change-Id: I5b2a6098a0c15f74ec2f16cb5451f3831ed913bf Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Bug 4105: Remove EntityOwnershipCandidate It was decided that we really don't need to pass an EntityOwnershipCandidate listener when registering a candidate. Since apps would most likely create a singleton EntityOwnershipCandidate for all registerCandidate calls, they might as well register the singleton listener once via registerListener. This simplifies the interface and also simplifies OF clustering b/c they need an EntityOwnershipListener anyway for device node cleanup. Change-Id: I9fb7d68c1ffbf932c9d0e18efef604c1b05fdf96 Signed-off-by: Tom Pantelis <tpanteli@brocade.com> (cherry picked from commit 6b0f9975b09044b7c3c8877ae2d2d06f0a29894a)
Bug 4105: Implement EntityOwnershipListener registration/notification Change-Id: I49ee7f4b5f48ddde4779d37ba34c88dd776dd47b Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Bug 4105: Implement UnregisterCandidateLocal in EntityOwnershipShard Also added a testOwnershipChanges case to EntityOwnershipShardTest to run thru various ownership change scenarios with local and remote candidates and local unregistration. As a result I found a couple bugs that I fixed. Change-Id: I4343754fbbc8f471975e6c723ffc0beaedee2860 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Bug 4105: Implement candidate registration close Added an UnregisterCandidateLocal message which is sent when a DistributedEntityOwnershipCandidateRegistration is closed. Change-Id: I6336e1b83a7764bfb4abc2fc37e196175c008dc3 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Bug 4105: Implement DistributedEntityOwnershipService#registerCandidate Added a RegisterCandidateLocal message and implemented registerCandidate to send the message to the local EntityOwnershipShard. Change-Id: If941401d00912ce34f74e54188af0430a5ec6fcc Signed-off-by: Tom Pantelis <tpanteli@brocade.com>