Delete restconf Change-Id: I0cc4ea8375ec22b67ee93e1a02a9131f56f044c2 Signed-off-by: Tomas Cere <tcere@cisco.com>
BUG-1382: do not instantiate prefixed QNames Prefix-aware QName constructor is going away, do not use it. Also fix all references to QName.getPrefix(). Change-Id: Ife6567a269c2db16019ae97a6eace74a19ac3b23 Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG-2304 Fix leafref/instanceIdentifier processing in restconf -> netconf pipeline Resolve the leafref type based on type being referenced by the xpath. Fix tests testing wrong instance identifier behavior Fix subtree filtering in netconf northbound when identityrefs are involved Change-Id: I561e0c92550dd6639a9f9fbd1909695041c378e4 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
BUG-1281: make methods static As it turns out ControllerContext has a few methods which do not touch instance state -- make those static and fixup callers. Change-Id: Id8d04f2426435528ee754f56b34f91d25a49d3ee Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG 1082 Migrate sal-rest-connector to Async Data Broker API Rework of sal-rest-connector project to support Async Data Broker API Change-Id: I73804418a04445b236d12693e493a11850dd94dd Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
BUG-1092: adjust to YangInstanceIdentifier This is a compation to I1e30a0df93d8bfb891d047c58abcb117d4006c76, adjusting the components to use the new name. Change-Id: I615763240581e850f7752f82e44d752c8fceb169 Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG 1387 - degrade log output from info to debug Change-Id: Ia98ab154bb53cc3c43f42270a3bd6c65bd9dee65 Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Apply style rules on whole sal-rest-connector No changes in function of code, just formatting. Change-Id: I52bf10a3b84fa61ec35c31145acbbc6b9bf349ec Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
BUG-868: do not use deprecated InstanceIdentifier methods This removes the use of the deprecated constructor and some of the getPath() call sites in favor of getPathArguments() and InstanceIdentifier.create()/.node() methods. Change-Id: I2f4ed36645408c6f780031d848af829cbe2a40d6 Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG-272: remove trailing whitespace from Java files Preparatory patch, bulk-removes all trailing whitespace from Java files. Change-Id: I1fbef5746df7277b3865429d4faa82fc8ba8cbb5 Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG 652 leafref CCE & BUG 720 colons problem BUG 652 leafref Class cast exception By default if input data were in format which was possible to parse as XPath if was done like this. It caused that for leafref which indexed to instance-identifier the value was parsed as XPath and not as string. BUG 720 colons problem in JSON If input string contained colon (:) then it was dealed as namespace:value and object of type IdentityValuesDTO was created (it is probable that data could be of type identityref). If data wasn't of type leafref then it was incorrectly processed as leafref. The RestCodec was updated to correctly translate data (cases when data contains ':' but aren't of type leafref) Change-Id: I0cba06bce1b1c69f6901cc90d2b30a3735e5f57e Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
BUG 340: Resolved instance-identifier translation in JSON Change-Id: Ia8853c00798674251b39941a675e9c359aa68a00 Signed-off-by: Martin Sunal <msunal@cisco.com>
Bulk-add copyright headers to java files Change-Id: I8c23739a21f3f6cecb138f62a54efbabf03b9c55 Signed-off-by: Robert Varga <rovarga@cisco.com>
Instance identifier support - codec for instance identifier (deserializer, serializer) was added - instance identifier from XML and JSON files to simple node - instance identifier from simple node to XML and JSON - corrected augments with the same names Change-Id: Iff49aedd209e61fb15e4a7bee61a2c9611c25355 Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Changed codec for Identityref in JSON transformation - codec for Identityref which is used in JSON transformation can use mount point Change-Id: Icdef737216f1d9a46cc7b40135b1b472d732caff Signed-off-by: Martin Sunal <msunal@cisco.com>
Changed POST operation POST operation for creating resource was changed according to RFC http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.4 - test fix - ResponseException tests Change-Id: Icca28a4a57499be5f29a1b618a432dd61dde2816 Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Jozef Gloncak <jgloncak@cisco.com> Signed-off-by: Ladislav Borak <lborak@cisco.com>
More test for improving of code coverage + test refactoring Added tests to sal-rest-connector to improve code coverage. Added test for leafref. Some methods in TestUtils were refactored. Change-Id: I245e9e7a55e02c542aab7f835f09081b040afa41 Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Switched codecs infrastructure to use yang-data-impl codecs - Codecs are used for tranlation of JSON/XML values to SimpleNode values and vice versa - Leafref is encoded as String Change-Id: Ibe5b4a23d5dad6373a2dcf7d8723a7dff135cf2a Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Jozef Gloncak <jgloncak@cisco.com> Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Fixed RESTConf support for identity-ref build-in datatype - Created implementation of codec for identityref - Identityref is supported in XML and JSON - Tests Change-Id: I813f1f52e990317b6adf30f1d0d8a164c60a4901 Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Tony Tkacik <ttkacik@cisco.com>