Bug 617: Remove extend files from sal-rest-connector Converted ControllerContext and BrokerFacade xtend code to java. Addressed review comments: - Removed SupressWarnings "all" - Converted use of xext classes to guava - Removed sneakyThrow Patch set 4: mistake - no changes Patch set 5: Converted RestconfImpl Patch set 6: removed xtend plugin anf dependencies from pom file Change-Id: I45c22b22fee07a178faba9fcb9e52d3ff12a6697 Signed-off-by: tpantelis <tpanteli@brocade.com>
Added resource /streams/stream/<streamName> - added netty web socket server - port 8181 Subscriber can be registered for notifications in this flow: 1. Subscriber invokes RPC create-data-change-event-subscription with input element regarding to module sal-remote revision "2014-01-14" 2. Subscriber gets sream name as a response from server 3. Subscriber calls GET operation on /streams/stream/<streamName> 4. Subscriber gets response with status code 200 OK and header field Location contains URI of web socket server 5. Subscriber creates web socket http connection to obtained URI in step 4. 6. Subscriber can be unregistered from receiving notifications by sending CloseWebSocketFrame with reasonText containing stream name Change-Id: I92925f5a50b2ceadf2cc8f0eaee2c99dd6a63d8d Signed-off-by: Martin Sunal <msunal@cisco.com>
Bulk-add copyright headers to .xtend files Change-Id: Ia0e70828399607e3e5b4193e01200420f85c0a8a Signed-off-by: Robert Varga <rovarga@cisco.com>
Fixed inappropriate uses of log level INFO This is done per the recommendation here: https://wiki.opendaylight.org/view/Draft_Syslog_Level_Settings Change-Id: I69bbe15d81ed49511f643fd4a8c0ad60f58a0c22 Signed-off-by: Ed Warnicke <eaw@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 mount point URI decoding in restconf - string "yang-ext:mount" in URI means mount point. After this string must be string in format moduleName:dataNode example: /rectconf/config/moduleName1:cont1/cont2/yang-ext:mount/moduleName2:cont3/cont4 mount point path - moduleName1:cont1/cont2/ path behind mount point - moduleName2:cont3/cont4 - refactoring of POST, PUT, GET, DELETE tests for status codes - test for output of several modules to one xml and json file were added Change-Id: I79bfaec1fab6ffd89295fb8461c167c0c85638ae Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Added DELETE operation - fix of bug 266 - corrected @Produces and @Consumes annotations in RestconfService and RestconfServiceLegacy Change-Id: I85b49247f0ff1cfecb3ab999d6cc4f56311947e4 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>
Fix for bug 211, where direct write and read of augmentation was not processed correctly - Fixed TypeNotAvailable issue with end-to-end Openflow Signed-off-by: Tony Tkacik <ttkacik@cisco.com> Change-Id: I9797fb4a1b71d456cc9126f98e4f3043e49b5666
Resolved namespace from input data Data of POST and PUT operations can contain namespace/module name: - xml element can contain yang namespace - json element can contain yang module name Change-Id: I503c36de5cf76d6e7ca852d4b4e54e93d171920c Signed-off-by: Martin Sunal <msunal@cisco.com>
Bug 165 and changed operations Main changes according to corresponding RFC draft 01 and 02: - corrected media types (used application/yang.data and application/vnd.yang.data) - PUT operation was changed to POST - POST operation was changed to PUT There was also added media types due to Bug 165 : - application/json - application/xml - text/xml Change-Id: I6ff6c55c272cef0b63d5795d5b9842db83f1b627 Signed-off-by: Martin Sunal <msunal@cisco.com>
Bug 164 - if URI has bad format then error status 400 is returned - corrected xtend conventions: triple equals for null Change-Id: Idfa58e21942506b7483ca6ecf19aedfd1c1de827 Signed-off-by: Martin Sunal <msunal@cisco.com>
fix of Bug 145 - https://bugs.opendaylight.org/show_bug.cgi?id=145 - Broker service is tracked by ServiceTracker Change-Id: I32358e13fa5b356ed77b842c96127a51c29bc018 Signed-off-by: Martin Sunal <msunal@cisco.com>
Added paths and mediatypes from Restconf draft 02 Change-Id: Ifc13df7c2fd9881668dd8c7cc47a4783fac440f0 Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Added serializer/deserializer for JSON/XML - exceptions are translated to rest call response with state code 400 or 500 - imporoved singleton pattern - tests - added providers for serialization/deserialization of JSON/XML - supported rest methods: readData, invokeRpc Change-Id: I3a888fc1ad9c0ae2364d050e5c67875f9e075337 Signed-off-by: Tony Tkacik <ttkacik@cisco.com> Signed-off-by: Martin Sunal <msunal@cisco.com>
Solved bugs and added tests in sal-rest-connector - solved bugs in ControllerContext - added tests - formatting Change-Id: Ia552ec3aa6a8e4949aedfc01f8386dbc6875a73f Signed-off-by: Martin Sunal <msunal@cisco.com>
Adding resources for a testing - added xml, yang, json resources for a testing - created JsonMapper class - there will be conversion to json based on yang schema Change-Id: I71b13018f9e9e1ed20279f79a0a6e07a0ecef89a Signed-off-by: Martin Sunal <msunal@cisco.com>
Updated RESTCONF implementation - Restconf implementation now implements new SAL readign contracts in form of <String,CompositeNode> where String is Restconf version of instance identifier. Translation of Restconf InstanceIdentifier into Binding-Independent Restconf Instance-Identifier is done by ControllerContext class which implements stateful translation of identifier based on schema context. After translation of instence-identifier most of actions maps directly to Binding-Independent APIs. Change-Id: I248470e282826a3f04f6e99f54aae8fd14ea2eb3 Signed-off-by: Tony Tkacik <ttkacik@cisco.com>