netconf.git
9 years agoRemove unused imports
Robert Varga [Fri, 7 Nov 2014 12:49:49 +0000 (13:49 +0100)]
Remove unused imports

This fixes warnings stemming from unused imports.

Change-Id: I7e91ca9fdde55f19d0463c9f662ca96f8270c87d
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoAdd generic arguments to Answer
Robert Varga [Thu, 6 Nov 2014 12:42:11 +0000 (13:42 +0100)]
Add generic arguments to Answer

Just use Object as the argument to get rid of the warnings.

Change-Id: I17d2ee9c518ed53c27bd5e1c330e7c161a388194
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG-2254 Make runtime rpcs in config subsystem/netconf handle context-instance...
Tony Tkacik [Fri, 7 Nov 2014 10:12:42 +0000 (10:12 +0000)]
Merge "BUG-2254 Make runtime rpcs in config subsystem/netconf handle context-instance attribute with namespaces"

9 years agoMerge "Fix warnings in netconfig-netty-util"
Tony Tkacik [Fri, 7 Nov 2014 10:05:48 +0000 (10:05 +0000)]
Merge "Fix warnings in netconfig-netty-util"

9 years agoMerge "Fix warnings in netconfig-monitoring"
Tony Tkacik [Fri, 7 Nov 2014 10:05:34 +0000 (10:05 +0000)]
Merge "Fix warnings in netconfig-monitoring"

9 years agoMerge "Fix warnings in neconf-util"
Tony Tkacik [Fri, 7 Nov 2014 10:00:48 +0000 (10:00 +0000)]
Merge "Fix warnings in neconf-util"

9 years agoFix warnings in netconfig-netty-util
Robert Varga [Thu, 6 Nov 2014 10:48:33 +0000 (11:48 +0100)]
Fix warnings in netconfig-netty-util

Removes the use of deprecated junit classes and raw types.

Change-Id: Ibde538ae563a82a89b865d1ef9303a6e24a026f5
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoFix warnings in netconfig-monitoring
Robert Varga [Thu, 6 Nov 2014 10:48:03 +0000 (11:48 +0100)]
Fix warnings in netconfig-monitoring

Removes the use of deprecated junit classes and raw types.

Change-Id: I594f2cc10771d8a5291cbab3f651a6fb01ac7a4c
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoFix warnings in neconf-util
Robert Varga [Thu, 6 Nov 2014 09:56:53 +0000 (10:56 +0100)]
Fix warnings in neconf-util

Remove use of raw types, unnecessary casts and use of deprecated junit
classes.

Change-Id: If7fb8b107a5b3086dc5f37d495def7db17363ced
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBUG-2254 Make runtime rpcs in config subsystem/netconf handle context-instance attrib...
Maros Marsalek [Wed, 5 Nov 2014 13:29:55 +0000 (14:29 +0100)]
BUG-2254 Make runtime rpcs in config subsystem/netconf handle context-instance attribute with namespaces

Change-Id: I9ca4accdb10ba5a6b52ce9b8f7ad02a8cbe8743d
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge changes I8b1a0281,Ib6342c74
Tony Tkacik [Mon, 27 Oct 2014 11:23:18 +0000 (11:23 +0000)]
Merge changes I8b1a0281,Ib6342c74

* changes:
  BUG-1612 Remove ganymed third party ssh lib (replaced by mina ssh)
  BUG-1612 Remove ganymed implementation of SSH server wrapper.

9 years agoMerge "BUG 1839 - HTTP delete of non existing data"
Tony Tkacik [Mon, 27 Oct 2014 10:22:29 +0000 (10:22 +0000)]
Merge "BUG 1839 - HTTP delete of non existing data"

9 years agoMerge "Convert netconf to use artifacts"
Tony Tkacik [Mon, 27 Oct 2014 09:28:44 +0000 (09:28 +0000)]
Merge "Convert netconf to use artifacts"

9 years agoBUG-1612 Remove ganymed third party ssh lib (replaced by mina ssh)
Maros Marsalek [Thu, 16 Oct 2014 06:10:07 +0000 (08:10 +0200)]
BUG-1612 Remove ganymed third party ssh lib (replaced by mina ssh)

Change-Id: I8b1a0281161f29345f1ee1af646a5fca504ad823
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-1612 Remove ganymed implementation of SSH server wrapper.
Maros Marsalek [Tue, 7 Oct 2014 17:17:56 +0000 (19:17 +0200)]
BUG-1612 Remove ganymed implementation of SSH server wrapper.

Change-Id: Ib6342c74ff9335265d1fe7a12ca8caecbd72d94f
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG-1612 Update netconf testtool to use new ssh server wrapper"
Tony Tkacik [Mon, 27 Oct 2014 09:17:26 +0000 (09:17 +0000)]
Merge "BUG-1612 Update netconf testtool to use new ssh server wrapper"

9 years agoMerge "BUG-1612 Implement mina ssh netconf server endpoint"
Tony Tkacik [Mon, 27 Oct 2014 09:17:14 +0000 (09:17 +0000)]
Merge "BUG-1612 Implement mina ssh netconf server endpoint"

9 years agoMerge "BUG-2184 Fix subtree filtering for identity-ref leaves"
Tony Tkacik [Mon, 27 Oct 2014 08:26:36 +0000 (08:26 +0000)]
Merge "BUG-2184 Fix subtree filtering for identity-ref leaves"

9 years agoConvert netconf to use artifacts
Robert Varga [Fri, 17 Oct 2014 23:23:01 +0000 (01:23 +0200)]
Convert netconf to use artifacts

Change-Id: I23feabe96c7fc3e0d1ca59b6773abeb97e9467f9
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBUG-1612 Update netconf testtool to use new ssh server wrapper
Maros Marsalek [Tue, 7 Oct 2014 17:44:35 +0000 (19:44 +0200)]
BUG-1612 Update netconf testtool to use new ssh server wrapper

Change-Id: I8625f8d34df65f6d7e47ad77d393f482afa1abdf
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-1612 Implement mina ssh netconf server endpoint
Maros Marsalek [Mon, 6 Oct 2014 16:09:10 +0000 (18:09 +0200)]
BUG-1612 Implement mina ssh netconf server endpoint

Extract sessionCloseCallback and readHandler from AsyncSshHandlerReader

Change-Id: I0e09341fd59f74f7ac57688414a6dac7c9823b8a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-2184 Fix subtree filtering for identity-ref leaves
Maros Marsalek [Wed, 22 Oct 2014 15:49:19 +0000 (17:49 +0200)]
BUG-2184 Fix subtree filtering for identity-ref leaves

Change-Id: I7d367c793a461ae26f56ddf611f7e45a723f28fc
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG-2217 Add missing namespace to serialized inner runtime beans"
Tony Tkacik [Wed, 22 Oct 2014 11:52:44 +0000 (11:52 +0000)]
Merge "BUG-2217 Add missing namespace to serialized inner runtime beans"

9 years agoBUG-2217 Add missing namespace to serialized inner runtime beans
Maros Marsalek [Mon, 20 Oct 2014 11:17:22 +0000 (13:17 +0200)]
BUG-2217 Add missing namespace to serialized inner runtime beans

Change-Id: I267c23ec620bacbd800ee171f37413d4f5997f69
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Add get-config commit edit-config to testtool"
Tony Tkacik [Mon, 20 Oct 2014 09:19:04 +0000 (09:19 +0000)]
Merge "Add get-config commit edit-config to testtool"

9 years agoAdd get-config commit edit-config to testtool
Maros Marsalek [Fri, 17 Oct 2014 09:58:07 +0000 (11:58 +0200)]
Add get-config commit edit-config to testtool

Change-Id: Ie85c839c2077b9d7ca560dc42120268501acb8b0
Signed-off-by: Andrej Socha <ansocha@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Migrate netconf testtool to work with karaf distribution"
Tony Tkacik [Fri, 17 Oct 2014 13:00:50 +0000 (13:00 +0000)]
Merge "Migrate netconf testtool to work with karaf distribution"

9 years agoMigrate netconf testtool to work with karaf distribution
Maros Marsalek [Thu, 16 Oct 2014 15:41:07 +0000 (17:41 +0200)]
Migrate netconf testtool to work with karaf distribution

Make testtool part of default build process.

Change-Id: Ie957bcf2a38405fee979a6f8547b328d3bd8e2ea
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG 1839 - HTTP delete of non existing data
Jozef Gloncak [Tue, 16 Sep 2014 12:49:24 +0000 (14:49 +0200)]
BUG 1839 - HTTP delete of non existing data

Before - after deleting non existing data an exception was raised.
Now - after deleting non existing data it is checked whether there is in
exception chain instance of ModifiedNodeDoesNotExistException. If it is so then
HTTP 404 - data missing status is returned.

Change-Id: I43ccaa16abe7dfaffa3e031aa31d93f8f106a81f
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoMerge "BUG 2047 - HTTP GET - no returning error message"
Tony Tkacik [Thu, 16 Oct 2014 13:21:40 +0000 (13:21 +0000)]
Merge "BUG 2047 - HTTP GET - no returning error message"

9 years agoMerge "BUG 1966 - change message logging level (info -> trace)"
Tony Tkacik [Thu, 16 Oct 2014 13:03:16 +0000 (13:03 +0000)]
Merge "BUG 1966 - change message logging level (info -> trace)"

9 years agoMerge "BUG-1521 netconf-impl & netconf-monitoring line coverage."
Tony Tkacik [Thu, 16 Oct 2014 10:08:13 +0000 (10:08 +0000)]
Merge "BUG-1521 netconf-impl & netconf-monitoring line coverage."

9 years agoMerge "Fixes bug 2114"
Devin Avery [Wed, 15 Oct 2014 16:25:07 +0000 (16:25 +0000)]
Merge "Fixes bug 2114"

9 years agoMerge "BUG 720 - YANG leaf as JSON input *<*:* couldn't be saved"
Devin Avery [Wed, 15 Oct 2014 09:38:56 +0000 (09:38 +0000)]
Merge "BUG 720 - YANG leaf as JSON input *<*:* couldn't be saved"

9 years agoBUG 720 - YANG leaf as JSON input *<*:* couldn't be saved
Jozef Gloncak [Thu, 25 Sep 2014 08:18:02 +0000 (10:18 +0200)]
BUG 720 - YANG leaf as JSON input *<*:* couldn't be saved

If input value for leaf in JSON format contained opending angle bracket
(<) followed by collon (:) then exception was raised.

Because schema isn't present at time of JSON input reading it was also
supposed that data could be of type leafref which is specified in format
module:value. Module part is then transformed to instance of URI object.

Chracter < isn't permitted in URI according RFC2396 for URI and while
creating instance of URI class the exception which wasn't caught was
raised and transformed to returning error message.

Change-Id: I46bb949b38623f62a02daf4390c373371775ae1f
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoIncrementing versions by 0.1.0 for post-Helium master branch
Colin Dixon [Fri, 3 Oct 2014 22:55:46 +0000 (17:55 -0500)]
Incrementing versions by 0.1.0 for post-Helium master branch

* The only version not incrmented is aaa.version, which is left at
  0.1.0-SNAPSHOT since they depend on controller and can't update yet.
* To break the cyclic dependency, this patch temporarily stops running
  the netconf-connector and restconf feature tests.
* Also fixing a bug causing Errors like "Choice has two nodes case with
  same qnames".

A second patch (to be run after AAA increments their versions to
0.2.0-SNAPSHOT) wiil update aaa.version and re-enable these tests.

Change-Id: I70a3987d32504e798c5ed05a67a0a1174338844b
Signed-off-by: Colin Dixon <colin@colindixon.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoFixes bug 2114
Abhishek Kumar [Wed, 1 Oct 2014 05:16:08 +0000 (22:16 -0700)]
Fixes bug 2114

Adds handling of "leaf" node at the module level.

Change-Id: I55efb47b57d2f33b136b0dae8c82effe04ad706b
Signed-off-by: Abhishek Kumar <abhishk2@cisco.com>
9 years agoBUG 2047 - HTTP GET - no returning error message
Jozef Gloncak [Thu, 25 Sep 2014 06:19:36 +0000 (08:19 +0200)]
BUG 2047 - HTTP GET - no returning error message

Error message was added to NormalizedNodeXmlBodyWriter.

Change-Id: I43914eaa62149b66303cef956f73e694fae9217f
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoBUG 1966 - change message logging level (info -> trace)
Jozef Gloncak [Wed, 24 Sep 2014 13:11:31 +0000 (15:11 +0200)]
BUG 1966 - change message logging level (info -> trace)

Change-Id: Idff363361f5d283edf25ac656a519bc8232a9393
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoMerge "Bug 2030 : Adding jetty corsfilter in restconf and docgen bundles to avoid...
Ed Warnicke [Wed, 24 Sep 2014 03:39:14 +0000 (03:39 +0000)]
Merge "Bug 2030 : Adding jetty corsfilter in restconf and docgen bundles to avoid cross origin error"

9 years agoMerge "Pulled the RPC query out of the data schema loop, so that modules that only...
Ed Warnicke [Wed, 24 Sep 2014 03:04:12 +0000 (03:04 +0000)]
Merge "Pulled the RPC query out of the data schema loop, so that modules that only contain RPCs will also be picked up."

9 years agoBug 2030 : Adding jetty corsfilter in restconf and docgen bundles to avoid cross...
Harman Singh [Tue, 23 Sep 2014 23:26:58 +0000 (16:26 -0700)]
Bug 2030 : Adding jetty corsfilter in restconf and docgen bundles to avoid cross origin error

Change-Id: I47b860b5c092d54e0ae106b2b832c021502ad52f
Signed-off-by: Harman Singh <harmasin@cisco.com>
9 years agoBUG-1521 netconf-impl & netconf-monitoring line coverage.
Filip Tehlar [Tue, 23 Sep 2014 08:24:06 +0000 (10:24 +0200)]
BUG-1521 netconf-impl & netconf-monitoring line coverage.

Change-Id: Iad7fdaffb3ffeda331f487e2725e2500c6f31c86
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
9 years agoPulled the RPC query out of the data schema loop, so that
David K. Bainbridge [Tue, 23 Sep 2014 03:35:45 +0000 (20:35 -0700)]
Pulled the RPC query out of the data schema loop, so that
modules that only contain RPCs will also be picked up.

Signed-off-by: David K. Bainbridge <dbainbri@ciena.com>
Change-Id: I63981d2126209263a762acbc190f4ad15f4dd725

9 years agoMerge "Bug 1025: Fixed incorrect revision in sal-remote-augment, which caused log...
Ed Warnicke [Mon, 22 Sep 2014 18:31:51 +0000 (18:31 +0000)]
Merge "Bug 1025: Fixed incorrect revision in sal-remote-augment, which caused log polution."

9 years agoBug 1025: Fixed incorrect revision in sal-remote-augment, which caused log polution.
Tony Tkacik [Mon, 22 Sep 2014 15:12:13 +0000 (17:12 +0200)]
Bug 1025: Fixed incorrect revision in sal-remote-augment, which caused log polution.

Change-Id: I5db5bfb43217d21bad58c913de8dedac5d7cdf23
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "BUG-1953: fix bad values in netconf monitoring test"
Tony Tkacik [Sat, 20 Sep 2014 14:46:54 +0000 (14:46 +0000)]
Merge "BUG-1953: fix bad values in netconf monitoring test"

9 years agoBUG-1953: fix bad values in netconf monitoring test
Robert Varga [Fri, 19 Sep 2014 19:40:36 +0000 (21:40 +0200)]
BUG-1953: fix bad values in netconf monitoring test

Uses string values which do not match the format prescribed by the
model. Fix them.

Change-Id: I55efcdd87aea24bcfd805a865319fe324e663768
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBUG-1949 Fix race condition in AsyncSshHandler
Maros Marsalek [Thu, 18 Sep 2014 15:58:48 +0000 (17:58 +0200)]
BUG-1949 Fix race condition in AsyncSshHandler

Remove pending limit due to unexpected behaviour with chunked messages.
Extract Reader/Writer into separate classes.

Also lower the amount of requests sent in SSH Stress integration test.

Change-Id: Idff719ac3a6bed9e8939efa01b8306f2884848fe
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBug 1970: Disabling NetconfITSecureTest test
Ed Warnicke [Fri, 19 Sep 2014 02:38:22 +0000 (21:38 -0500)]
Bug 1970: Disabling NetconfITSecureTest test

Change-Id: Id937c37cd237ee4340a0e8e5bd63561d1e1afe21
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "BUG-692 Fix major issues reported by sonar for netconf subsystem"
Tony Tkacik [Thu, 18 Sep 2014 12:56:57 +0000 (12:56 +0000)]
Merge "BUG-692 Fix major issues reported by sonar for netconf subsystem"

9 years agoBUG-1521 netconf-util line coverage
Filip Tehlar [Wed, 17 Sep 2014 10:39:29 +0000 (12:39 +0200)]
BUG-1521 netconf-util line coverage

Change-Id: I90fc67622d95fa1b1e06fcf3c10a4d0ea40000c4
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
9 years agoBUG-692 Fix major issues reported by sonar for netconf subsystem
Maros Marsalek [Wed, 17 Sep 2014 14:11:14 +0000 (16:11 +0200)]
BUG-692 Fix major issues reported by sonar for netconf subsystem

Change-Id: I2f7cd479a773b7c3edc111c45add8ab5510fb47f
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG 1659 - non unified returning data default format"
Tony Tkacik [Wed, 17 Sep 2014 11:21:52 +0000 (11:21 +0000)]
Merge "BUG 1659 - non unified returning data default format"

9 years agoMerge "BUG-1842 Fix byte buffer handling for pending messages"
Tony Tkacik [Wed, 17 Sep 2014 10:45:28 +0000 (10:45 +0000)]
Merge "BUG-1842 Fix byte buffer handling for pending messages"

9 years agoBUG 1659 - non unified returning data default format
Jozef Gloncak [Tue, 16 Sep 2014 12:59:34 +0000 (14:59 +0200)]
BUG 1659 - non unified returning data default format

Returning value (errors and data) will be by default in JSON format

Change-Id: I65368da31b1364c3e8153d39ab66e1fd8ecc49d3
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoBUG-1842 Fix byte buffer handling for pending messages
Maros Marsalek [Tue, 16 Sep 2014 11:22:57 +0000 (13:22 +0200)]
BUG-1842 Fix byte buffer handling for pending messages

Change-Id: I54cd873e12d73779e20be280226480d090d9e8c5
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG-1521 netconf-client line coverage"
Tony Tkacik [Mon, 15 Sep 2014 09:23:08 +0000 (09:23 +0000)]
Merge "BUG-1521 netconf-client line coverage"

9 years agoMerge "BUG-1521 Unit tests for netconf-util xml package."
Tony Tkacik [Fri, 12 Sep 2014 11:06:50 +0000 (11:06 +0000)]
Merge "BUG-1521 Unit tests for netconf-util xml package."

9 years agoBUG-1521 netconf-client line coverage
Filip Tehlar [Thu, 11 Sep 2014 13:07:26 +0000 (15:07 +0200)]
BUG-1521 netconf-client line coverage

Change-Id: I44c7d6a627e21aabe9c46ea678a90d81268ef438
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
9 years agoBUG-1521 Unit tests for netconf-util xml package.
Maros Marsalek [Thu, 11 Sep 2014 10:53:55 +0000 (12:53 +0200)]
BUG-1521 Unit tests for netconf-util xml package.

Change-Id: Iaafba131555b948130a9916127b808c00016f502
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-600 Netconf testtool for scale test, set connection timeout on server side.
Maros Marsalek [Wed, 10 Sep 2014 13:26:28 +0000 (15:26 +0200)]
BUG-600 Netconf testtool for scale test, set connection timeout on server side.

Change-Id: I21507bce0961dc9b149db6f10b31f34c27188b3a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG-1521 Netconf-netty-util missing unit tests"
Tony Tkacik [Thu, 11 Sep 2014 11:57:24 +0000 (11:57 +0000)]
Merge "BUG-1521 Netconf-netty-util missing unit tests"

9 years agoMerge "BUG 1582 - PUT fails validate outer object name"
Tony Tkacik [Thu, 11 Sep 2014 09:54:46 +0000 (09:54 +0000)]
Merge "BUG 1582 - PUT fails validate outer object name"

9 years agoBUG-1521 Netconf-netty-util missing unit tests
Maros Marsalek [Tue, 9 Sep 2014 13:54:48 +0000 (15:54 +0200)]
BUG-1521 Netconf-netty-util missing unit tests

Change-Id: I1cb19296d2c428214212f342fab64999ad3eb5f3
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-1704: do not emit separator
Robert Varga [Tue, 9 Sep 2014 12:23:23 +0000 (14:23 +0200)]
BUG-1704: do not emit separator

When reusing JSONNormalizedNodeStreamWriter, it retains enough state to
know to emit a separator, so if we do it here, we will break the output.

Change-Id: Ie7acc269b4546230fad532f0abf14c0ba6c4121a
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG-1521 Add missing unit tests for config-persister-impl"
Tony Tkacik [Tue, 9 Sep 2014 07:18:46 +0000 (07:18 +0000)]
Merge "BUG-1521 Add missing unit tests for config-persister-impl"

9 years agoBUG 1582 - PUT fails validate outer object name
Jozef Gloncak [Mon, 8 Sep 2014 12:48:53 +0000 (14:48 +0200)]
BUG 1582 - PUT fails validate outer object name

validateTopLevelNodeName method was added.

Change-Id: I6f48ba9350b31d98f765fcb4afb367b8435b4cbd
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoMerge "Make generated address configurable for netconf testtool"
Tony Tkacik [Mon, 8 Sep 2014 08:41:17 +0000 (08:41 +0000)]
Merge "Make generated address configurable for netconf testtool"

9 years agoMake generated address configurable for netconf testtool
Maros Marsalek [Fri, 5 Sep 2014 13:59:06 +0000 (15:59 +0200)]
Make generated address configurable for netconf testtool

Change-Id: Ia112bc4108c9d7d8756b755f8e6e660e255a046e
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-1521 Add missing unit tests for config-persister-impl
Maros Marsalek [Fri, 5 Sep 2014 09:21:01 +0000 (11:21 +0200)]
BUG-1521 Add missing unit tests for config-persister-impl

Change-Id: Id9b6f024da20ea71daa6b29353e39fbdb81e0fb2
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Initial clustering feature"
Devin Avery [Thu, 4 Sep 2014 22:41:44 +0000 (22:41 +0000)]
Merge "Initial clustering feature"

9 years agoInitial clustering feature
Ed Warnicke [Wed, 27 Aug 2014 21:09:18 +0000 (16:09 -0500)]
Initial clustering feature

Besides the clustering feature changes a couple of other changes
had to be made to the distributed data store and remote rpc modules
to make the solution work with karaf

1. The akka.conf in sal-clustering-config has now been changed so that
it works in a single node cluster out of the box. Specifically the hostnames
have been set to 127.0.0.1 and the member role has been set to member-1

2. The distributed-data-store and the remote-rpcconnector now load akka
configuration from the configuration/initial folder. The positive thing about
this is that even in a multi-node cluster one does not need to pass the location
of akka.conf on the command line. The negative thing about this is that you
cannot change the location from which the akka configuration can be picked up.
Though this should be ok because we specifically pick modules.conf and
module-shards.conf from the configuration/initial folder as well.

3. The Protobuf bundle has now been wrapped and a Dynamic Import has been
added to it so that it can deserialized specific protocol buffer messages

4. The RestConfProvider was not written to shutdown correctly. While this is
not normally an issue it does become an issue when the clustering feature is
loaded for the first time because in that case the RestConfProvider may need
to be shutdown by the config sub-system

Change-Id: I1701ae8e9508c82779483963fb73b6af91095d7d
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoMerge changes I9aa41251,Ibd0fb687
Ed Warnicke [Thu, 4 Sep 2014 17:01:41 +0000 (17:01 +0000)]
Merge changes I9aa41251,Ibd0fb687

* changes:
  Bug 1703: Fixed memory leak in TransactionChain
  Bug 222: Added basic Restconf operational statistics

9 years agoBug 222: Added basic Restconf operational statistics
Tony Tkacik [Thu, 4 Sep 2014 11:48:08 +0000 (13:48 +0200)]
Bug 222: Added basic Restconf operational statistics

Added basic restconf statistics which counts
incoming requests and exported it via Config subsystem.

Export via config subsystem provides this
statistics via JMX and Netconf. In distribution, where
sal-netconf-connector is present and 99-sal-netconf-connector.xml is enabled,
Restconf statistics are also available via

restconf/operational/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/module/rest-connector-default-impl

Change-Id: Ibd0fb6875104d1a90eeaf62271c9a2f87d2f85f0
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "Fix netconf testtool after recent changes to auth in netconf"
Tony Tkacik [Thu, 4 Sep 2014 11:38:34 +0000 (11:38 +0000)]
Merge "Fix netconf testtool after recent changes to auth in netconf"

9 years agoMerge "Refactor integration tests for netconf in netconf-it"
Tony Tkacik [Thu, 4 Sep 2014 11:38:22 +0000 (11:38 +0000)]
Merge "Refactor integration tests for netconf in netconf-it"

9 years agoFix netconf testtool after recent changes to auth in netconf
Maros Marsalek [Wed, 3 Sep 2014 15:26:11 +0000 (17:26 +0200)]
Fix netconf testtool after recent changes to auth in netconf

Change-Id: I924057380d2a63d062ef33a4d9bc29af61265dc3
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoRefactor integration tests for netconf in netconf-it
Maros Marsalek [Wed, 3 Sep 2014 12:22:43 +0000 (14:22 +0200)]
Refactor integration tests for netconf in netconf-it

Change-Id: I03c8a9220dc1fa115f6489219df6a45297bbd28e
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Bug 1664: Fixed JSON/XML serialization of reading mount point root data."
Ed Warnicke [Wed, 3 Sep 2014 15:01:54 +0000 (15:01 +0000)]
Merge "Bug 1664: Fixed JSON/XML serialization of reading mount point root data."

9 years agoBug 1664: Fixed JSON/XML serialization of reading mount point root data.
Tony Tkacik [Wed, 3 Sep 2014 13:02:55 +0000 (15:02 +0200)]
Bug 1664: Fixed JSON/XML serialization of reading mount point root data.

Change-Id: I3ff08d907abc0c11e4166cc8c70695325df95868
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug 1441: Added proper handling of reading JSON list items.
Tony Tkacik [Mon, 1 Sep 2014 19:56:45 +0000 (21:56 +0200)]
Bug 1441: Added proper handling of reading JSON list items.

Fixed handling of reading nested data in JSON codec.

Initial integration contained bug, which did use JSON
codec correctly, which ended in 500 for reading list item.

Change-Id: I38ef0b40cea1a22e313d22f64db3806c293d67d6
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "BUG-1442: integrate XML/JSON Normalized Node writers with Restconf"
Tony Tkacik [Tue, 2 Sep 2014 05:37:54 +0000 (05:37 +0000)]
Merge "BUG-1442: integrate XML/JSON Normalized Node writers with Restconf"

9 years agoBUG-1442: integrate XML/JSON Normalized Node writers with Restconf
Robert Varga [Tue, 19 Aug 2014 08:42:00 +0000 (10:42 +0200)]
BUG-1442: integrate XML/JSON Normalized Node writers with Restconf

Integrated XML and JSON NormalizedNodeWriters for returning
data from Restconf. This writers does stream processing
and writes data into input stream without any intermediate
representations.

This will help with larger data sets, since it theoretically
reduces memory footprint of reading data from MD-SAL.

Change-Id: I36564b7a5a1bc50d60e1cb6d5b2b45f92c2caf0b
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoAdded sal-rest-docgen to features.
Ed Warnicke [Sun, 31 Aug 2014 01:43:24 +0000 (20:43 -0500)]
Added sal-rest-docgen to features.

Change-Id: I85af2296a1e0c8a1be599a611424418d4297f6a1
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "Added AAA AuthN filter to RESTConf web.xml"
Ed Warnicke [Fri, 29 Aug 2014 03:18:53 +0000 (03:18 +0000)]
Merge "Added AAA AuthN filter to RESTConf web.xml"

9 years agoMerge "Bug 1636: Config Netconf Connector did not serialize service type"
Ed Warnicke [Thu, 28 Aug 2014 16:08:13 +0000 (16:08 +0000)]
Merge "Bug 1636: Config Netconf Connector did not serialize service type"

9 years agoMerge "BUG-1617 Extract AuthProvider from netconf ssh"
Tony Tkacik [Thu, 28 Aug 2014 15:47:25 +0000 (15:47 +0000)]
Merge "BUG-1617 Extract AuthProvider from netconf ssh"

9 years agoBug 1636: Config Netconf Connector did not serialize service type
Tony Tkacik [Thu, 28 Aug 2014 11:20:58 +0000 (13:20 +0200)]
Bug 1636: Config Netconf Connector did not serialize service type

Config Netconf connector did not serialized service type
in list of service dependencies properly, which resulted
in invalid string 'prefix:null'

Change-Id: I02cc56e2069b56737167d9b694f8cb8309bbd74d
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "BUG-1621 Fix reconnecting."
Tony Tkacik [Wed, 27 Aug 2014 15:11:16 +0000 (15:11 +0000)]
Merge "BUG-1621 Fix reconnecting."

9 years agoBUG-1621 Fix reconnecting.
Maros Marsalek [Wed, 27 Aug 2014 12:51:12 +0000 (14:51 +0200)]
BUG-1621 Fix reconnecting.

Netconf-connector did not reconnect after recent changes (Ssh mina integration)
SshHandler was in pipeline after listener in reconnect, thats why the listener received no event about session down.

Change-Id: Id39062f51bc3a0caf066ca49682a2acc837b06ef
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoAdded AAA AuthN filter to RESTConf web.xml
Liem Nguyen [Tue, 26 Aug 2014 19:57:18 +0000 (12:57 -0700)]
Added AAA AuthN filter to RESTConf web.xml

Change-Id: I78d57335e805165c99038b4a6f89f8c5229253a5
Signed-off-by: Liem Nguyen <liem_m_nguyen@hp.com>
9 years agoMerge "Bug 1616: Issues with using container and default values in config yang"
Moiz Raja [Tue, 26 Aug 2014 15:39:07 +0000 (15:39 +0000)]
Merge "Bug 1616: Issues with using container and default values in config yang"

9 years agoBUG-1617 Extract AuthProvider from netconf ssh
Maros Marsalek [Tue, 26 Aug 2014 14:53:07 +0000 (16:53 +0200)]
BUG-1617 Extract AuthProvider from netconf ssh

Change-Id: Ib6f47c0dca5b4b3604b639ae8bca3565f8dd934c
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG-1618 Handle pending writes in ssh netconfclient"
Tony Tkacik [Tue, 26 Aug 2014 14:09:48 +0000 (14:09 +0000)]
Merge "BUG-1618 Handle pending writes in ssh netconfclient"

9 years agoBUG-1618 Handle pending writes in ssh netconfclient
Maros Marsalek [Tue, 26 Aug 2014 11:46:32 +0000 (13:46 +0200)]
BUG-1618 Handle pending writes in ssh netconfclient

Change-Id: If4371860e81cf4153c4baaa8a9b0d3c45334ab5c
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "BUG-1521 Increase test coverage of netconf-netty-util"
Tony Tkacik [Tue, 26 Aug 2014 07:37:44 +0000 (07:37 +0000)]
Merge "BUG-1521 Increase test coverage of netconf-netty-util"

9 years agoMerge "BUG-1568 Remove unused VirtualSocket"
Tony Tkacik [Tue, 26 Aug 2014 07:37:31 +0000 (07:37 +0000)]
Merge "BUG-1568 Remove unused VirtualSocket"

9 years agoMerge "BUG-1521 Netconf-monitoring test coverage raise"
Tony Tkacik [Tue, 26 Aug 2014 07:37:20 +0000 (07:37 +0000)]
Merge "BUG-1521 Netconf-monitoring test coverage raise"

9 years agoBUG-1521 Increase test coverage of netconf-netty-util
Maros Marsalek [Mon, 25 Aug 2014 15:14:11 +0000 (17:14 +0200)]
BUG-1521 Increase test coverage of netconf-netty-util

Change-Id: I962e16da8d4112b4ec6a1c90170be3036041eddd
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>