Bump upstreams Adopt: - odlparent-13.0.1 - yangtools-11.0.0-SNAPSHOT - mdsal-12-0.0-SNAPSHOT Since the format of NormalizedNode tree is updated to not include AugmentationNode (and AugmentationIdentifier), we must force an incompatible update, as we do not have enough information to produce compatible payload. Change-Id: Ibf444540ed052b49651ba66ca7b93c806a6c8a97 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Implement scatter/gather on module shards ClientBackedDatastore does perform module shard root scatter/gather, hence reads of root end up talking to only the default shard. Refactor the scatter/gather logic from DistributedDatastore into a common component and use it for both modes of operation. JIRA: CONTROLLER-2038 Change-Id: Ib04efab46e36e512eb89606d026fd2082de1b693 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump odlparent/yangtools/mdsal Adopt latest versions, namely; - odlparent-9.0.1 - yangtools-7.0.1 - mdsal-8.0.0-SNAPSHOT There are a few adjustments needed, which mostly deal with the interface to NormalizedNode. Change-Id: I918fb885a6df62e16e17119a7e04ba1672ef7c39 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Migrate from YangInstanceIdentifier.EMPTY This migrates to the replacement empty() method. Change-Id: I32ca026a33835edb16f8e1e6142e9192c880076b Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Cleanup java.util.Optional references As a byproduct of gradual migration, we have a few places where we use FQCN to reference java.util.Optional eventhough it is among imports. Fix that. Change-Id: Ibede76ffc614c02dbc5e29e78e6c421abcd81ec9 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Align tested boolean/Boolean expectations This patch removes implicit boxing/unboxing by aligning boolean/Boolean expectations. Future<Boolean>.get() will return a Boolean, hence use assertEquals() for these (and Optional<Boolean>). Doing that instead of assertTrue()/assertFalse() eliminates a single Eclipse info-level message about Boolean being unboxes. This also has better behavior: if the tested method returns null, we'll get an assertion failure instead of a NPE. For isPersent() and other methods which return a boolean, use assertTrue() or assertFalse(). Doing that instead of assertEquals() eliminates two Eclipse info-level messages about boxing the two arguments to Boolean, for some reason there is no assertEquals(boolean, boolean). Change-Id: If86ef9fb1ecf4cdceb45bc079bba1a86cff311ac Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Adjust to mdsal DOM read/exists FluentFuture change This patch needs to be coordinated with https://git.opendaylight.org/gerrit/#/c/74127/. Change-Id: Iceeff9f9f75ca40ebc31bd839b5e6a5c8639aa4c Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
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>
Bump to odlparent 2.0.0 This takes odlparent 2.0.0, adjusts for guava update and feature movement. Since jenkins is failing on the distro run, that is disabled and a follow-up patch will re-enable it to get us going again. Change-Id: If3e1289ed7f73a79a5a47428c634bda9702e824d Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Add AbstractClientHandle derived classes tests Change-Id: I9eee30289814c92b7f3e7d5b2eebf49ee575b9b3 Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>