summaryrefslogtreecommitdiffstats
path: root/v3po/impl/src
AgeCommit message (Collapse)AuthorFilesLines
2016-04-12HONEYCOMB-34: Config tree initialization using binding data brokerMarek Gradzki8-136/+148
Change-Id: I070aca2cc35dd10ea5bde19c8cbf4cad1c50f468 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-34: Config tree initialization using ModifiableDataTree dependencyMarek Gradzki6-225/+208
Change-Id: I9fa6119a92cc1979ed6f3364bb74e856a7a712c5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-34: Configurable OperationalDataTree dependencyMarek Gradzki7-24/+64
Change-Id: I675a4ae11845990dfcacbe99eb0a1b799485de35 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-34: Configurable ConfigDataTree dependencyMarek Gradzki7-45/+72
Change-Id: I17a93835541e66835398391e2a127b25767b774a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-34: Configurable serializer dependencyMarek Gradzki8-48/+242
Change-Id: I05cb7836ec4a379f7617710a6c6f64c3541ff0c9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-34: Initializers. Initial versionMarek Gradzki1-0/+19
Change-Id: Id3e815773813c924e3e53dc3a92826d803848186 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-04-12HONEYCOMB-8 Set port to 2830 for HC netconf northboundMaros Marsalek1-1/+8
Change-Id: I0838ecc300a6592b91f0537896cc8d252c1d49df Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Add configuration and wiring for readers and writersMaros Marsalek6-26/+90
Remove config module Wrap vpp-japi in a config module Change-Id: Iee1e0c653309bd3c1019323ce689dacf3ed995cd Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-8: Remove references to VPP from data layerMaros Marsalek1-13/+13
Change-Id: Ia8ceb1f6e16c5148514ee2add55ff78533d8fe1e Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-8: Move data layer from impl module into submodulesMaros Marsalek22-2168/+11
Change-Id: Ic75793f65cfcad7cc2c96e7a09093e0e1802e4e5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Remove references to VPP from translation layerMaros Marsalek11-105/+103
Change-Id: I281db366a112edc08203e8cb392a212708d4552a Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Split impl module into smaller partsMaros Marsalek62-4919/+49
Change-Id: I9232e0adfe611cb97951080839b28a7b62ba5484 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Add Read contextMaros Marsalek23-87/+189
Change-Id: I42179d5c7244bfe4c62ee1efffad414a1cfe4b0b Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Exception handling for VPP APIsMaros Marsalek24-181/+663
Change-Id: Ic71a2ac3d01e88cb38596a24a12a7bf8ebf54da5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Simplify reader APIs, remove list of DataObjectsMaros Marsalek11-143/+174
Change-Id: I0cb3f20ef4595b0143dcc7e0ad5475f121a9cc86 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-12HONEYCOMB-9: Simplify writer APIs, remove list of DataObjectsMaros Marsalek27-401/+606
Change-Id: I139a883da167f9ab388b41b3ede50e48adc22d0b Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-04-01VPP API <-> YANG translation layer integration #2(Writers)Marek Gradzki20-276/+750
Change-Id: If91364f1900693b040aee163f1c6e092381b0efd Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-31Dedicated NETCONF north interface for v3poMaros Marsalek7-2/+724
Change-Id: I3a001ef68f7ff43ec1b2a935dd474ec966cea878 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-31Migrate Vpp/BridgeDomains config management under new writersMaros Marsalek3-0/+348
Change-Id: I0e5734bd54548ff78a2ec4420e4a8294401f4d46 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-31Initial implementation of VPP writersMaros Marsalek12-0/+1021
Composite, recursive and extensible writers Change-Id: I1fbd1d49af44343ab655e31d17ba51dd0f8ca268 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-31VPP composite writer APIsMaros Marsalek4-0/+151
Base APIs for composite and extensible VPP writers Change-Id: I160374ba4897977e1d079633f0eb845478441d75 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-31VPP API <-> YANG translation layer integrationMarek Gradzki12-57/+338
Prototype that uses Readers API for non-list nodes. Change-Id: I482dcfe09d094456b014e55edbc38ce6e98afcc3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-31Move generic APIs and Utils out of reader packageMaros Marsalek15-19/+22
Change-Id: I3657da8005a5af1c003107528e16dc1d81efa85a Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-31Add base logging to composite readersMaros Marsalek3-23/+58
Change-Id: I6340787f39b9f88fff99190271f74e991b5a7888 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-22Add dedicated package for readersMaros Marsalek22-55/+56
Change-Id: Ic85bba0086a58ef53697a1ebf5542b3a7c28be53 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-22Address TODOs for VPP readersMaros Marsalek22-259/+477
Cleanup the mapping methods Clenup and document SPIs Exctract SubtreeManager interface Change-Id: Idaacebf949926107b0e4f2f467e5a4470126fa96 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-22Migrate VppState operational data reads under new readersMaros Marsalek4-0/+507
Change-Id: Id30f4ad22a1ea5b7cb982005e675d3f337dc78d1 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-22Initial implementation of VPP readersMaros Marsalek14-0/+997
Composite, recursive and extensible readers Change-Id: I86084fa0c4127bddd87f68ff6a48b79c27a9589c Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-22VPP composite reader APIsMaros Marsalek3-0/+125
Base APIs for composite and extensible VPP readers Change-Id: Ic3d7c697fbffe40ab0d0ce3fea0a21cf89c652d0 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-21Prepare for integration with VPP API <-> YANG translation layer.Marek Gradzki13-16/+16
Package trans was renamed to trans0. Change-Id: I849cbe528362a63cfce653b04c48db8819d255bd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-21MountPoint for data-tree based DataBroker.Marek Gradzki5-9/+346
Change-Id: I6a15e79747484790607d82d4024971763b4bae54 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-21Data-tree based DataBroker for Honeycomb agent.Marek Gradzki8-0/+863
Change-Id: I2cda490bfc47d748052587066b3f63d5c27d518c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-21Dedicated data-tree for Honeycomb agent.Marek Gradzki7-1/+830
Initial API Implementation. Change-Id: I96c682e2d0d544a4f937bc992a7d0919cb358fac Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-21API for dedicated data-tree for Honeycomb agent.Marek Gradzki11-16/+421
Data-tree allows for better control over data processing (commit refusal, change processing ordering, additional validation etc.) than data-store (previous design). Change-Id: Id165df33da179ed925b2187fe247b2d6f672af43 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-18Removed usused VppPollOperDataImpl.updateOperational() return valueMarek Gradzki2-11/+4
Change-Id: I6eaefd0448367abdc5774d931cb22caf73166662 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-18Use equals instead of == for String comparisonMarek Gradzki2-6/+11
The same string value may be represented by two different String objects, so comparison using == may fail. Change-Id: I6f2f78d082b096baa255ff7836be338f5dd41473 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-04Fix NPE in VppIetfInterfaceListener if Ietf interface is not augumentedMarek Gradzki1-24/+29
Change-Id: I9cdfbe67f089c74bf9205e447553b4ae07c2f2c6 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-03-03Pre provision interface configurationMaros Marsalek1-4/+50
In v3po, after connecting to vpp, read initial vpp existing (initial)configuration and put it into v3po's datastore. This is very minimalistic(only mandatory nodes are stored), only to allow configuration of bridge domains right off the bat. Change-Id: Ia29d537600660a8e50f648477a5a40d06f0eed6d Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-03-02Use Guava Splitter to split IP addressRobert Varga1-1/+3
Using String.split() forces compilation of the regex, which is slow. Use a thread-safe Splitter to perform the same job. Change-Id: Icbc326a376bc9aaea692f80d01439e81a302bc5f Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-19Remove V3poRequestRobert Varga2-32/+1
The callback interface from vpp-japi needs to be remodeled to reflect the fact there is only a single connection. Remove the unneeded abstraction before we move on to proper callbacks. Change-Id: Ic96d6f17110ab31988e1621ac42d76d0c5d4069f Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-19Use Guava's int-toipv4 primitiveRobert Varga1-10/+3
Guava has a neat utility to perform the conversion, use that instead of open-coding it. Change-Id: Ifa8d79845950faccc3433b84e42dc2ba08828248 Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-19Fixup logging and static methodsRobert Varga4-138/+115
Methods which can be static are made static. Also fixes string concat in logging. Next we share a single instance of the VppState identifier. Finally fixup the LoggingFuturesCallback. Change-Id: I4f5076bfcbf782ecf4452e00726d49b46e15628c Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-19Don't initialize data structures in V3po providerMaros Marsalek1-28/+4
Change-Id: Ie4e6c8846ac9e019ab954aa237406f142dcbebbe Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-02-18Initialize v3po data structuresMaros Marsalek4-10/+86
This is a workaround to avoid posible DataTree exception when submitting new interface configuration without pre-existing day0 configuration. Applies for all list nodes and a proper fix will follow in ODL. Change-Id: I6ee6e7ae189542d5ae2ad742f431b88745c42c4d Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-02-10Remove test code from V3poProvider initialization.Dave Wallace1-163/+0
Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Id0f5b13093fc3ea0aa2a67cc18f3af341b2448e2 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2016-02-01Fixup after vpp-japi changeRobert Varga4-180/+190
vppApi has now proper lifecycle, we must adhere to it. Change-Id: Ibf7eb5726f2751d017a3c28f823329ce4150cb01 Signed-off-by: Robert Varga <nite@hq.sk>
2016-01-30Split out interesting bits of v3po.yangRobert Varga1-1/+1
We need to lift some elements in the v3po bridge domain configuration configuration for reuse in the virtual bridge topology. Also drops couple of FIXMEs for future modeling work to sanitize the model further. Change-Id: Id2369ff5fa967a20c39fd6959a152221ea4924f5 Signed-off-by: Robert Varga <nite@hq.sk>
2016-01-30Initial honeycomb code commit.Ed Warnicke20-0/+2464
This commit drops the basic structure with disabled integration tests. The tests will be enabled in a follow-up patch, which sorts out the current .so loading problems. Change-Id: If70f2f13b2cf49af82996f884218ac05d335c2ed Signed-off-by: Ed Warnicke <eaw@cisco.com> Signed-off-by: Robert Varga <nite@hq.sk>