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>
Specialize tests to ClientBackedDataStore We have only one subclass of AbstractDataStore, use that instead of AbstractDataStore. Change-Id: Ia6552b1c050fb99e3084c2d8f5c36ea052e991be Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Do not use RpcService in sal-cluster-admin-impl Migrated usage of RpcService to Rpc<?,?> for sal-cluster-admin-impl. Also ditch dependency on mdsal-binding-dom-codec-api, as it is not used anywhere. JIRA: CONTROLLER-2085 Change-Id: I5bfcc0646b73b18a540504406b8457fc83eb598f Signed-off-by: Oleksandr Zharov <oleksandr.zharov@pantheon.tech> Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
ServerInfo should be a plain record This is a pure DTO, turn it into a record, eliminating quite a bit of verbosity. Also clean up RaftActorContextImpl.updatePeerIds() so we do not juggle two booleans and set/reset our voting status. Change-Id: Ifbb2ae0c8163472b8ef3b59210f12dccb1b8e30d Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Switch MemberNode to ClientBackedDatastore DistributedDataStore is on its way out, switch to using the sole AbstractDataStore implementation. JIRA: CONTROLLER-2054 Change-Id: I5a8ee344c56a7a768c373ffa4bc489ef249529ff Signed-off-by: Robert Varga <robert.varga@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>
Use constructor injection in OSGiClusterAdmin Remove @Beta and inject services directly into RPC service. Change-Id: I6d836c84099f17945d0e1e6af8a38e8dbd03f123 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 to Empty.value() Empty.getInstance() is deprecated for removal, use its replacement. Change-Id: I07d6796e8211fa1ef9a08bc8bc8826d66c1b7ec9 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Rename NativeEosService to DataCenterControl This is a wee bit more descriptive name. While we are here, also ditch java.lang.Void, as it promotes nulls. Use yamg.common.Empty, which has a singleton instance. Fold common implementation code into a static method, which is making things very obvious. Change-Id: I28230523034224e978244d1edce997376812bf91 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Add cluster-admin api for datacenter activation Add rpcs into cluster-admin so we can activate/deactivate datacenters for active/backup scenariop. JIRA: CONTROLLER-1982 Change-Id: Ic68652199d79251fe9b166e47ca06520121213e4 Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Remove prefix shard leftovers With the removal of everything producer related we can also remove everything related to prefix shards. JIRA: CONTROLLER-1977 Change-Id: I05bd1a286cd8fac252c122d2118d1d7dedcc8941 Signed-off-by: Tomas Cere <tomas.cere@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>
Remove DOMDataTreeProducer-related classes DOMDataTreeProducer is being removed by upstream, remove our constructs relying on it. JIRA: CONTROLLER-1977 Change-Id: Icbbcdd41ac0df3ee916538f18908edda21f23cd8 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Migrate isFoo() callers isFoo() is deprecated for removal, migrate callers to getFoo() instead. Change-Id: Ic7d70762ff55e5840654ef6fe17767909bddf91b Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Convert cluster-admin to OSGi DS This is a very simple component, convert it to declarative services. JIRA: CONTROLLER-1882 Change-Id: I664db0ef3cbf6b5cf900d969fa56bc04440c2604 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Add optional timeout parameter for backup rpc Once the snapshot size grows large the backup rpc can take more time than the default timeout value causing it to fail. Add the option to override the timeout in the backup rpc. Change-Id: I878066668f45abcfe758a7b90d34576bff1b7db0 Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech> Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Remove use of deprecated addAugmentation() The two-argument variant has been removed, do not use it. Change-Id: Iae92f7215994dd46f237284acd295eb37c5f2950 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>
Migrate Assert.assertThat() This method has been migrated, make sure we use its new place. Change-Id: Ib17471706233150f26a452b8bca36914a95fc8db Signed-off-by: Robert Varga <robert.varga@pantheon.tech>