netconf.git
10 years agoMerge "Added resource /streams/stream/<streamName>"
Ed Warnicke [Wed, 5 Feb 2014 06:37:28 +0000 (06:37 +0000)]
Merge "Added resource /streams/stream/<streamName>"

10 years agoMerge "Added support for /modules, /modules/module, /operations resources"
Ed Warnicke [Wed, 5 Feb 2014 06:36:47 +0000 (06:36 +0000)]
Merge "Added support for /modules, /modules/module, /operations resources"

10 years agoAdded resource /streams/stream/<streamName>
Martin Sunal [Sun, 2 Feb 2014 23:26:58 +0000 (00:26 +0100)]
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>
10 years agoAdded support for /modules, /modules/module, /operations resources
Jozef Gloncak [Mon, 3 Feb 2014 12:56:13 +0000 (13:56 +0100)]
Added support for /modules, /modules/module, /operations resources

support for:
/restconf/modules
/restconf/modules/pathToMountPoint/yang-ext:mount
/restconf/modules/module/moduleName/revision
/restconf/modules/module/pathToMountPoint/yang-ext:mount/moduleName/revision
/restconf/operations
/restconf/operations/pathToMountPoint/yang-ext:mount

revision must be in format "yyyy-MM-dd"

test for URIs:
- /modules
- /modules/module/<module_name>/<module_revision>
- /operations
- /modules/......./yang-ext:mount
- /modules/module/........../yang-ext:mount/<module_name>/<module_revision>
- /operations/........../yang-ext:mount

Change-Id: I7169a25024598dd3b49d7960d1ef90bc40c5d1d5
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoMerge "Removed unused code from md-sal."
Ed Warnicke [Mon, 3 Feb 2014 22:49:16 +0000 (22:49 +0000)]
Merge "Removed unused code from md-sal."

10 years agoMerge changes I805ec065,Idc9995b1
Ed Warnicke [Sat, 1 Feb 2014 16:09:03 +0000 (16:09 +0000)]
Merge changes I805ec065,Idc9995b1

* changes:
  Change unprotected netconf address from 0.0.0.0 to 127.0.0.1 .
  Refactor config-persister: clean up exception handling and netconf client.

10 years agoMerge changes Iae4ee2f2,I148c22c4,I1dab84ae
Ed Warnicke [Sat, 1 Feb 2014 16:07:41 +0000 (16:07 +0000)]
Merge changes Iae4ee2f2,I148c22c4,I1dab84ae

* changes:
  Additional test for instance-identifier
  BUG 388: corrected media type in /operations resource
  BUG 312: Removed legacy RESTCONF draft 01 syntax

10 years agoMerge "minor test fix"
Ed Warnicke [Sat, 1 Feb 2014 16:00:23 +0000 (16:00 +0000)]
Merge "minor test fix"

10 years agoMerge "Add configurable connection timeout to netconf client."
Ed Warnicke [Sat, 1 Feb 2014 15:59:14 +0000 (15:59 +0000)]
Merge "Add configurable connection timeout to netconf client."

10 years agoAdditional test for instance-identifier
Jozef Gloncak [Mon, 27 Jan 2014 14:19:35 +0000 (15:19 +0100)]
Additional test for instance-identifier

- test for instance identifier
- correction of ignored test (adding revisions to wrong tests)
- instance identifier with leaflist predicate:
-- serialize codec
-- XML output
-- JSON output

Change-Id: Iae4ee2f2ff3c1b3445958f1d69673df9f56b0e2a
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoBUG 388: corrected media type in /operations resource
Martin Sunal [Thu, 30 Jan 2014 15:50:05 +0000 (16:50 +0100)]
BUG 388: corrected media type in /operations resource

There were added these media types for /operations resource:
application/yang.operation+json
application/yang.operation+xml
Corrected handling of requests which have empty body and Content-Type has some value or is missing

Change-Id: I148c22c4c6c28d0d13f2b717fe629b42d5c73f70
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoChange unprotected netconf address from 0.0.0.0 to 127.0.0.1 .
Tomas Olvecky [Fri, 31 Jan 2014 14:13:40 +0000 (15:13 +0100)]
Change unprotected netconf address from 0.0.0.0 to 127.0.0.1 .

Plaintext netconf server was bound to any local interface. This is a security risk
because there is no authentication. The ssh server should be used as public endpoint instead.

Change-Id: I805ec065548e017dd2244d37e3275d379761e490
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoRefactor config-persister: clean up exception handling and netconf client.
Tomas Olvecky [Fri, 31 Jan 2014 13:51:08 +0000 (14:51 +0100)]
Refactor config-persister: clean up exception handling and netconf client.

Split ConfigPersisterNotificationHandler into registrator and listener, remove unnecessary
reference to NetconfClient.
Refactor ConfigPusher: each method now returns computational results instead of void. Avoid
unnecessary NetconfClient reference leak - close it after every use. Rename generic 'timeout'
to 'maxWaitForCapabilitiesMillis'. Avoid throwing and catching SAXException and IOException
as there is no recovery from them; keep only ConflictingVersionException.
ConfigPersisterActivator now actually uses the configurable timeout, the property is renamed
from 'pushTimeout' to 'maxWaitForCapabilitiesMillis'.

Change-Id: Idc9995b11dd2f19a90598c88eb7337d39d63fc27
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agominor test fix
Martin Bobak [Fri, 31 Jan 2014 09:26:36 +0000 (10:26 +0100)]
minor test fix

Change-Id: I3dce2b98d5d7452a9363150b91827eb3dcc03e60
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoRemoved unused code from md-sal.
Martin Vitez [Thu, 30 Jan 2014 14:15:45 +0000 (15:15 +0100)]
Removed unused code from md-sal.

Change-Id: Ia64a118ec7c75d0abf5800f7eee98ae708b8e50a
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdd configurable connection timeout to netconf client.
Tomas Olvecky [Thu, 23 Jan 2014 16:03:17 +0000 (17:03 +0100)]
Add configurable connection timeout to netconf client.

Make connection timeout configurable. Previous behavior was having hardcoded connection timeout set to 1 minute.
Make NetconfConnectorModule more configurable, allow (and this is new default) to retry on connection failures forever.

Change-Id: Ia9280cff1b751a4e7318e1e0331175c960823dad
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoBUG 312: Removed legacy RESTCONF draft 01 syntax
Martin Sunal [Thu, 30 Jan 2014 14:26:54 +0000 (15:26 +0100)]
BUG 312: Removed legacy RESTCONF draft 01 syntax

Change-Id: I1dab84ae70ef39964ead1b14efd58ae2e3eee087
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoMerge "Add javadoc generation for yang modules in netconf subsystem"
Ed Warnicke [Thu, 30 Jan 2014 11:02:43 +0000 (11:02 +0000)]
Merge "Add javadoc generation for yang modules in netconf subsystem"

10 years agoMerge "BUG 340: Resolved instance-identifier translation in JSON"
Ed Warnicke [Thu, 30 Jan 2014 10:28:04 +0000 (10:28 +0000)]
Merge "BUG 340: Resolved instance-identifier translation in JSON"

10 years agoMerge "BUG 392: Resolved translation to JSON behind mount point"
Ed Warnicke [Thu, 30 Jan 2014 10:23:52 +0000 (10:23 +0000)]
Merge "BUG 392: Resolved translation to JSON behind mount point"

10 years agoBUG 340: Resolved instance-identifier translation in JSON
Martin Sunal [Mon, 27 Jan 2014 15:15:30 +0000 (16:15 +0100)]
BUG 340: Resolved instance-identifier translation in JSON

Change-Id: Ia8853c00798674251b39941a675e9c359aa68a00
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoBUG 392: Resolved translation to JSON behind mount point
Martin Sunal [Mon, 27 Jan 2014 14:49:44 +0000 (15:49 +0100)]
BUG 392: Resolved translation to JSON behind mount point

Change-Id: Icee18d06679dcfa935b4c832b0b6673936d60a10
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoAdd javadoc generation for yang modules in netconf subsystem
Maros Marsalek [Wed, 29 Jan 2014 11:48:39 +0000 (12:48 +0100)]
Add javadoc generation for yang modules in netconf subsystem

Added org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl generator
to yang-maven-plugin configuration in order to generate informational html page about yang modules.

Affected yang modules: ietf-netconf-monitoring, ietf-netconf-monitoring-extension.

Change-Id: I83d3089256a21515cc4fb3320a81956af590e1ce
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years ago[maven-release-plugin] prepare for next development iteration
jenkins-controller [Mon, 27 Jan 2014 20:51:03 +0000 (20:51 +0000)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release master-tagforprepareonly-controller-bulk-relea...
jenkins-controller [Mon, 27 Jan 2014 20:50:53 +0000 (20:50 +0000)]
[maven-release-plugin] prepare release master-tagforprepareonly-controller-bulk-release-2-1

10 years agoMerge "Prevent ConfigPusher from killing its thread"
Ed Warnicke [Mon, 27 Jan 2014 14:43:33 +0000 (14:43 +0000)]
Merge "Prevent ConfigPusher from killing its thread"

10 years agoMerge changes I8c23739a,Ia0e70828
Ed Warnicke [Mon, 27 Jan 2014 14:11:06 +0000 (14:11 +0000)]
Merge changes I8c23739a,Ia0e70828

* changes:
  Bulk-add copyright headers to java files
  Bulk-add copyright headers to .xtend files

10 years agoPrevent ConfigPusher from killing its thread
Robert Varga [Mon, 27 Jan 2014 13:51:10 +0000 (14:51 +0100)]
Prevent ConfigPusher from killing its thread

The original code promoted pretty much every error to an unhandled
RuntimeException. Use the exceptions already in place to handle erros
occuring. Also handle IO error as a retriable operation.

Change-Id: I666d66e89993f0f9d18afb6ec680e64a50cefec1
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFix for dry run
Ed Warnicke [Mon, 27 Jan 2014 03:18:34 +0000 (03:18 +0000)]
Fix for dry run

Removed unneeded variables from commons/opendaylight/pom.xml
Expanded dependencyManagement in commons/opendaylight/pom.xml
Added explicte dependency on sanitytest to distribution pom.xml
Fixed dependencies in two integration tests
Removed module archetypes from pom.xml
Moved third-party/ganymed build from netconf to root pom.xml

Change-Id: Id4d1586bd86f375fa2bd4b64faf28682d402e4e9
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoBulk-add copyright headers to java files
Robert Varga [Sun, 26 Jan 2014 23:00:09 +0000 (00:00 +0100)]
Bulk-add copyright headers to java files

Change-Id: I8c23739a21f3f6cecb138f62a54efbabf03b9c55
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBulk-add copyright headers to .xtend files
Robert Varga [Sun, 26 Jan 2014 23:00:50 +0000 (00:00 +0100)]
Bulk-add copyright headers to .xtend files

Change-Id: Ia0e70828399607e3e5b4193e01200420f85c0a8a
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Improve logging to indicate when configuration has been pushed"
Ed Warnicke [Sun, 26 Jan 2014 22:46:43 +0000 (22:46 +0000)]
Merge "Improve logging to indicate when configuration has been pushed"

10 years agoMerge "Instance identifier support"
Ed Warnicke [Sun, 26 Jan 2014 20:56:12 +0000 (20:56 +0000)]
Merge "Instance identifier support"

10 years agoImprove logging to indicate when configuration has been pushed
Robert Varga [Sun, 26 Jan 2014 20:42:27 +0000 (21:42 +0100)]
Improve logging to indicate when configuration has been pushed

Change-Id: I1abe5cfc6704300fba12785edda94a2f24aad562
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Improve client logging"
Ed Warnicke [Sun, 26 Jan 2014 18:41:43 +0000 (18:41 +0000)]
Merge "Improve client logging"

10 years agoInstance identifier support
Martin Sunal [Sat, 25 Jan 2014 14:03:11 +0000 (15:03 +0100)]
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>
10 years agoMerge "Add support for identity-ref config attributes to config/netconf subsystem"
Ed Warnicke [Sun, 26 Jan 2014 03:41:08 +0000 (03:41 +0000)]
Merge "Add support for identity-ref config attributes to config/netconf subsystem"

10 years agoAdd support for identity-ref config attributes to config/netconf subsystem
Robert Varga [Fri, 24 Jan 2014 10:53:13 +0000 (11:53 +0100)]
Add support for identity-ref config attributes to config/netconf subsystem

Change-Id: I79d5147f1d6bb1acd6b5a374bb76f48b6a3aaf55
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoExtract dom-serializer-api|impl from binding-broker-impl
Tony Tkacik [Sat, 25 Jan 2014 17:29:57 +0000 (18:29 +0100)]
Extract dom-serializer-api|impl from binding-broker-impl

Change-Id: I1b2844bfac5062fd15c1f011c3104b3dddb33b51
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoImprove client logging
Robert Varga [Sat, 25 Jan 2014 15:47:26 +0000 (16:47 +0100)]
Improve client logging

This logs the cause of the failure to instantiate client and excalates
it to info if it's not done in 30 attempts.

Change-Id: Ibd5ccd657becb1aafeb816e822708e605cc0144a
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoSmall fix to finally fix dryrun.
Ed Warnicke [Sat, 25 Jan 2014 03:54:07 +0000 (21:54 -0600)]
Small fix to finally fix dryrun.

Turns out that the lack of directory hiearchy matching
our pom hierarchy requires some redeclaration of
properties.

Change-Id: I5b608ba9599ac5d9d54d1898f4f45f68001ada5e
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoMerge "Remove dependency on Exificient due to licensing incompatibility"
Giovanni Meo [Fri, 24 Jan 2014 15:50:47 +0000 (15:50 +0000)]
Merge "Remove dependency on Exificient due to licensing incompatibility"

10 years agoMerge "Yangtools version police: remove references to non-current versions"
Giovanni Meo [Fri, 24 Jan 2014 14:50:51 +0000 (14:50 +0000)]
Merge "Yangtools version police: remove references to non-current versions"

10 years agoMerge "Added test for MouontPoints and URI"
Ed Warnicke [Fri, 24 Jan 2014 14:18:24 +0000 (14:18 +0000)]
Merge "Added test for MouontPoints and URI"

10 years agoRemove dependency on Exificient due to licensing incompatibility
Robert Varga [Fri, 24 Jan 2014 10:57:06 +0000 (11:57 +0100)]
Remove dependency on Exificient due to licensing incompatibility

Exificient is licensed under GPLv2 with no intention to add the
classpath exception (witnessed in at
http://sourceforge.net/p/exificient/discussion/856595/thread/6017013e/).
Remove all dependencies on it, pending reimplementation using a more
open library (OpenEXI looks like a good candidate).

Change-Id: I589367be593ebc275c7551d9e6008b74d8461de5
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoYangtools version police: remove references to non-current versions
Robert Varga [Fri, 24 Jan 2014 12:37:37 +0000 (13:37 +0100)]
Yangtools version police: remove references to non-current versions

Unifies the version property to yangtools.version, force restconf to use
the versions specified in the md-sal parent and bump its reference to
restconf-api to 0.6.0-SNAPSHOT.

Change-Id: I7b4820cf3995cd3dd3f108dd8b935ee38c62ea56
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdded test for MouontPoints and URI
Ladislav Borak [Wed, 22 Jan 2014 12:05:42 +0000 (13:05 +0100)]
Added test for MouontPoints and URI

Change-Id: Ibb18ac011f0523e18595e4fff0900a492d3c5e25
Signed-off-by: Ladislav Borak <lborak@cisco.com>
10 years agoMerge "Fix config transaction handling in netconf."
Ed Warnicke [Thu, 23 Jan 2014 23:42:28 +0000 (23:42 +0000)]
Merge "Fix config transaction handling in netconf."

10 years agoMerge "sal-remote yang"
Ed Warnicke [Thu, 23 Jan 2014 23:42:08 +0000 (23:42 +0000)]
Merge "sal-remote yang"

10 years agoFix config transaction handling in netconf.
Tomas Olvecky [Thu, 23 Jan 2014 17:20:29 +0000 (18:20 +0100)]
Fix config transaction handling in netconf.

When config manager fails a transaction because of optimistic lock failure, netconf
must clean up this transaction as well. Fix TransactionProvider to abort transaction
if commit fails. Only exception is ValidationException where user should
have an option to fix the configuration and commit again.

Turn off netconf client reuse in persister: this narrows the possibility of
hitting concurrent modification with other config transactions. Each retry
to push a snapshot is now done with a newly obtained client, so new transaction
will be started each time.

Change-Id: I4d49fea10a682e4d7cd85ab49f2b78be63a84c02
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agosal-remote yang
Martin Bobak [Tue, 14 Jan 2014 15:28:24 +0000 (16:28 +0100)]
sal-remote yang

Change-Id: I7aaa6b341ce3199b3f90ed59b5d64f470f80d7b8
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoMerge "Change target to ${project.build.target} in a bunch of pom file. Add some...
Giovanni Meo [Thu, 23 Jan 2014 09:05:39 +0000 (09:05 +0000)]
Merge "Change target to ${project.build.target} in a bunch of pom file. Add some xtend-gen source dir to the build path. The commit purpose is to eliminate errors in eclipse."

10 years agoMerge "Make configuration push timeout configurable"
Ed Warnicke [Thu, 23 Jan 2014 03:40:29 +0000 (03:40 +0000)]
Merge "Make configuration push timeout configurable"

10 years agoMerge "Fixed inappropriate uses of log level INFO"
Alessandro Boch [Wed, 22 Jan 2014 23:40:53 +0000 (23:40 +0000)]
Merge "Fixed inappropriate uses of log level INFO"

10 years agoFixed inappropriate uses of log level INFO
Ed Warnicke [Sun, 19 Jan 2014 23:33:16 +0000 (17:33 -0600)]
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>
10 years agoChange target to ${project.build.target} in a bunch of pom file.
Elek Jani [Wed, 22 Jan 2014 09:55:30 +0000 (10:55 +0100)]
Change target to ${project.build.target} in a bunch of pom file.
Add some xtend-gen source dir to the build path.
The commit purpose is to eliminate errors in eclipse.

Change-Id: I90727a0096154d7633f4b6cc309dcc09c9a51678
Signed-off-by: Elek Jani <elekjani@gmail.com>
10 years agoMake configuration push timeout configurable
Robert Varga [Wed, 22 Jan 2014 16:24:16 +0000 (17:24 +0100)]
Make configuration push timeout configurable

This patch adds the option to specify a the pusher timeout, such that it
can be made either shorter or longer than the default 2 minutes.

Another improvement is the use of System.nanoTime(), making the deadline
work in face of calender time changing.

Change-Id: Ia8b596c7cd285695696fa5074f7d1f23c2b8b560
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Move NetconfUtil to netconf-util."
Ed Warnicke [Wed, 22 Jan 2014 13:29:09 +0000 (13:29 +0000)]
Merge "Move NetconfUtil to netconf-util."

10 years agoMove NetconfUtil to netconf-util.
Tomas Olvecky [Tue, 21 Jan 2014 16:24:29 +0000 (17:24 +0100)]
Move NetconfUtil to netconf-util.

Implement simple acceptance netconf client test that can connect to a remote machine. Clean up
helper functions from netconf-impl and persister-impl to netconf-util.

Change-Id: I1dd221822c6e6fff69388f65c4df3bb39fa21d60
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Fix bug in hello message: module with more revisions."
Ed Warnicke [Wed, 22 Jan 2014 04:48:44 +0000 (04:48 +0000)]
Merge "Fix bug in hello message: module with more revisions."

10 years agoMerge "fix of Bug 314"
Ed Warnicke [Wed, 22 Jan 2014 04:46:53 +0000 (04:46 +0000)]
Merge "fix of Bug 314"

10 years agoMerge "Tests for loading data with augmented schema nodes with equal names"
Ed Warnicke [Wed, 22 Jan 2014 04:12:29 +0000 (04:12 +0000)]
Merge "Tests for loading data with augmented schema nodes with equal names"

10 years agoMerge "InputStream for RSA file should not be static"
Ed Warnicke [Wed, 22 Jan 2014 02:46:01 +0000 (02:46 +0000)]
Merge "InputStream for RSA file should not be static"

10 years agoMerge "Changed codec for Identityref in JSON transformation"
Ed Warnicke [Wed, 22 Jan 2014 02:45:31 +0000 (02:45 +0000)]
Merge "Changed codec for Identityref in JSON transformation"

10 years agofix of Bug 314
Martin Sunal [Mon, 20 Jan 2014 17:10:47 +0000 (18:10 +0100)]
fix of Bug 314

- corrected POST operation

Change-Id: Ia5cbf9dcf662c15dc8c25f0dada359e78091ee87
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoFix bug in hello message: module with more revisions.
Tomas Olvecky [Tue, 21 Jan 2014 14:26:39 +0000 (15:26 +0100)]
Fix bug in hello message: module with more revisions.

When yang store discovers new yang files, it should keep all modules
provided by the parser. The old behavior was that only only one
module instance was chosen. This change results in hello message
containing all revisions of all modules.

Change-Id: I5f580042303573fb4fd2d592846763d46bbb1d66
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoTests for loading data with augmented schema nodes with equal names
Jozef Gloncak [Tue, 21 Jan 2014 12:06:48 +0000 (13:06 +0100)]
Tests for loading data with augmented schema nodes with equal names

Tests loading and normalization of JSON and XML data to composite/simple node structure when
schema node structure contains several nodes with equal name which were
added through augmentation.

Change-Id: I18d00ace7b3f7a4bd3c757330024798cec890784
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoInputStream for RSA file should not be static
Martin Bobak [Mon, 20 Jan 2014 14:54:56 +0000 (15:54 +0100)]
InputStream for RSA file should not be static

- input stream is used in AuthProvider constructor
  and closed

Change-Id: I4c498062a6f76eb43a86a0c4a1e1648f8cee01a3
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoChanged codec for Identityref in JSON transformation
Martin Sunal [Mon, 20 Jan 2014 11:39:25 +0000 (12:39 +0100)]
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>
10 years agoUse version 0.6.0-SNAPSHOT of yangtools everywhere in controller.
Tomas Olvecky [Thu, 16 Jan 2014 09:50:38 +0000 (10:50 +0100)]
Use version 0.6.0-SNAPSHOT of yangtools everywhere in controller.

As of yangtools commit f5e9689b95d945c22c7a38870681cab899326de9, all projects
in yangtools repo have version 0.6.0-SNAPSHOT. This commit bumps all
yangtools dependencies to this version.

Change-Id: I4aab7c67ee7ce99618a8935cb6b6fecc5688aace
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Move protocol framework from BGPCEP project"
Ed Warnicke [Sat, 18 Jan 2014 20:00:25 +0000 (20:00 +0000)]
Merge "Move protocol framework from BGPCEP project"

10 years agoMerge "Fix thread safety issue with StartExi operation"
Ed Warnicke [Sat, 18 Jan 2014 19:10:44 +0000 (19:10 +0000)]
Merge "Fix thread safety issue with StartExi operation"

10 years agoMove protocol framework from BGPCEP project
Robert Varga [Thu, 16 Jan 2014 10:58:29 +0000 (11:58 +0100)]
Move protocol framework from BGPCEP project

This moves the current parts of BGPCEP protocol framework into the
controller project, eliminating the circular dependency forced by
netconf being resident in this project.

Change-Id: I7c8457ebaec5c261217587d60a95a7b35e473d1e
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoRemove dependecies on bgpcep concepts/util
Robert Varga [Thu, 16 Jan 2014 09:49:24 +0000 (10:49 +0100)]
Remove dependecies on bgpcep concepts/util

Change-Id: I2d1c1175ee06e77e0d6e3a31b98cd44843572bc6
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Do not instantiate constant lists on each message"
Ed Warnicke [Sat, 18 Jan 2014 18:33:04 +0000 (18:33 +0000)]
Merge "Do not instantiate constant lists on each message"

10 years agoMerge "Switch to using yangtools version of mockito-configuration"
Ed Warnicke [Sat, 18 Jan 2014 18:32:37 +0000 (18:32 +0000)]
Merge "Switch to using yangtools version of mockito-configuration"

10 years agoMerge "Switch testing configuration for md-sal tests to xml."
Ed Warnicke [Sat, 18 Jan 2014 17:49:44 +0000 (17:49 +0000)]
Merge "Switch testing configuration for md-sal tests to xml."

10 years agoMerge "Refactor shutdown-impl: add parameter to RPC, remove secret validation and...
Ed Warnicke [Sat, 18 Jan 2014 17:01:03 +0000 (17:01 +0000)]
Merge "Refactor shutdown-impl: add parameter to RPC, remove secret validation and masking."

10 years agoMerge "Changed mount point URI decoding in restconf"
Ed Warnicke [Fri, 17 Jan 2014 17:44:41 +0000 (17:44 +0000)]
Merge "Changed mount point URI decoding in restconf"

10 years agoFix thread safety issue with StartExi operation
Robert Varga [Thu, 16 Jan 2014 13:45:08 +0000 (14:45 +0100)]
Fix thread safety issue with StartExi operation

Change-Id: Iad5e211733bab4ecf278d0b862a5bc15fbc572fa
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoDo not instantiate constant lists on each message
Robert Varga [Thu, 16 Jan 2014 09:23:19 +0000 (10:23 +0100)]
Do not instantiate constant lists on each message

These really are constats, so treat them as such

Change-Id: I850095e2e0aaab19f69b7d8bfc6ea734d1bd4877
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoSwitch to using yangtools version of mockito-configuration
Robert Varga [Thu, 16 Jan 2014 15:51:42 +0000 (16:51 +0100)]
Switch to using yangtools version of mockito-configuration

This commit switches to use the artifact from yangtools repository
introduced in https://git.opendaylight.org/gerrit/#/c/4316/, completing
purge of bgpcep dependencies.

Change-Id: I000ddbb237a8a6c6cf9e9a44baa9a6dd93badc0f
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoChanged mount point URI decoding in restconf
Jozef Gloncak [Fri, 17 Jan 2014 14:39:45 +0000 (15:39 +0100)]
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>
10 years agoSwitch testing configuration for md-sal tests to xml.
Maros Marsalek [Fri, 17 Jan 2014 13:04:15 +0000 (14:04 +0100)]
Switch testing configuration for md-sal tests to xml.

+ Fix bug regarding leading/tailing whitespace in capability string unmarshalled from xml.

Change-Id: Ia0de5cbef33f521c5e99d6ffd91c9631b0192b53
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Add missing headers to config, netconf subsystems"
Ed Warnicke [Wed, 15 Jan 2014 21:15:45 +0000 (21:15 +0000)]
Merge "Add missing headers to config, netconf subsystems"

10 years agoMerge "Remove System.out from netconf tests"
Ed Warnicke [Wed, 15 Jan 2014 21:14:28 +0000 (21:14 +0000)]
Merge "Remove System.out from netconf tests"

10 years agoRefactor shutdown-impl: add parameter to RPC, remove secret validation and masking.
Tomas Olvecky [Wed, 15 Jan 2014 16:56:49 +0000 (17:56 +0100)]
Refactor shutdown-impl: add parameter to RPC, remove secret validation and masking.

Remove old secret as it does not work well with config-persister.
Add parameter maxWaitTime to shutdown RPC that specifies amount of time before
server is forcibly shut down.
Work around buggy yuma message sending xml element without inner text
node if blank value is specified.

Change-Id: Ief3fea74107349c5ff425ffdc184346981254bc4
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoAdd missing headers to config, netconf subsystems
Maros Marsalek [Wed, 15 Jan 2014 12:58:50 +0000 (13:58 +0100)]
Add missing headers to config, netconf subsystems

Only java files

Change-Id: If434e47d42265ed4e71507ac4998554aa6d434ab
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoRemove System.out from netconf tests
Maros Marsalek [Wed, 15 Jan 2014 08:15:14 +0000 (09:15 +0100)]
Remove System.out from netconf tests

Change-Id: Iaf5b367649772ae0d52db109fd9d373e75107954
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Better logging for netconf-ssh."
Ed Warnicke [Wed, 15 Jan 2014 02:50:55 +0000 (02:50 +0000)]
Merge "Better logging for netconf-ssh."

10 years agoMerge "Restconf operation GET, PUT, POST tests refactoring"
Ed Warnicke [Wed, 15 Jan 2014 02:50:25 +0000 (02:50 +0000)]
Merge "Restconf operation GET, PUT, POST tests refactoring"

10 years agoRestconf operation GET, PUT, POST tests refactoring
Jozef Gloncak [Fri, 10 Jan 2014 09:05:24 +0000 (10:05 +0100)]
Restconf operation GET, PUT, POST tests refactoring

Tests for GET, PUT, POST were refactored. For every operation there is one
class with name Rest<OPERATION_NAME>OperationTest.java and special class
RestOperationUtils for common subrutines.

Change-Id: If8c9b76b86d728b3e35a931b12caeed41eb75805
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoBetter logging for netconf-ssh.
Tomas Olvecky [Tue, 14 Jan 2014 12:42:52 +0000 (13:42 +0100)]
Better logging for netconf-ssh.

Log ServiceReference object in ServiceTrackerCustomizer methods.

Change-Id: Iaba864174de0e634a24c1e7a7eb5f0aeb0565b3e
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agomissing dependecies reviewed and fixed
Martin Bobak [Tue, 14 Jan 2014 09:07:23 +0000 (10:07 +0100)]
missing dependecies reviewed and fixed

Change-Id: Iba7275c4ccdc7b9f35392896b393004ccc4245b4
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoMerge "incorrect dependencies and unnecesary export-package removed from pom.xml"
Giovanni Meo [Mon, 13 Jan 2014 14:45:56 +0000 (14:45 +0000)]
Merge "incorrect dependencies and unnecesary export-package removed from pom.xml"

10 years agoincorrect dependencies and unnecesary export-package removed from pom.xml
Martin Bobak [Mon, 13 Jan 2014 13:47:53 +0000 (14:47 +0100)]
incorrect dependencies and unnecesary export-package removed from pom.xml

Change-Id: I8be593758f25cf04439ae1ee302e91aa379bf600
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoMerge "Added tests for DELETE operation"
Ed Warnicke [Mon, 13 Jan 2014 13:46:17 +0000 (13:46 +0000)]
Merge "Added tests for DELETE operation"

10 years agoMerge "Fix a few POM versioning/dependency warnings"
Ed Warnicke [Mon, 13 Jan 2014 13:44:44 +0000 (13:44 +0000)]
Merge "Fix a few POM versioning/dependency warnings"

10 years agoAdded tests for DELETE operation
Ladislav Borak [Mon, 13 Jan 2014 09:34:39 +0000 (10:34 +0100)]
Added tests for DELETE operation

Change-Id: Iba7874231d8662a5626a262228dd1baafead897f
Signed-off-by: Ladislav Borak <lborak@cisco.com>
10 years agoFix a few POM versioning/dependency warnings
Robert Varga [Wed, 8 Jan 2014 15:29:04 +0000 (16:29 +0100)]
Fix a few POM versioning/dependency warnings

Change-Id: I8c0fbfcb6a2c5b1d032a6ec26ff9176cca7f6834
Signed-off-by: Robert Varga <rovarga@cisco.com>