Migrate users of deprecated methods Updated yangtools/mdsal are providing a few more convenient methods, use those instead of their deprecated equivalents. Change-Id: I6a971e349dc7d5aed00697c179dfa0c37afa8209 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Migrate users of deprecated methods Change-Id: I8eac554e9e74d427e4f3dc3ef9ea62b1f8b4add3 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump upstreams Adopt: - yangtools-13.0.1 - mdsal-13.0.0 Also adopts AbstractDOMDataBroker from mdsal-dom-spi, so that we have less code duplication and maintenance. UTs mocking NormalizedNode are updated to ContainerNode, as mocking sealed classes does not work with Mockito (out of the box). Change-Id: I6d3d3c8ced297b6850aea951040d16437df9e3f0 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump upstreams Adopt: - odlparent-13.0.10 - yangtools-11.0.5 - mdsal-12.0.4 Change-Id: Ia6f7420c5751436ec97d0a45187d79dadf9c3d94 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Do not use RpcService in dsbenchmark Migrated usage of RpcService to Rpc<?,?> for dsbenchmark. JIRA: CONTROLLER-2085 Change-Id: If0b4e4f14e94a583f518cdd5281ff779076aaabe Signed-off-by: Oleksandr Zharov <oleksandr.zharov@pantheon.tech>
Migrate users of Optional.get() We have an incoming enforcement patch, prepare to adopt it. Change-Id: If73abd4ceaea71a216a4bc3a3968b400b508ec38 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fixup Sonar issues Perform automatic conversions and also fixup Sonar issues reported, which tend to be very minor. Change-Id: Ia0d980105f4635218bacb9161a39ecb87838a9ff Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump upstream SNAPSHOTS Adopt: - odlparent-10.0.0 - yangtools-8.0.0-SNAPSHOT - mdsal-9.0.0-SNAPSHOT Change-Id: I60991718a6d1ef6f108c2b1f7b2c09b0c5f973c4 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Migrate dsbenchmark to OSGi DS Ditch blueprint and use turn DsbenchmarkProvider into a simple component. JIRA: CONTROLLER-2001 Change-Id: I5378359af1ae12d2f7cc03c281599f71ded5a06a 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>
Bump odlparent/yangtools/mdsal Update upstream references to: - odlparent-7.0.1 - yangtools-5.0.0-SNAPSHOT - mdsal-6.0.0-SNAPSHOT Also adjust the codebase to match changes in yangtools/mdsal and scala-2.13. Change-Id: Ib082e955b5106fa002522dfe3d7a21fe990006d8 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Do not use Binding DTO compat methods This removes the use of compat methods, preferring explicit instantiation of the correct type. Change-Id: Ie3b739e1e31ba2762cdda92444f4734a8ac47ae8 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fix checkstyle/spotbugs violations Enabling checkstyle/spotbugs by default finds these, fix them up. Change-Id: Ib407830f0a15cb4c04492f3c694fb463cdb30bad Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Final bits of NodeIdentifier migration This picks up the last two callers of getKeyValues() and migrates them to using asMap(). Change-Id: Ibb8ca4cd2ba0d97ff938d34b7e88afea213b0596 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Use merging transaction chains in dsbenchmark This functionality was broken, as the injection conversion done for 4.0.0 did not take into account the fact we are dropping type=pingpong. Change-Id: I41244d6732216554e197ffe9b7ef6d5be41ab520 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Do not use NodeIdentifierWithPredicates constructors This class will transition into a value-based object for memory efficiency reasons. Switch to using its static factory methods. Change-Id: I7e21a6ccf1ad999d2d0427769b26dffeac166274 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump mdsal to 4.0.0 This bumps mdsal to 4.0.0, adjusting for changes it brings, notably: - FluentFuture removed from DOM RPC invocation services - ping-pong functionality directly part of DOMDataBroker API and not via a dedicated DOMDataBroker instance - DataContainer.getImplementedInterface() renamed to implementedInterface() - DOMBrokerReadWriteTransaction.close() method being removed - BindingCodecTreeNode being refactored Change-Id: I5af13aa82036373826291a54661f7fd20ff387c3 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>
Integrate MRI projects for Neon This patch bumps: - odlparent to 4.0.2 - yangtools to 2.1.2 - mdsal to 3.0.1 It also deals with: - DOMRpcError.getErrors() changing - java.util.Optional being used in MD-SAL - xmlunit upgrade via xmlunit-legacy - any(Class) not matching nulls - lists disappearing and hence requiring at least one item - remove explicit <null/> in blueprints, as that breaks blueprint-core - adjust sal-binding-it to include byte-buddy, which is a mockito dependency - adjust dependencies to account for ietf-{inet,yang}-types movement - moving to tech.pantheon.triemap - mdsal.common.api removals JIRA: CONTROLLER-1860 Change-Id: I31b2d011015846537a99f963ded1d38e7b29d71e Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fix deprecation warnings and checkstyle in benchmarks This fixes up warnings/checkstyle and flips the enforcement switch. Change-Id: I22754c767ef643d703286a30252cf57006062ade Signed-off-by: Robert Varga <robert.varga@pantheon.tech>