path: root/infra/translate-impl
AgeCommit message (Collapse)AuthorFilesLines
2019-04-18Bump honeycomb version to 1.19.08-SNAPSHOTMichal Cmarada1-2/+2
Change-Id: I25443928980cbce5b2cdc98f2c6bce7d825bd313 Signed-off-by: Michal Cmarada <>
2019-04-10HONEYCOMB-448: JAVA 11 supportMichal Cmarada5-6/+6
- updated dependencies - compilation error fixes Change-Id: Iad9d353d06c113a0da892ff11a442e4b41edae0d Signed-off-by: Michal Cmarada <>
2019-04-08HONEYCOMB-443: ODL bump to NeonMichal Cmarada17-48/+56
- bumps ODL dependencies to neon - migrates guava optional to java.utils.optional Change-Id: Ibdaa365c7e21a341103aba88dfd67277e40d2969 Signed-off-by: Michal Cmarada <>
2019-01-24Bump honeycomb version to 1.19.04-SNAPSHOTMichal Cmarada1-2/+2
Change-Id: Iaab95d1a821673f9138ba8a118c2e265826a6288 Signed-off-by: Michal Cmarada <>
2018-10-19Bump honeycomb version to 1.19.01-SNAPSHOTMichal Cmarada1-2/+2
Change-Id: Ic3e48d39d570632743c66b9317cd638fba84a34f Signed-off-by: Michal Cmarada <>
2018-09-25Bump ODL dependencies to Fluorine (HONEYCOMB-433)Michal Cmarada8-12/+65
Change-Id: I142ebd2899272feff00abe7d4bae708f093ee3ec Signed-off-by: Michal Cmarada <>
2018-08-24Remove redundant ReadFailedException from Reader.isPresentMarek Gradzki1-2/+1
Change-Id: Ia64b0869d1f2d9620d233f31077e72d887ef4716 Signed-off-by: Marek Gradzki <>
2018-08-17AbstractGenericWriter: remove xxxCurrent methodsMarek Gradzki1-26/+5
Use xxxCurrentAttributes instead to simplify call graph. Change-Id: I8201b115354dddd35ca0b63b2c72dfb4eac93646 Signed-off-by: Marek Gradzki <>
2018-08-17HONEYCOMB-431: add validation support to WritersMarek Gradzki7-26/+196
This patch introduces FlatWriterRegistry.validateModifications. Implementation iterates over writersOrder following bulkUpdate logic to properly support subtree writers case. Writers are now cabable of validating modifications. Commonly used implementations (GenericWriter and GenericListWriter) delegate validation capbility to Validators. Change-Id: If7a0bb0838c0b8f2c0393c989f3b03853a2ea679 Signed-off-by: Marek Gradzki <>
2018-07-31Remove code repetitions from GenericListWriterMarek Gradzki1-14/+8
Change-Id: I4efbdcc4bc12e29bd767c7b8fa6696de62ac1d37 Signed-off-by: Marek Gradzki <>
2018-07-20Bump honeycomb version to 1.18.10-SNAPSHOTMarek Gradzki1-2/+2
Change-Id: Ibd371b845debac895fad97b4e15732d858e00a3c Signed-off-by: Marek Gradzki <>
2018-04-25Collect all the updates for subtree writersMaros Marsalek2-7/+76
So far, when a subtree writer was registered on a list node and ModificationDiff detected 2 or more updated list items for that writer, FlatWriterRegistry just picked the first item in list, processed that one and ignored the rest. Change-Id: If66db1eaad5a3b5c35e5586f46fd83a0698e1728 Signed-off-by: Maros Marsalek <>
2018-04-10Fix various Sonar warningsMarek Gradzki1-1/+1
Change-Id: I0883042a80525b72f33e66fdb0d5b9e600dcc713 Signed-off-by: Marek Gradzki <>
2018-04-09Bump Honeycomb version to 1.18.07-SNAPSHOTMarek Gradzki1-2/+2
Change-Id: Ib0b9a2a2369730cd8a21e35e4dce0b62e45e8ad3 Signed-off-by: Marek Gradzki <>
2018-02-02Fix revision of hc-aug-test.yangMarek Gradzki1-11/+11
Change-Id: I1ca0e255c1467af31a39eb515c9cd4e7b4a4948a Signed-off-by: Marek Gradzki <>
2018-01-09Bump honeycomb version to 1.18.04-SNAPSHOTMarek Gradzki1-2/+2
Change-Id: Idb0fec8ab45ec76431ab6d05d70a61eee1929628 Signed-off-by: Marek Gradzki <>
2018-01-08Use Comparator.comparingInt instead of lambdaMarek Gradzki1-11/+11
Change-Id: I42372554876c27e4c5d4f053f537d6d52ff449f8 Signed-off-by: Marek Gradzki <>
2018-01-04Check for missing readers when building CompositeReaderRegistryJakub Morvay1-3/+9
Change-Id: Ic5e16e7a53836600236701caa51599bc0b957955 Signed-off-by: Jakub Morvay <>
2017-12-20Improve read failed error messageMarek Gradzki1-1/+1
Change-Id: I5b74855284765b8281ec79122cad69d1a8f87856 Signed-off-by: Marek Gradzki <>
2017-11-22Fix Sonar warnings in FlatWriterRegistryMarek Gradzki1-10/+3
Remove useless variables and simplify if conditions. Change-Id: I48a28334c47103057832f640c692c25625483bb6 Signed-off-by: Marek Gradzki <>
2017-11-22Cleanup various Sonar waringsMarek Gradzki3-6/+0
Unused code, imports, etc. Change-Id: Icb19d6a877d5ddbfd85caa86c4e62880e4db3c44 Signed-off-by: Marek Gradzki <>
2017-11-22Add missing @Override annotationsMarek Gradzki1-0/+1
Fix isses reported by Sonar thanks to IntelliJ's code inspection. Change-Id: Ief7b4307d4b90e107f010d7feaa307776afaf947 Signed-off-by: Marek Gradzki <>
2017-11-03HONEYCOMB-359 - Wildcarded writersJan Srnicek7-54/+279
Adds option to specify subtree writer that can handle whole subtree of nodes without having whole subtree specified. Its checking if node is children at runtime, rather than having pre-computed tree Change-Id: Ic46f2bd6de84f0dd14865825399f5a90a1f80859 Signed-off-by: Jan Srnicek <>
2017-10-23HONEYCOMB-405 - Revert fix for indirect updatesJan Srnicek2-173/+91
If indirect update(delete+create) fails in a way, that delete passed, but update part failed, delete part must be reverted Moves reverter creation to MDTG and test cases related too it to ModifiableDataTreeDelegatorRevertTest Fixes tracking of allready processed changes by tracking them from perspective of processModifications() method Introduces UpdateFailedException as replacement for BulkUpdateException(now thrown also for single updates) Separates ReverterImpl from FlatWriterRegistry and ads unit tests Change-Id: If0066d0716d9476be89b1d99985b6745becac15e Signed-off-by: Jan Srnicek <>
2017-10-03Bump honeycomb version to 1.18.01-SNAPSHOTMarek Gradzki1-2/+2
Change-Id: I64bcd7e45da5d7431ba436ff6ad1ac62cd1d1051 Signed-off-by: Marek Gradzki <>
2017-08-16HONEYCOMB-386 - Make update optionalJan Srnicek10-50/+190
If customizer does not support update directly, updates for its handled nodes are broken up to delete + create pairs. Change-Id: I2929109e8c9a1db0bef108367cf7d839135ce173 Signed-off-by: Jan Srnicek <>
2017-07-06Bump honeycomb version to 1.17.10-SNAPSHOTMarek Gradzki1-2/+2
Change-Id: I6294fc266b704568d4e093a50d615f96eac153be Signed-off-by: Marek Gradzki <>
2017-06-09Move ordering logic out of AbstractSubtreeManagerRegistryBuilderBuilderMarek Gradzki4-15/+24
Introduces YangDAG that maintains topological order for yang schema nodes and can be used by other components to read additional graph edges, e.g. from file (HONEYCOMB-365). Change-Id: Ia3046d38ffb4ca222412309f6c4391afc9315bd2 Signed-off-by: Marek Gradzki <>
2017-03-31Bump version to 1.17.07-SNAPSHOTMarek Gradzki1-2/+2
Change-Id: Ie7b486c266ea34df999e7122b5ef12d26aded863 Signed-off-by: Marek Gradzki <>
2017-02-27HONEYCOMB-344 - structural reader for listJan Srnicek2-4/+19
Change-Id: Ia02ed73daaeea547d49c9ec2d4d7d10f4db85b5e Signed-off-by: Jan Srnicek <>
2017-02-07Prevent submitting of structural reader for list nodeJan Srnicek2-1/+16
Static customizer must be provided instead till HONEYCOMB-344 is resolved Change-Id: Id71f69fe23b156e6de10eed06a3596de8e602bbe Signed-off-by: Jan Srnicek <>
2017-01-10HONEYCOMB-331: unify initialization handlingMarek Gradzki11-156/+529
Due to incorrect instance of check, InitSubtreeReader was never created in CompositeReaderRegistryBuilder.getSubtreeHandler(). As a consequence, initializers registered by subtreeAdd*, were not invoked. The patch: - fixes mentioned check, - makes readers implement InitReader instead of directly implementing Initializer - includes missing unit tests for GenericReaders. Change-Id: I93be59fafddb60dce00191958b5c8c62e7c2d289 Signed-off-by: Marek Gradzki <>
2017-01-04Bump Honeycomb version to 17.04Marek Gradzki1-2/+2
Change-Id: I99bc2593d50e59a6d4293e2d98ef3a9569a55008 Signed-off-by: Marek Gradzki <>
2016-12-07Set honeycomb version to 17.01 to allign with vpp releaseMarek Gradzki1-2/+2
Change-Id: I47f37a60f276928672fc2bd53e948641d9278014 Signed-off-by: Marek Gradzki <>
2016-11-23HONEYCOMB-170 Add more information to RevertFailedExMaros Marsalek3-60/+69
Change-Id: I6b24a1d061c94d57730b20cde4c5b3c39444b119 Signed-off-by: Maros Marsalek <>
2016-11-08HONEYCOMB-270 Add isPresent() to Readers/CustomizersMaros Marsalek21-28/+2519
So that they can influence whether empty data is to be considered as present + Move registries implementations from util to impl + Introduce DelegatingReader trait + Extend GenericReader where possible to reduce duplication Change-Id: I5a416acd0c4eab1fbc30fcbe585719991dbe9215 Signed-off-by: Maros Marsalek <>
2016-10-28HONEYCOMB-274 Fix checkstyle license checksMaros Marsalek2-14/+15
Change-Id: I9a7783bf072b2e2396f0fa1a784bcb57adb689b4 Signed-off-by: Maros Marsalek <>
2016-10-28Honeycomb-73 Extensible initializers frameworkMaros Marsalek4-8/+166
Change-Id: Ib23453d4040d59a512686315995a5cf9e532cefc Signed-off-by: Maros Marsalek <>
2016-09-26HONEYCOMB-209 Configure maven siteMaros Marsalek2-0/+1
To produce site for Honeycomb + javadoc asciidoc To build the site: mvn clean install site:attach-descriptor site mvn site:stage -DstagingDirectory=/home/mmarsale/tmp/stage Change-Id: I4246bb09ba02b74a2a9c84ee73f8dba02384fffa Signed-off-by: Maros Marsalek <>
2016-09-23HONEYCOMB-145 - Utility Class RefactoringJan Srnicek1-1/+1
problematic mockito-all changed to mockito-core( Translate Utils Splitted to multiple Trait Interfaces Ipv4Translator - Logic for translation of ipv4-based data Ipv6Translator - Logic for translation of ipv6-based data MacTranslator - Logic for translation of mac-based data AddressTranslator - Aggregation trait for Ipv4/Ipv6/Mac JvppReplyConsumer - Logic for extracting replies from jvpp calls ByteDataTranslator - any byte-based conversions Plus some existing utility classes changed to traits Change-Id: I342b625954223966802e65dca0fabf8456c89345 Signed-off-by: Jan Srnicek <>
2016-09-16HONEYCOMB-194 Raise unit test coverage of transle-impl to 80%Maros Marsalek4-30/+281
Change-Id: I8d032e1a90004ee4bd6ebbae002a8e66a7e85919 Signed-off-by: Maros Marsalek <>
2016-09-07Cleanup TODOs and FIXMEsMaros Marsalek5-11/+40
- Fix minor ones - Report bigger and include issue number in comment - Pull common dependencies into dependency management of common/parents Change-Id: I06a6ac37c52b603fd73ed42023d6b2e7fa18010f Signed-off-by: Maros Marsalek <>
2016-08-31Bump version to 1.16.12-SNAPSHOTMaros Marsalek1-2/+2
Change-Id: I27b09dc1fdf7597c8b0751d8cbf950500e03fa23 Signed-off-by: Maros Marsalek <>
2016-07-29HONEYCOMB-130: Rename infra packages(remove vpp/v3po)Maros Marsalek7-33/+33
Change-Id: Ic5b90e397e3743623d01b206bc60bc5c7df6b981 Signed-off-by: Maros Marsalek <>
2016-07-29HONEYCOMB-130: Separate v3po plugin from HC infraMaros Marsalek8-0/+592
Creating folders: - common/ - infra/ - v3po/ - vpp-common/ Change-Id: I2c39e1b17e39e7c0f0628f44aa5fe08563fa06e4 Signed-off-by: Maros Marsalek <>