netconf.git
7 years ago.gitignore .factorypath created by m2e-apt 24/40524/1
Michael Vorburger [Sun, 19 Jun 2016 16:03:51 +0000 (18:03 +0200)]
.gitignore .factorypath created by m2e-apt

https://github.com/vorburger/opendaylight-eclipse-setup now bundles
https://github.com/jbosstools/m2e-apt, which creates .factorypath files
all over the place.

Also .checkstyle created by Eclipse Checkstyle plugin.

Change-Id: Ibc9dc3d6a471f216d1e3a9adf76523e4061a0099
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Remove unused isMaster variable in ClusteredNetconfDevice"
Tomas Cere [Thu, 16 Jun 2016 13:51:45 +0000 (13:51 +0000)]
Merge "Remove unused isMaster variable in ClusteredNetconfDevice"

7 years agoMerge "BUG-865: Do not use QName.cachedReference()"
Tony Tkacik [Wed, 15 Jun 2016 18:30:17 +0000 (18:30 +0000)]
Merge "BUG-865: Do not use QName.cachedReference()"

7 years agoMerge "Bug 5529 - Restconf M5 - Clean-up sonar issues"
Tomas Cere [Wed, 15 Jun 2016 11:15:22 +0000 (11:15 +0000)]
Merge "Bug 5529 - Restconf M5 - Clean-up sonar issues"

7 years agoBUG-865: Do not use QName.cachedReference() 33/40333/3
Robert Varga [Tue, 14 Jun 2016 23:02:09 +0000 (01:02 +0200)]
BUG-865: Do not use QName.cachedReference()

QName.intern() is the modernized method. Also use it for all constants,
allowing greater reuse inside the JVM.

Also create NodeIdentifier and LeafNode constants for things that are
invariant, improving GC behavior.

Finally import YangInstanceIdentifer.{NodeIdentifier,PathArg} to make
the code more readable.

Change-Id: Id8587407dfbf8746a369fadb23102357082e7535
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 5529 - Restconf M5 - Clean-up sonar issues 36/40236/4
Ivan Hrasko [Mon, 13 Jun 2016 13:09:35 +0000 (15:09 +0200)]
Bug 5529 - Restconf M5 - Clean-up sonar issues

Remove critical issues

Change-Id: Ie14934864976b5f9496af836a81293f052f4666d
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBug 5911 - Restconf draft11 - bad parsing 69/39769/15
Ivan Hrasko [Thu, 2 Jun 2016 14:14:27 +0000 (16:14 +0200)]
Bug 5911 - Restconf draft11 - bad parsing

- fix for leaf-list deserialization
- fix for YangInstanceIdentifier.EMPTY serialization and deserialization
(YangInstanceIdentifier.EMPTY is serialized to single slash and single
slash is deserialized to YangInstanceIdentifier.EMPTY)
- fix: parser recognizes all reserved characters according to rfc3986
- fix for list keys serialization
- fix for percent encoded characters decoding
- add check if leaf list instance value was supplied, error otherwise
- fix: module name before identifier is required only if node was not
defined in parents module

Change-Id: I48a944ed6139da5b7be0835cc99e219e11dc0072
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoMerge "Bug 5708: Schemaless netconf mount point"
Tomas Cere [Tue, 14 Jun 2016 08:41:19 +0000 (08:41 +0000)]
Merge "Bug 5708: Schemaless netconf mount point"

7 years agoImprove logging in netconf test tool 39/40239/2
Jakub Morvay [Mon, 13 Jun 2016 08:30:50 +0000 (10:30 +0200)]
Improve logging in netconf test tool

This adds debug logs to TesttoolNegotiationFactory to help distinguish
cached operation service from newly created one. Also logs passed
parameters to netconf test tool.

Change-Id: I52dbc86a926724f97490ef2d939da22e71a3925a
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoRemove unused isMaster variable in ClusteredNetconfDevice 54/40254/1
Ryan Goulding [Mon, 13 Jun 2016 20:02:33 +0000 (16:02 -0400)]
Remove unused isMaster variable in ClusteredNetconfDevice

isMaster is never used, so it should be removed.

Change-Id: I5419d281062e9d25cf91e7a710cec06c609765e9
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
7 years agoMerge "Fix bug 5810, 5812: 1. only when node's config statement is true, such apis...
Tomas Cere [Mon, 13 Jun 2016 13:22:19 +0000 (13:22 +0000)]
Merge "Fix bug 5810, 5812: 1. only when node's config statement is true, such apis as GET/PUT/POST/DELETE config are added for this node; 2. when there are two or more top container/list nodes whose config statement is true in module, make sure that only one root post link is added for this module."

7 years agoMerge "Bug 5526 - Testing - Rest implementations - Streams"
Tomas Cere [Mon, 13 Jun 2016 08:58:28 +0000 (08:58 +0000)]
Merge "Bug 5526 - Testing - Rest implementations - Streams"

7 years agoMerge changes from topic 'parser-post-removal'
Tomas Cere [Mon, 13 Jun 2016 08:51:37 +0000 (08:51 +0000)]
Merge changes from topic 'parser-post-removal'

* changes:
  BUG-865: Remove reference to ExtendedType
  BUG-865: remove references to obsolete types

7 years agoFix bug 5810, 5812: 15/39815/2
Nafee Chan [Fri, 3 Jun 2016 01:21:37 +0000 (09:21 +0800)]
Fix bug 5810, 5812:
1. only when node's config statement is true, such apis as
GET/PUT/POST/DELETE config are added for this node;
2. when there are two or more top container/list nodes whose config
statement is true in module, make sure that only one root post link is added for this module.

Change-Id: I96d0b485c5943ad9bee63327c5d10e3cd0e5cb77
Signed-off-by: Nafee Chan <nafee.chan@gmail.com>
7 years agoBug 5526 - Testing - Rest implementations - Streams 75/38575/36
Ivan Hrasko [Mon, 9 May 2016 13:32:43 +0000 (15:32 +0200)]
Bug 5526 - Testing - Rest implementations - Streams

Unit tests for RestconfStreamsServiceImpl

Change-Id: I7c120cda262786b898e8918381747f98cb935329
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBUG-865: Remove reference to ExtendedType 95/39895/7
Jakub Toth [Wed, 8 Jun 2016 07:54:27 +0000 (09:54 +0200)]
BUG-865: Remove reference to ExtendedType

ExtendedTypes are no longer generated by the parser
and the class has been deprecated. Remove references
to it so it can be removed.

Change-Id: Id74fd89b5a8dcd3489f4b0856716e39324a75cc9
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBUG-865: remove tests dependend on pre-Beryllium parser 88/40088/2
Ivan Hrasko [Thu, 9 Jun 2016 07:51:59 +0000 (09:51 +0200)]
BUG-865: remove tests dependend on pre-Beryllium parser

Removed tests have had unclear logic and were removed.

Change-Id: I7410a6f3e7959f709947222636b75e8fcad66afe
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoMerge "Bug 6023 - Add default address setting"
Tomas Cere [Thu, 9 Jun 2016 11:12:55 +0000 (11:12 +0000)]
Merge "Bug 6023 - Add default address setting"

7 years agoBUG-865: remove references to obsolete types 11/39911/8
Jakub Toth [Wed, 8 Jun 2016 07:40:44 +0000 (09:40 +0200)]
BUG-865: remove references to obsolete types

TypeDefinition subclasses in model.util are deprecated.
Use their model.util.type equivalents available through BaseTypes.

Added one negative test into NnToXmlTest.

Change-Id: Id5bda10663b12e782a24731bc73d3e771ea242f1
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoMerge "Bug 5527 - Testing - Provider"
Tomas Cere [Wed, 8 Jun 2016 16:52:10 +0000 (16:52 +0000)]
Merge "Bug 5527 - Testing - Provider"

7 years agoBug 6023 - Add default address setting 41/39941/2
Jakub Morvay [Tue, 7 Jun 2016 11:03:51 +0000 (13:03 +0200)]
Bug 6023 - Add default address setting

Adds default address and ssh private key path setting for config
subsystem netconf endpoint.

Change-Id: Id3169847a26f50e701aa5acfb592d9092abeeaf6
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 5526 - Testing - Rest implementations - Schema 74/38574/23
Ivan Hrasko [Mon, 9 May 2016 13:27:33 +0000 (15:27 +0200)]
Bug 5526 - Testing - Rest implementations - Schema

- unit tests for RestconfSchemaService
- small fix for found bug in validation

Change-Id: I37f14db187c27be4192f1fdbd7984bcbc5e927fd
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBug 5527 - Testing - Provider 65/38565/23
Ivan Hrasko [Mon, 9 May 2016 09:23:20 +0000 (11:23 +0200)]
Bug 5527 - Testing - Provider

Unit tests for RestConnectorProvider

Change-Id: I97c592808a5e33b127b1de4b44b9b209d4353caf
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoFix of build breakage caused by changes in Yangtools 23/39923/3
Ivan Hrasko [Tue, 7 Jun 2016 07:13:55 +0000 (09:13 +0200)]
Fix of build breakage caused by changes in Yangtools

- use the RevisionSourceIdentifier implementation of SourceIdentifier
abstract class

Change-Id: I8ffceca436c1477a676e87f69e31ce7c4722c061
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBUG 4968: Clear transaction after proxy tx is submitted. 78/39878/1
Tomas Cere [Mon, 6 Jun 2016 10:58:52 +0000 (12:58 +0200)]
BUG 4968: Clear transaction after proxy tx is submitted.

Change-Id: I2038a25cdd0ae17e6517a1f0ac375850a3c17479
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoFix broken tree of modules in sonar analysis 32/39832/3
Tomas Cere [Fri, 3 Jun 2016 11:20:05 +0000 (13:20 +0200)]
Fix broken tree of modules in sonar analysis

Change-Id: Ie978c3696e814b6765d340736c5853c13e12bd02
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoFix XPath expression in NetconfMappingTest 22/39822/2
Jakub Morvay [Fri, 3 Jun 2016 07:37:14 +0000 (09:37 +0200)]
Fix XPath expression in NetconfMappingTest

Netconf replies constructed in config subsystem netconf endpoint now
contain correct namespaces when in DOM format. Fix XPath expression in
NetconfMappingTest to contain these namespaces.

See https://git.opendaylight.org/gerrit/#/c/39492/

Change-Id: I5ec33403059a9f0f046fda6f00122d52a0885ffa
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoNetconf Karaf CLI code clean-up 67/39667/1
Rashmi Pujar [Tue, 31 May 2016 19:05:49 +0000 (15:05 -0400)]
Netconf Karaf CLI code clean-up

- Fix show-device command argument checking
- Remove default values for strings to make Help look cleaner
- Check for null node to avoid NPE

Change-Id: I5376e76e252cbe3743410f84c8b20722a483e20d
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
7 years agoMerge "Bug 5912 - Restconf draft11 - utils"
Tomas Cere [Tue, 31 May 2016 14:45:35 +0000 (14:45 +0000)]
Merge "Bug 5912 - Restconf draft11 - utils"

7 years agoReplace old yang parser usages in netconf. 09/39609/2
Tomas Cere [Mon, 30 May 2016 14:34:30 +0000 (16:34 +0200)]
Replace old yang parser usages in netconf.

Change-Id: Ice3cbfe4863f14f6c1f75df212c62d1e370c5297
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoMerge "Add logger implementation to netconf-impl test scope"
Maros Marsalek [Tue, 31 May 2016 11:14:11 +0000 (11:14 +0000)]
Merge "Add logger implementation to netconf-impl test scope"

7 years agoMerge "Add Karaf CLI for NETCONF CRUD commands"
Tomas Cere [Tue, 31 May 2016 10:56:27 +0000 (10:56 +0000)]
Merge "Add Karaf CLI for NETCONF CRUD commands"

7 years agoMerge "Bump ietf-yang-library module to newest draft"
Tomas Cere [Tue, 31 May 2016 10:52:29 +0000 (10:52 +0000)]
Merge "Bump ietf-yang-library module to newest draft"

7 years agoAdd logger implementation to netconf-impl test scope 38/39638/2
Tomas Cere [Tue, 31 May 2016 10:33:21 +0000 (12:33 +0200)]
Add logger implementation to netconf-impl test scope

Also rethrow exceptions on failures in ConcurrentClientsTest to
make issues more apparent.

Change-Id: I3e907568c6a384f9512a81c05ae798e11972f607
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoMerge "Clean up a lot of JavaDoc etc. to conform to current Checkstyle rules"
Tomas Cere [Tue, 31 May 2016 07:04:42 +0000 (07:04 +0000)]
Merge "Clean up a lot of JavaDoc etc. to conform to current Checkstyle rules"

7 years agoMerge "Name Logger field LOG instead of _logger and make it static (Checkstyle)"
Tomas Cere [Tue, 31 May 2016 07:01:05 +0000 (07:01 +0000)]
Merge "Name Logger field LOG instead of _logger and make it static (Checkstyle)"

7 years agoMerge "Log exception instead of using printStackTrace, and warn instead debug."
Tomas Cere [Tue, 31 May 2016 06:58:36 +0000 (06:58 +0000)]
Merge "Log exception instead of using printStackTrace, and warn instead debug."

7 years agoClean up a lot of JavaDoc etc. to conform to current Checkstyle rules 20/39620/1
Michael Vorburger [Mon, 30 May 2016 17:41:35 +0000 (19:41 +0200)]
Clean up a lot of JavaDoc etc. to conform to current Checkstyle rules

Change-Id: I1b5613ad00633e6b59626dacca08f8c458f076f3
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoName Logger field LOG instead of _logger and make it static (Checkstyle) 19/39619/1
Michael Vorburger [Mon, 30 May 2016 17:24:27 +0000 (19:24 +0200)]
Name Logger field LOG instead of _logger and make it static (Checkstyle)

Change-Id: If57f5b6dda95345f0ae3fe4584507aef1c3e0e08
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoLog exception instead of using printStackTrace, and warn instead debug. 17/39617/1
Michael Vorburger [Mon, 30 May 2016 13:03:17 +0000 (15:03 +0200)]
Log exception instead of using printStackTrace, and warn instead debug.

The formatting etc. changes are done automatically now (eclipse-setup).

Bug 5980 root cause does not actually show up in log with this, but
still seems like a good idea.

Bug: 5980
Change-Id: Ib07f029b5350928e3f0d3c70bcc9dbc9cc3a318d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoReplace old yang parser usages in restconf 13/39613/2
Jakub Toth [Mon, 30 May 2016 16:10:08 +0000 (18:10 +0200)]
Replace old yang parser usages in restconf

Change-Id: Ib82a0577592f2e443120aea16bdfa329eba4c43b
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBump ietf-yang-library module to newest draft 94/39594/1
Jakub Morvay [Mon, 30 May 2016 11:03:51 +0000 (13:03 +0200)]
Bump ietf-yang-library module to newest draft

Bump ietf-yang-library yang module to confrom to
draft-ietf-netconf-yang-library-06 described in
https://tools.ietf.org/html/draft-ietf-netconf-yang-library-06

Change-Id: I765d14f1401f06aec33fe08299cc6df1413df0b4
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 5912 - Restconf draft11 - utils 61/39361/9
Ivan Hrasko [Tue, 24 May 2016 15:19:24 +0000 (17:19 +0200)]
Bug 5912 - Restconf draft11 - utils

Fixing bugs of Draft11 implementation found by unit tests
in RestconfSchemaServiceTest:
- wrong condition
in ParserIdentifier#toSchemaExportContextFromIdentifier
- slash at the end of mount point identifier
in ParserIdentifier#toInstanceIdentifier
- wrong condition at the end of the input
in YangInstanceIdentifierDeserializer#create
- module names validation

Change-Id: Ib4031fd6d2830a49845191d1792e695a19d04e93
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
8 years agoBug 5708: Schemaless netconf mount point 00/38300/5
Andrej Mak [Mon, 2 May 2016 14:37:29 +0000 (16:37 +0200)]
Bug 5708: Schemaless netconf mount point

Schemaless mount point can be used to connect to devices
which doesn't provide their schemas. In that case,
both rpc input and output must be of anyxml type.

Data broker and transactions works with anyxml too. Read transaction path
Yang instance identifier is transformed to xml filter structure
used in get-config rpc. Resulting data are selected from rpc-reply
according to path, wrapped in data element(to be able to return lists)
and returned as anyxml. Write transaction path is transformed to
xml structure. Data are appended to the last element of this structure.

This is done by SchemalessRpcStructureTransformer. It is strategy
used in NetconfBaseOps class. For standard mount points
NetconfRpcStructureTransformer is used.

Change-Id: I38c70fc6b676941ef6d731a52a6b12ae7c10eec6
Signed-off-by: Andrej Mak <andmak@cisco.com>
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoImprove SAXTransformerFactory instantiation 08/39408/3
Robert Varga [Wed, 25 May 2016 12:56:22 +0000 (14:56 +0200)]
Improve SAXTransformerFactory instantiation

This is just a correctness fix to follow the API contract.

Change-Id: Ia69b5b0d8d6b1ed8165cdeabbb4ff4278b9bfa12
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoMerge "Bug 5526 - Testing - Utils - Validation"
Tomas Cere [Tue, 24 May 2016 12:07:39 +0000 (12:07 +0000)]
Merge "Bug 5526 - Testing - Utils - Validation"

8 years agoFix for the Bug 3880 - inconsistent code fragments in netconf 78/39078/6
Dhevendran [Thu, 19 May 2016 04:56:01 +0000 (10:26 +0530)]
Fix for the Bug 3880 - inconsistent code fragments in netconf

Change-Id: If9094546b18c11cf1c2755253bc33be1c5a12907
Signed-off-by: Dhevendran <dhevendran.k@tcs.com>
8 years agoHOTFIX - Fix upgrade of jackson in ODL parent 49/39249/1
Jakub Toth [Mon, 23 May 2016 12:59:05 +0000 (14:59 +0200)]
HOTFIX - Fix upgrade of jackson in ODL parent

Change-Id: Ic2efcb0b825b9bf82899863e8bfe282c30b9369c
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoAdd Karaf CLI for NETCONF CRUD commands 61/36761/16
Rashmi Pujar [Fri, 25 Mar 2016 15:23:10 +0000 (11:23 -0400)]
Add Karaf CLI for NETCONF CRUD commands

Change-Id: I200151c3f8eea34d667f4a5187b69365931e0cb0
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
Signed-off by: Alexis de Talhouët <adetalhouet@inocybe.com>

8 years agoBug 5526 - Testing - SchemaContextHandler 06/38506/10
Jakub Toth [Fri, 6 May 2016 10:28:07 +0000 (12:28 +0200)]
Bug 5526 - Testing - SchemaContextHandler

Unit tests for SchemaContextHandlerImpl.

Change-Id: Iff1330700ecc0209aae2d6d1cf6d745b582ca506
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Testing - Utils - Validation 81/38581/7
Ivan Hrasko [Mon, 9 May 2016 13:50:55 +0000 (15:50 +0200)]
Bug 5526 - Testing - Utils - Validation

Unit tests for RestconfValidation.

Change-Id: I7b85149e6b634616503c06917d01e98cea6698ac
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
8 years agoBug 5900 - Jenkins RaceContiditions - problem between Jersey and RestconfProvider 78/38978/1
Jakub Toth [Tue, 17 May 2016 14:42:15 +0000 (16:42 +0200)]
Bug 5900 - Jenkins RaceContiditions - problem between Jersey and RestconfProvider

Change-Id: I2b87b53c0679eede0fdbdea9de69568c14367ea7
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoMerge "Implement getSessionListener in DummyMonitoringService"
Tomas Cere [Mon, 16 May 2016 13:25:47 +0000 (13:25 +0000)]
Merge "Implement getSessionListener in DummyMonitoringService"

8 years agoMerge "Refactor Logger in RestCodec"
Tomas Cere [Mon, 16 May 2016 12:30:54 +0000 (12:30 +0000)]
Merge "Refactor Logger in RestCodec"

8 years agoImplement getSessionListener in DummyMonitoringService 30/38930/1
Andrej Mak [Mon, 16 May 2016 12:26:24 +0000 (14:26 +0200)]
Implement getSessionListener in DummyMonitoringService

Returning null caused errors during connecting to testtool.

Change-Id: I62efccf5042c2e9084654c44262a19afbaeb1d3b
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoBug 5526 - Hotfix - Fix to register provider of restconf after init 80/38880/1
Jakub Toth [Fri, 13 May 2016 15:01:06 +0000 (17:01 +0200)]
Bug 5526 - Hotfix - Fix to register provider of restconf after init
restconf application in Jersey

  * moving load on startup of new restconf draft impl to 0

Change-Id: I394393d9ddaec6c935fcdd23e4eab6e47913c0f8
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5527 - Re-implement ControllerContext.toInstanceIdentifier() method 20/38420/15
Jakub Toth [Tue, 3 May 2016 05:30:58 +0000 (07:30 +0200)]
Bug 5527 - Re-implement ControllerContext.toInstanceIdentifier() method

  * create YangInstanceIdentifier serializer and deserializer
  * fix mount points

Change-Id: If97ced6cb14a11d9cd037f4b93a8f1c8fc984561
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoMerge "Bug 5526 - Added new servlet to the web.xml for new restconf implementation"
Tomas Cere [Tue, 10 May 2016 11:10:35 +0000 (11:10 +0000)]
Merge "Bug 5526 - Added new servlet to the web.xml for new restconf implementation"

8 years agoMerge "Remove unused jersey dependencies in RESTCONF and yanglib features"
Tomas Cere [Tue, 10 May 2016 08:48:48 +0000 (08:48 +0000)]
Merge "Remove unused jersey dependencies in RESTCONF and yanglib features"

8 years agoRemove unused jersey dependencies in RESTCONF and yanglib features 00/38600/1
Ryan Goulding [Mon, 9 May 2016 17:31:09 +0000 (13:31 -0400)]
Remove unused jersey dependencies in RESTCONF and yanglib features

Cleans up jersey dependencies in RESTCONF and yanglib features.

Change-Id: I0f0846ce77f20155429327a3d87ec7882422e582
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoAdd contextual logging to WebSocketServer and clean up formatting 69/38569/1
Ryan Goulding [Mon, 9 May 2016 11:36:27 +0000 (07:36 -0400)]
Add contextual logging to WebSocketServer and clean up formatting

Just adds some logging to WebSocketServer and cleans up formatting.  Since
the port is assigned as part of createInstance(...), the DEFAULT_PORT public
constant was removed to further support encapsulation.

Change-Id: I7f6922fd08d54d982d267ed50c860b76a31d0014
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoFix WebSocketServer allowed port range 42/38542/1
Ryan Goulding [Sun, 8 May 2016 00:43:09 +0000 (20:43 -0400)]
Fix WebSocketServer allowed port range

Operating systems generally limit binding to ports below 1024 to
super users.  However, 1024 is fine for normal users.  This change
augments the precondition check to allow for port 1024 if it is
specified.

Change-Id: I876ff1694371e0c71b94806a6a1b7dbf3b27950f
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoBug 5526 - Added new servlet to the web.xml for new restconf 40/37240/35
Jakub Toth [Sat, 7 May 2016 22:31:20 +0000 (18:31 -0400)]
Bug 5526 - Added new servlet to the web.xml for new restconf
implementation

  * application for new servlet
  * register SchemaContextListener via SchemaContextHandler

Change-Id: Ifb42aed73f7524a07174c0c5e966ca44bcb228d8
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoChange naming in testtool payload template 10/37810/6
miroslav.kovac [Tue, 19 Apr 2016 12:53:46 +0000 (14:53 +0200)]
Change naming in testtool payload template

Change-Id: Ib252a846645e6392222c8fe619cbe6bf0234d754
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Bug 3864: Notify netconf monitoring about changes in session"
Tomas Cere [Fri, 6 May 2016 10:45:30 +0000 (10:45 +0000)]
Merge "Bug 3864: Notify netconf monitoring about changes in session"

8 years agoMerge "Update comment and remove unwanted FIXME in SchemaSetup"
Tomas Cere [Fri, 6 May 2016 10:26:49 +0000 (10:26 +0000)]
Merge "Update comment and remove unwanted FIXME in SchemaSetup"

8 years agoUpdate comment and remove unwanted FIXME in SchemaSetup 67/38267/2
Alexis de Talhouët [Mon, 2 May 2016 12:19:38 +0000 (08:19 -0400)]
Update comment and remove unwanted FIXME in SchemaSetup

I don't think there is anything to fix here as the API
is defined as is. So I believe it works as designed.

Change-Id: Id750be7a8e2cf2a8756f056623118a9eba7f9914
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoBug 5526 - Remove jersey from features for restconf 89/36989/33
Jakub Toth [Thu, 31 Mar 2016 14:26:22 +0000 (16:26 +0200)]
Bug 5526 - Remove jersey from features for restconf

  * Jersey initialization is in the AAA project

Change-Id: I52c9ee5c481fa843915821cd4d295363c5634ea9
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Wrap providers of both implementations of restconf. 93/36493/42
Jakub Toth [Wed, 27 Apr 2016 13:15:57 +0000 (15:15 +0200)]
Bug 5526 - Wrap providers of both implementations of restconf.

Change-Id: Ic90c49f50d63d6ca99b149e69de236ef3172cb59
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Prepared provider for new implemantation 76/36176/42
Jakub Toth [Thu, 28 Apr 2016 06:40:16 +0000 (08:40 +0200)]
Bug 5526 - Prepared provider for new implemantation

Change-Id: I8d89b01b39d32b9491c7c4293c20820720a47b5c
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Supported MediaTypes from Draft11 in all writers from 07/36107/39
Jakub Toth [Fri, 11 Mar 2016 10:20:39 +0000 (11:20 +0100)]
Bug 5526 - Supported MediaTypes from Draft11 in all writers from
old restconf(reusing them in new)

Change-Id: Ibbc34d8bdd3b057c0d344764d8bf5c6021bb2ae7
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Implementation of SchemaContextHandler 06/36106/35
Jakub Toth [Fri, 11 Mar 2016 09:59:06 +0000 (10:59 +0100)]
Bug 5526 - Implementation of SchemaContextHandler

Change-Id: I8575639228e498a16b350a4134b9928089091b4f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Implementations of services 49/35949/51
Jakub Toth [Fri, 22 Apr 2016 09:49:40 +0000 (11:49 +0200)]
Bug 5526 - Implementations of services

  * used soft reference for schema context for holding the current schema
  * util classes for static methodes and constants for implementations
    of services

Change-Id: I5ddccc91feaf3ebfd7f8b40c2f954c4506995622
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 2343 - ODL remote YANG sources repository plugin 48/38348/8
Jakub Morvay [Tue, 3 May 2016 09:16:47 +0000 (11:16 +0200)]
Bug 2343 - ODL remote YANG sources repository plugin

ODL plugin functioning as a remote YANG sources repository.

Plugin takes YANG schema sources from specified directory and provides
them through web service.

Change-Id: I93370af60e53dc0acafb844422adeea2abccf7a0
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoBug 2343 - Sideload of models for nodes from remote yang sources repository 30/37630/9
Maros Marsalek [Sun, 19 Jul 2015 11:19:47 +0000 (13:19 +0200)]
Bug 2343 - Sideload of models for nodes from remote yang sources repository

Add support for sideloading schemas for devices from remote yang
schemas sources repositories.

Remote repository is queried for list of provided models and URLs
representing their schemas resources. These schemas are preregistered
to device schema registry as fallback schemas.

Change-Id: Iba3d77dd1a868a89a2f260ed751e36250fa30a47
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoRefactor Logger in RestCodec 79/38479/1
Dileep [Thu, 5 May 2016 10:28:54 +0000 (03:28 -0700)]
Refactor Logger in RestCodec

Add missing static keyword to Logger objects.
Rename Logger constants to match naming conventions.

Change-Id: I86cb061496ea2d422be406a74ef259cf00020db6
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
8 years agoMerge "Add NetconfDevice builder class"
Tomas Cere [Wed, 4 May 2016 13:28:56 +0000 (13:28 +0000)]
Merge "Add NetconfDevice builder class"

8 years agoMerge "Find the most recent notification"
Tomas Cere [Wed, 4 May 2016 13:02:54 +0000 (13:02 +0000)]
Merge "Find the most recent notification"

8 years agoAdd NetconfDevice builder class 89/35589/8
miroslav.kovac [Tue, 1 Mar 2016 15:11:06 +0000 (16:11 +0100)]
Add NetconfDevice builder class

Parameters in constructor are reduced by creating a builder class.
Now we can use a NetconfDeviceBuilder in constructor which checks
if all needed parameters are present and sets all the variables
as before.

Change-Id: I8bf2c40b80c26faa99b299b7b7f98e824a963f3a
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Add some validations and new arguments"
Tomas Cere [Wed, 4 May 2016 12:48:59 +0000 (12:48 +0000)]
Merge "Add some validations and new arguments"

8 years agoMerge "Add a batching system in Netconf testtool"
Tomas Cere [Wed, 4 May 2016 12:47:52 +0000 (12:47 +0000)]
Merge "Add a batching system in Netconf testtool"

8 years agoFind the most recent notification 80/35680/8
miroslav.kovac [Thu, 3 Mar 2016 12:32:09 +0000 (13:32 +0100)]
Find the most recent notification

If multiple revisions for same notifications are present
it will pick the most recent one. It will iterate through
all of the notifications and it will pick the one with most
recent revision date. StripNotification function is also moved
to NetconfMessageTransformUtil class together with
EVENT_TIME_FORMAT which is needed for this function.

Change-Id: Ibd9fe800d75f877ead03162b42895b322288b62e
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoBug 5526 - Mark old services methods with @Deprecated 08/38008/8
Jakub Toth [Fri, 22 Apr 2016 09:12:40 +0000 (11:12 +0200)]
Bug 5526 - Mark old services methods with @Deprecated

Change-Id: I8f65897d45327d2bf257f51fc541f9fc1210cc08
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoAdd some validations and new arguments 48/36248/6
miroslav.kovac [Tue, 15 Mar 2016 14:09:24 +0000 (15:09 +0100)]
Add some validations and new arguments

It validates some new parameters.Also thread pool size
and Ip of socket address is configurable. We can set
them using program arguments.

Change-Id: I4af24500ca0650c0c5a922d41b292c573ac78400
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoAdd a batching system in Netconf testtool 47/36747/5
miroslav.kovac [Tue, 22 Mar 2016 10:12:34 +0000 (11:12 +0100)]
Add a batching system in Netconf testtool

We can now set how many devices will be configured
in one request. It can be done asynchronously or
synchronously. It s configured using json file
instead of XML.

Change-Id: Ic4d666b21771e8cebdaaa1fabb246ac482bd8ef9
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoBug 3864: Notify netconf monitoring about changes in session 09/36809/8
Andrej Mak [Tue, 29 Mar 2016 09:26:28 +0000 (11:26 +0200)]
Bug 3864: Notify netconf monitoring about changes in session

According to https://tools.ietf.org/html/rfc6022#section-2.1.4,
netconf-state/sessions should contain number of received rpcs, notifications etc.
Because of performance reasons, data tree is not updated after every message, but
NetconfSessionMonitoringService periodically publish updates with changed sessions
to its session listeners. MonitoringToMdsalWriter writes changes to datastore.

Change-Id: I5cdc2a18a036541fd23f430be6e19ba395ca62c9
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoMerge "Fix for Eclipse to not choke on this line of Java Generic (was red) "
Tomas Cere [Mon, 2 May 2016 12:28:35 +0000 (12:28 +0000)]
Merge "Fix for Eclipse to not choke on this line of Java Generic (was red) "

8 years agoFixed 3 tests which were clearly put in wrong directory 62/38262/1
Michael Vorburger [Mon, 2 May 2016 10:20:06 +0000 (12:20 +0200)]
Fixed 3 tests which were clearly put in wrong directory

Physical directory location and Java package declaration must match

Change-Id: Ie13abea34024aca40a0f47625d4ed2f6ad8a42ee
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
8 years agoFix for Eclipse to not choke on this line of Java Generic (was red) 61/38261/1
Michael Vorburger [Mon, 2 May 2016 10:17:31 +0000 (12:17 +0200)]
Fix for Eclipse to not choke on this line of Java Generic (was red)

JDT has subtle differences to undocumented JLS re. generics vs javac

Change-Id: Ifd2f5c5e104d112026092ef9be8428271e2f1d91
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
8 years agoBug 5676 - Mark old restconf draft like depricated 07/38007/6
Jakub Toth [Thu, 21 Apr 2016 14:28:34 +0000 (16:28 +0200)]
Bug 5676 - Mark old restconf draft like depricated

Change-Id: Iba80160b2dec0af4af64d50dfae3ec35276bd70d
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoMerge "Make rest-perf-client modify the {DEVICE_PORT} tag in payloads"
Tony Tkacik [Tue, 26 Apr 2016 08:43:16 +0000 (08:43 +0000)]
Merge "Make rest-perf-client modify the {DEVICE_PORT} tag in payloads"

8 years agoMerge "Fix NetconfDevice schema setup"
Tomas Cere [Mon, 25 Apr 2016 13:11:10 +0000 (13:11 +0000)]
Merge "Fix NetconfDevice schema setup"

8 years agoMerge changes Ia25fc20d,I0b2ff209,I33768fc9
Tomas Cere [Mon, 25 Apr 2016 13:02:42 +0000 (13:02 +0000)]
Merge changes Ia25fc20d,I0b2ff209,I33768fc9

* changes:
  Bug 5526 - Handling schema context for restconf
  Bug 5526 - Restconf services api + RestconfConstants
  Bug 5676 - Base draft util class for media types and modules

8 years agoFix NetconfDevice schema setup 41/38041/3
Alexis de Talhouët [Fri, 22 Apr 2016 23:41:50 +0000 (19:41 -0400)]
Fix NetconfDevice schema setup

I don't know exactly where, but it seems like SchemaResolutionException
can wraps a MissingSchemaSourceException thus breaking the schema setup
mechanism.

Change-Id: I2fb20294e95d877598199b02d6e6474781addc0b
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoMerge "Bug 3863: Add onSessionStart and onSessionEnd notification support"
Tomas Cere [Mon, 25 Apr 2016 11:21:57 +0000 (11:21 +0000)]
Merge "Bug 3863: Add onSessionStart and onSessionEnd notification support"

8 years agoBug 5526 - Handling schema context for restconf 48/35948/27
Jakub Toth [Tue, 8 Mar 2016 15:13:23 +0000 (16:13 +0100)]
Bug 5526 - Handling schema context for restconf

Change-Id: Ia25fc20d73b844960fe5d9a6b845f73690390aac
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Restconf services api + RestconfConstants 74/35874/25
Jakub Toth [Mon, 7 Mar 2016 10:18:47 +0000 (11:18 +0100)]
Bug 5526 - Restconf services api + RestconfConstants

Change-Id: I0b2ff2099dfaa8e064893525c7ea4a56168bbcdb
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5676 - Base draft util class for media types and modules 73/35873/21
Jakub Toth [Mon, 7 Mar 2016 10:14:46 +0000 (11:14 +0100)]
Bug 5676 - Base draft util class for media types and modules

Change-Id: I33768fc91cedc55549e7e2ee62c74e58ece738ed
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoFix test failures in NetconfClientDispatcherModuleTest 42/38042/1
Tom Pantelis [Sun, 24 Apr 2016 05:12:57 +0000 (01:12 -0400)]
Fix test failures in NetconfClientDispatcherModuleTest

The implementations of NettyThreadgroupModule and NettyThreadgroupModule
HashedWheelTimerModule in the controller were recently changed - they
now obtain the service instance via the OSGi service registry therefore
several BundleContext methods must be mocked appropriately.

Change-Id: I83c77b0e5199ba73f4fd9e9d3f5ae93a0222f7a7
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoMerge "caching the same capabilities for devices using Interner."
Tomas Cere [Fri, 22 Apr 2016 10:21:27 +0000 (10:21 +0000)]
Merge "caching the same capabilities for devices using Interner."