netconf.git
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>
10 years agoMerge changes I85b49247,Icca28a4a
Ed Warnicke [Fri, 10 Jan 2014 17:40:32 +0000 (17:40 +0000)]
Merge changes I85b49247,Icca28a4a

* changes:
  Added DELETE operation
  Changed POST operation

10 years agoAdded DELETE operation
Martin Sunal [Fri, 10 Jan 2014 15:51:42 +0000 (16:51 +0100)]
Added DELETE operation

- fix of bug 266
- corrected @Produces and @Consumes annotations in RestconfService and RestconfServiceLegacy

Change-Id: I85b49247f0ff1cfecb3ab999d6cc4f56311947e4
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoChanged POST operation
Martin Sunal [Fri, 10 Jan 2014 12:11:24 +0000 (13:11 +0100)]
Changed POST operation

POST operation for creating resource was changed according to RFC
http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.4
- test fix
- ResponseException tests

Change-Id: Icca28a4a57499be5f29a1b618a432dd61dde2816
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Ladislav Borak <lborak@cisco.com>
10 years agoMerge "Always set interrupted flag when catching InterruptedException."
Ed Warnicke [Thu, 9 Jan 2014 20:24:28 +0000 (20:24 +0000)]
Merge "Always set interrupted flag when catching InterruptedException."

10 years agoMerge "Minor changes in md-sal tests."
Ed Warnicke [Thu, 9 Jan 2014 20:22:34 +0000 (20:22 +0000)]
Merge "Minor changes in md-sal tests."

10 years agoMinor changes in md-sal tests.
Martin Vitez [Thu, 9 Jan 2014 14:08:48 +0000 (15:08 +0100)]
Minor changes in md-sal tests.

Temporary ignored test, removed @Override annotation.

Change-Id: I4d483770a96bf57973164f82c27f20f7d29a1e1f
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAlways set interrupted flag when catching InterruptedException.
Tomas Olvecky [Thu, 9 Jan 2014 13:08:08 +0000 (14:08 +0100)]
Always set interrupted flag when catching InterruptedException.

Fixed catching InterruptedException in config-subsystem and netconf.
In netconf persister propagate interrupted exception as it indicates
that netconf connection was not established and thus config pushing
does not work.

Change-Id: I7934bddd2b7c6591d1a4557a60df39a6de15dc72
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "private key configurable in config.ini"
Ed Warnicke [Thu, 9 Jan 2014 07:25:47 +0000 (07:25 +0000)]
Merge "private key configurable in config.ini"

10 years agoMerge "Update maven-bundle-plugin version in config and netconf."
Ed Warnicke [Thu, 9 Jan 2014 07:24:22 +0000 (07:24 +0000)]
Merge "Update maven-bundle-plugin version in config and netconf."

10 years agoMerge changes If79fa865,Ia6652643
Ed Warnicke [Thu, 9 Jan 2014 07:23:52 +0000 (07:23 +0000)]
Merge changes If79fa865,Ia6652643

* changes:
  Fixed some TODOs in netconf.
  Update service reference persistance according to new ServiceRegistry API in config subsystem.

10 years agoMerge changes I994c19ee,I245e9e7a
Ed Warnicke [Wed, 8 Jan 2014 17:52:25 +0000 (17:52 +0000)]
Merge changes I994c19ee,I245e9e7a

* changes:
  sal-rest-connector test refactoring
  More test for improving of code coverage + test refactoring

10 years agoprivate key configurable in config.ini
Martin Bobak [Wed, 8 Jan 2014 12:18:11 +0000 (13:18 +0100)]
private key configurable in config.ini

Netconf SSH bridge has private key stored in distribution.
Path to this file is configured in config.ini.

Change-Id: I517586009c883a537c80fde8205d9040b5fe6052
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoUpdate maven-bundle-plugin version in config and netconf.
tomas [Wed, 8 Jan 2014 14:11:27 +0000 (15:11 +0100)]
Update maven-bundle-plugin version in config and netconf.

Update from 2.3.7 to 2.4.0

Change-Id: Ie121db016d5532df58da05244d7883520cdf8b11
Signed-off-by: tomas <tolvecky@cisco.com>
10 years agosal-rest-connector test refactoring
Jozef Gloncak [Fri, 20 Dec 2013 09:34:23 +0000 (10:34 +0100)]
sal-rest-connector test refactoring

Mainly deleting unnecessary methods.

Change-Id: I994c19ee0a9ccc95491e85667fe7ae352f62864f
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoMore test for improving of code coverage + test refactoring
Jozef Gloncak [Tue, 17 Dec 2013 13:36:44 +0000 (14:36 +0100)]
More test for improving of code coverage + test refactoring

Added tests to sal-rest-connector to improve code coverage.
Added test for leafref.
Some methods in TestUtils were refactored.

Change-Id: I245e9e7a55e02c542aab7f835f09081b040afa41
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoMerge "Support for mount points in Restconf"
Ed Warnicke [Tue, 7 Jan 2014 03:37:25 +0000 (03:37 +0000)]
Merge "Support for mount points in Restconf"

10 years agoSupport for mount points in Restconf
Tony Tkacik [Mon, 6 Jan 2014 19:44:26 +0000 (20:44 +0100)]
Support for mount points in Restconf

Added support for mount points in Restconf paths, which allows for
deeper queries inside remote nodes such as Netconf.

Change-Id: I348e494bae138f7d46ca70ab051f36b5b021641d
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>