summaryrefslogtreecommitdiffstats
path: root/v3po/translate-impl/src
AgeCommit message (Collapse)AuthorFilesLines
2016-07-29HONEYCOMB-130: Separate v3po plugin from HC infraMaros Marsalek6-501/+0
Creating folders: - common/ - infra/ - v3po/ - vpp-common/ Change-Id: I2c39e1b17e39e7c0f0628f44aa5fe08563fa06e4 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-07-25HONEYCOMB-122: Reader registry integration testsMaros Marsalek1-1/+4
Add IT test for read infrastructure + some additional unit tests + Make Read/Write Factory autoCloseable Change-Id: I6eab8e6df2c2132af01cea0a9c4b9bece7dc9b74 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-07-21HONEYCOMB-122 Update reader registry to share similar APIs as writerMaros Marsalek11-841/+198
+ Extract common registry builder base code (Reader registry is not flat, so there is not full control over ordering as with writers but it is sufficient) + Split CompositeReader into CompositeReader, SubtreeReader and GenericReader + No need to build composite structure in ReaderFactories (registry does that internally) + Keep only ReaderCustomizer + ListReaderCustomizer, no root reader (same for writers) Change-Id: Ic4e5bc96ad47a6cbcada4efcc2209db5c16d2a6c Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-07-13HONEYCOMB-94 Reimplement writer registry with better ordering optionsMaros Marsalek7-577/+274
Now the registry is flat and allows for full control of writer execution order Change-Id: I864e1d676588ffe59b596145e0829e81b1a1ed2f Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-06-22HONEYCOMB-99: perform write/update after delete for all list writersMarek Gradzki1-6/+10
Order of delete/write/update operations can have side-effects for devices like VPP: Adding more than one IPv4 address can in some circumstances be silently ignored by VPP, therefore in case of updating IPs list, addresses have to be deleted first. Change-Id: I8712827e3c95232dac20a9ee35be1bc5b567bd54 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-06-15HONEYCOMB-92: Process modifications recursivelyMaros Marsalek1-5/+24
+ Fix update subtree, child writer lookup + Change initializers operation to merge Change-Id: I6ece7eb3d17d5a0b4a413189ddd383567d7e2270 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-06-10Make filterSubtree recursiveMarek Gradzki1-9/+21
Change-Id: I7b2b888fd7debb0aec3292a07fc35c0e6493d117 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-06-09HONEYCOMB-62: Add Ip readersMaros Marsalek1-0/+4
+ Fix 1 interface reads. Interface reader worked only if GET interfaces-state was executed + Fix readSubtree for augmentations. Comoposite readers did not check child readers for augmentations, only direct children. Change-Id: I2bc433e3e5785453062ab262b9edabc72c333bf0 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-06-06Fix CUD support for non-mandatory child nodes of list typeMarek Gradzki1-13/+25
Change-Id: Ic75221fe61a0bb35753dd6f3b4deec1b8c020974 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-05-24HONEYCOMB-63: bump ODL dependencies to BE-SR2Marek Gradzki1-8/+5
+ Remove dedicated reads to netconf-state in operational datatree. Use regular reader from now on Change-Id: I3d7245cd6cb5d9cf057aea600fddceb49cf18039 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-05-23HONEYCOMB-61: Add BA broker for context data treeMaros Marsalek4-8/+8
With broker, context data can be accessed in a transactional manner, same as config data + Renamed data-api concepts to not include DataTree + Renamed context related concepts to better distinguish between them + Now passing full ReadContext to read customizers + Naming context is backed by context data broker Change-Id: I0b2876dd74a31a9ced7d9b5145672868e12f8b82 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-05-17Check expected interface type in sub-Interface nodesMaros Marsalek3-17/+12
+ Pass full WriteContext to the write customizers, making them more flexible Change-Id: I75c55aed02f9300eee20eabb4a3e84e294ed1e0f Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-05-11Add proper break statements to abstract readerMaros Marsalek1-0/+2
Change-Id: Iebb52d59e2e342151e616548722366985d7ee9a5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-05-09Comment out equality check in AbstractCompositeWriter.updateCurrentMarek Gradzki1-6/+8
There is a bug in ODL when checking auguments for equality: https://git.opendaylight.org/gerrit/#/c/37719 Until the bug is fixed, updateCurrentAttributes will be invoked even if there was no data change. It is customizer responsibility to perform equality check if invoking update without actual data change can cause side-effects in VPP. Change-Id: Id72ec55ea7179330a4ebb1df49c29195908c5461 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-18HONEYCOMB-38: Add link for md-sal/binding equality fixMaros Marsalek1-1/+1
Change-Id: Ifc7d511b73c18e9ba0813c9321b475a825ec9af6 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-15HONEYCOMB-38: Fix vpp interface customizersMaros Marsalek3-9/+19
The order of execution was not correct + CompositeWriter ignored some changes Change-Id: I53fd9fda4b7a0379e0fa8451fa894865f67ebace Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-9: Migrate Interface listenerMaros Marsalek9-67/+264
Change-Id: Iffde1ee21b749a8c8efa96c243f7f8bb0811b4c7 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Remove references to VPP from translation layerMaros Marsalek8-0/+1190
Change-Id: I281db366a112edc08203e8cb392a212708d4552a Signed-off-by: Maros Marsalek <mmarsale@cisco.com>