netconf.git
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 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>
10 years agoMerge "Added constructor which allows for custom NetconfClientSessionListener"
Ed Warnicke [Mon, 6 Jan 2014 20:43:50 +0000 (20:43 +0000)]
Merge "Added constructor which allows for custom NetconfClientSessionListener"

10 years agoAdded constructor which allows for custom NetconfClientSessionListener
Tony Tkacik [Mon, 6 Jan 2014 19:53:59 +0000 (20:53 +0100)]
Added constructor which allows for custom NetconfClientSessionListener

Change-Id: I95c1f59a704c91cb1c06c1765935612fc13bc890
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fix HashedWheelTimer exception for short living netconf clients."
Ed Warnicke [Fri, 20 Dec 2013 15:25:18 +0000 (15:25 +0000)]
Merge "Fix HashedWheelTimer exception for short living netconf clients."

10 years agoFix HashedWheelTimer exception for short living netconf clients.
Maros Marsalek [Fri, 20 Dec 2013 10:05:13 +0000 (11:05 +0100)]
Fix HashedWheelTimer exception for short living netconf clients.

An exception occurred in logs for short living netconf clients created by config persister.
These clients were closed before their initial check timer ran out.

Change-Id: Ic2c998d17788c9b92b72800415fd1ee068611f84
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoFixed some TODOs in netconf.
Maros Marsalek [Wed, 18 Dec 2013 13:44:56 +0000 (14:44 +0100)]
Fixed some TODOs in netconf.

Remove duplicate code
Remove commented modules in get-config response
Add test for netconf - persister integration
Remove already fixed TODOs

Change-Id: If79fa8652a7018ba2927044d6784d7c9dfafb220
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoUpdate service reference persistance according to new ServiceRegistry API in config...
Maros Marsalek [Tue, 17 Dec 2013 13:13:43 +0000 (14:13 +0100)]
Update service reference persistance according to new ServiceRegistry API in config subsystem.

Utilize new proxy service mbeans that store reference name for dependency attributes.

Change-Id: Ia6652643eefc545bc546902de6f3786fe91d63a5
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Switched codecs infrastructure to use yang-data-impl codecs"
Ed Warnicke [Wed, 18 Dec 2013 11:20:25 +0000 (11:20 +0000)]
Merge "Switched codecs infrastructure to use yang-data-impl codecs"

10 years agoMerge "Fixed RESTConf support for identity-ref build-in datatype"
Ed Warnicke [Wed, 18 Dec 2013 11:20:14 +0000 (11:20 +0000)]
Merge "Fixed RESTConf support for identity-ref build-in datatype"

10 years agoMerge "Verification of keys in list"
Ed Warnicke [Wed, 18 Dec 2013 11:19:55 +0000 (11:19 +0000)]
Merge "Verification of keys in list"

10 years agoSwitched codecs infrastructure to use yang-data-impl codecs
Martin Sunal [Wed, 18 Dec 2013 09:24:12 +0000 (10:24 +0100)]
Switched codecs infrastructure to use yang-data-impl codecs

- Codecs are used for tranlation of JSON/XML values to SimpleNode values and vice versa
- Leafref is encoded as String

Change-Id: Ibe5b4a23d5dad6373a2dcf7d8723a7dff135cf2a
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFix date initialization in NetconfOperationServiceImplTest.
Tomas Olvecky [Tue, 17 Dec 2013 17:44:46 +0000 (18:44 +0100)]
Fix date initialization in NetconfOperationServiceImplTest.

Use SimpleDateFormat instead of Date(0) as the later fixes the date to UTC rendering local date to
1969-12-31 for timezones > 0

Change-Id: I455610603e66b9748df8e5b035761ca22617c4eb
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoFixed RESTConf support for identity-ref build-in datatype
Tony Tkacik [Tue, 17 Dec 2013 16:26:05 +0000 (17:26 +0100)]
Fixed RESTConf support for identity-ref build-in datatype

- Created implementation of codec for identityref
- Identityref is supported in XML and JSON
- Tests

Change-Id: I813f1f52e990317b6adf30f1d0d8a164c60a4901
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoVerification of keys in list
Tony Tkacik [Tue, 17 Dec 2013 16:26:00 +0000 (17:26 +0100)]
Verification of keys in list

- verification of keys in list against list yang structure

Change-Id: Ieb46eea67a7d3173958184ced10cec1b853bb7fe
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Netconf SSH user authentication using UserManager"
Giovanni Meo [Tue, 17 Dec 2013 14:53:09 +0000 (14:53 +0000)]
Merge "Netconf SSH user authentication using UserManager"

10 years agoNetconf SSH user authentication using UserManager
Martin Bobak [Thu, 12 Dec 2013 14:47:01 +0000 (15:47 +0100)]
Netconf SSH user authentication using UserManager

Change-Id: I48112f86cf8f839d5cbfdc62f0b7a6866118ed25
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoMerge "Added tests for reading: - operational data - configuration data"
Ed Warnicke [Mon, 16 Dec 2013 23:03:48 +0000 (23:03 +0000)]
Merge "Added tests for reading: - operational data - configuration data"

10 years agoMerge "Add consistency check of visible yang modules to netconf."
Ed Warnicke [Mon, 16 Dec 2013 15:54:13 +0000 (15:54 +0000)]
Merge "Add consistency check of visible yang modules to netconf."

10 years agoMerge "Fixed netconf monitoring."
Ed Warnicke [Mon, 16 Dec 2013 15:52:41 +0000 (15:52 +0000)]
Merge "Fixed netconf monitoring."

10 years agoAdded tests for reading:
Ladislav Borak [Mon, 16 Dec 2013 14:39:10 +0000 (15:39 +0100)]
Added tests for reading:
- operational data
- configuration data

Change-Id: I8d771ac061d0d7cc5c4187133e2bf0a3ddb87252
Signed-off-by: Ladislav Borak <lborak@cisco.com>
10 years agoMerge "Added support for union yang types to netconf."
Ed Warnicke [Sat, 14 Dec 2013 01:25:34 +0000 (01:25 +0000)]
Merge "Added support for union yang types to netconf."

10 years agoAdded support for union yang types to netconf.
Maros Marsalek [Thu, 5 Dec 2013 12:39:22 +0000 (13:39 +0100)]
Added support for union yang types to netconf.

Change-Id: I3f936850fdf9a2c96e0ccda50a5178da6d90a92d
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoAdd consistency check of visible yang modules to netconf.
Maros Marsalek [Fri, 13 Dec 2013 08:30:49 +0000 (09:30 +0100)]
Add consistency check of visible yang modules to netconf.

Netconf connector to config subsystem performs this check before a netconf session is established.
This check consists of comparing yang modules visible to config subsystem to modules visibile to yangstore.
If an inconsistency is detected, session negotiation is cancelled and the session is dropped.

Change-Id: I6e07c6aa0d6c3bf1ee5fd238cfc7ec664951fe87
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoFixed netconf monitoring.
Milos Fabian [Wed, 11 Dec 2013 14:44:23 +0000 (15:44 +0100)]
Fixed netconf monitoring.

-added extension of ietf-netconf-monitoring
-fixed reporting of host address
-fixed reporting of transport
-added reporting of session identifier (client,persister)
-fixed send netconf message with additional header

Change-Id: I779c81c77641b813abcb726f94f2a78f35efbd6d
Signed-off-by: Milos Fabian <milfabia@cisco.com>
10 years agoMerge "Added xml storage adapter bundle fragments for config persister."
Ed Warnicke [Thu, 12 Dec 2013 14:51:32 +0000 (14:51 +0000)]
Merge "Added xml storage adapter bundle fragments for config persister."

10 years agoAdded xml storage adapter bundle fragments for config persister.
Maros Marsalek [Thu, 12 Dec 2013 10:12:11 +0000 (11:12 +0100)]
Added xml storage adapter bundle fragments for config persister.

File and Directory based xml adapters are now available.
Only File xml adapter is used so far to persist current configuration.

Directory based persister is still using plain text to keep backwards compatibility.

Change-Id: If1a83701ce23d36313c943e9fe49bd4e704afe27
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Improve logging of persister and netconf client."
Giovanni Meo [Wed, 11 Dec 2013 14:39:56 +0000 (14:39 +0000)]
Merge "Improve logging of persister and netconf client."

10 years agoImprove logging of persister and netconf client.
Tomas Olvecky [Tue, 10 Dec 2013 15:58:33 +0000 (16:58 +0100)]
Improve logging of persister and netconf client.

Add a debug message measuring time spent waiting for netconf server to reply in NetconfClient.
Log with error level failure to send/recieve netconf message in config-persister-impl.
Add TODOs to config-manager's dependency resolver for detecting cycles.

Change-Id: I412abad141b40eb9346ef404d2efeba8c197e018
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Added support for persistance of service references to netconf."
Giovanni Meo [Wed, 11 Dec 2013 11:28:48 +0000 (11:28 +0000)]
Merge "Added support for persistance of service references to netconf."

10 years agoAdded support for persistance of service references to netconf.
Maros Marsalek [Mon, 9 Dec 2013 13:31:53 +0000 (14:31 +0100)]
Added support for persistance of service references to netconf.

Created reference names under services/ subtree are now persisted and available for further edit-config operations.

Change-Id: I366eaab457e9264d266e16eb4e1a1ad8d97d33bc
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Fixed deserialization of IdentityRefs in Restconf URI."
Ed Warnicke [Tue, 10 Dec 2013 20:01:51 +0000 (20:01 +0000)]
Merge "Fixed deserialization of IdentityRefs in Restconf URI."

10 years agoFixed deserialization of IdentityRefs in Restconf URI.
Tony Tkacik [Tue, 10 Dec 2013 15:10:37 +0000 (16:10 +0100)]
Fixed deserialization of IdentityRefs in Restconf URI.

Change-Id: I639bb880239fa995de3af85cb054f249fa973dba
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Corrected response status codes from restconf"
Ed Warnicke [Mon, 9 Dec 2013 17:58:09 +0000 (17:58 +0000)]
Merge "Corrected response status codes from restconf"

10 years agoMerge "Improved support for default yang statements in configuration subsystem"
Ed Warnicke [Mon, 9 Dec 2013 17:25:55 +0000 (17:25 +0000)]
Merge "Improved support for default yang statements in configuration subsystem"

10 years agoMerge "Fix for bug 211, where direct write and read of augmentation was not processed...
Ed Warnicke [Mon, 9 Dec 2013 17:10:49 +0000 (17:10 +0000)]
Merge "Fix for bug 211, where direct write and read of augmentation was not processed correctly"

10 years agoFix for bug 211, where direct write and read of augmentation was not processed correctly
Tony Tkacik [Fri, 6 Dec 2013 15:40:56 +0000 (16:40 +0100)]
Fix for bug 211, where direct write and read of augmentation was not processed correctly

  - Fixed TypeNotAvailable issue with end-to-end Openflow

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

10 years agoCorrected response status codes from restconf
msunal [Thu, 5 Dec 2013 10:35:43 +0000 (11:35 +0100)]
Corrected response status codes from restconf

- POST /restconf/config/* - 204 no msg body
- POST /restconf/operations/* - 200 msg body or 204 no msg body or 500 operation failed
- PUT /restconf/config/* - 200 no msg body

Change-Id: Ida5759499f876c5fce8280510ffe4093ee1c03c3
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoImproved support for default yang statements in configuration subsystem
Maros Marsalek [Wed, 4 Dec 2013 08:04:48 +0000 (09:04 +0100)]
Improved support for default yang statements in configuration subsystem

Generated code for configuration contains default values with correct constructor if specified for leaves
Fixed binary type (de)serialization

Change-Id: Ia1338013f8aacab38074e6c7af2de351c6b73835
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Fix a typo in debug message"
Ed Warnicke [Sun, 8 Dec 2013 20:03:52 +0000 (20:03 +0000)]
Merge "Fix a typo in debug message"

10 years agoMerge "Fixed sal-netconf-connector readConfiguration"
Ed Warnicke [Sun, 8 Dec 2013 16:22:08 +0000 (16:22 +0000)]
Merge "Fixed sal-netconf-connector readConfiguration"

10 years agoFixed sal-netconf-connector readConfiguration
Tony Tkacik [Wed, 4 Dec 2013 19:21:01 +0000 (20:21 +0100)]
Fixed sal-netconf-connector readConfiguration

  - Promoted Netconf client to v1.1.
  - Added reconnect retry.
  - Fixed readConfiguration for mounted netconf device.
  - Fixed serialization issue in restconf related to mount points with unknown schema.

Change-Id: Iefb85866cfc2fcbda5b4239ab112629f5e70e76d
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFix a typo in debug message
Robert Varga [Sun, 8 Dec 2013 12:57:33 +0000 (13:57 +0100)]
Fix a typo in debug message

Change-Id: Ia37a2b49ae0cfb1196997d82df04d5edb7fffba7
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
10 years agoMerge "Updated xpath pointing to a module instance under services subtree."
Ed Warnicke [Sat, 7 Dec 2013 22:49:51 +0000 (22:49 +0000)]
Merge "Updated xpath pointing to a module instance under services subtree."

10 years agoMerge "Refactor yang-jmx-generator and -plugin to support list of dependencies."
Ed Warnicke [Sat, 7 Dec 2013 20:48:04 +0000 (20:48 +0000)]
Merge "Refactor yang-jmx-generator and -plugin to support list of dependencies."

10 years agoRefactor persister: Add ability to publish multiple snapshots while loading initial...
Tomas Olvecky [Wed, 4 Dec 2013 15:57:40 +0000 (16:57 +0100)]
Refactor persister: Add ability to publish multiple snapshots while loading initial configuration.

Persister adaptors now return list of snapshots to be pushed to netconf at server startup. Persister maintains an ordered list of adaptor
instances, each with its configuration. During server startup it iterates the list backwards until non empty list of snapshot is returned.
Each snapshot can depend on different capabilities, once all capabilities for given snapshot are announced by server, persister pushes this
snapshot.

Change-Id: If73ead980c9cf8cd237af170872fbf1a491cb029
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Initial implementation of netconf monitoring module according to http://tools...
Ed Warnicke [Fri, 6 Dec 2013 16:08:15 +0000 (16:08 +0000)]
Merge "Initial implementation of netconf monitoring module according to tools.ietf.org/html/rfc6022"

10 years agoRefactor yang-jmx-generator and -plugin to support list of dependencies.
Tomas Olvecky [Thu, 5 Dec 2013 16:22:16 +0000 (17:22 +0100)]
Refactor yang-jmx-generator and -plugin to support list of dependencies.

Change-Id: I87aec9e234588d12ac5ea2dd26509de1c625bbb2
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Used log instead of exception"
Ed Warnicke [Fri, 6 Dec 2013 13:09:29 +0000 (13:09 +0000)]
Merge "Used log instead of exception"

10 years agoUsed log instead of exception
msunal [Fri, 6 Dec 2013 08:53:25 +0000 (09:53 +0100)]
Used log instead of exception

- logging was added instead of throwing exception in problematic part

Change-Id: Ic1fb85db4e8eeba18a2fdaec0796c0683bf6430c
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoMerge "netconf-ssh dependency cleanup"
Ed Warnicke [Thu, 5 Dec 2013 22:55:00 +0000 (22:55 +0000)]
Merge "netconf-ssh dependency cleanup"

10 years agoMerge "Common yang and xml loader for tests"
Ed Warnicke [Thu, 5 Dec 2013 22:50:29 +0000 (22:50 +0000)]
Merge "Common yang and xml loader for tests"

10 years agoMerge "RestconfImpl.invokeRpc method test"
Ed Warnicke [Thu, 5 Dec 2013 22:12:13 +0000 (22:12 +0000)]
Merge "RestconfImpl.invokeRpc method test"

10 years agoUpdated xpath pointing to a module instance under services subtree.
Maros Marsalek [Thu, 5 Dec 2013 13:17:47 +0000 (14:17 +0100)]
Updated xpath pointing to a module instance under services subtree.

From /config/modules/module[name='hash-map-data-store']/instance[name='hash-map-data-store']
To   /modules/module[type=hash-map-data-store][name=hash-map-data-store']

Affected netconf operations: get-config, edit-config.
Backwards compatibility with previous xpath version is preserved.

Change-Id: Ic7c8057811001dbec34115b3745ce42bae790a45
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoInitial implementation of netconf monitoring module according to http://tools.ietf...
Maros Marsalek [Fri, 29 Nov 2013 13:23:44 +0000 (14:23 +0100)]
Initial implementation of netconf monitoring module according to tools.ietf.org/html/rfc6022

Response from netconf GET operation now contains monitoring information about current netconf state.

Modified netconf-impl module: added monitoring capabilities to netconf-impl module exposed as OSGi service.

Added netconf-monitoring module that provides a filter for netconf GET operation
and adds monitoring information retrieved from netconf-impl to the response of the GET operation.
It implements netconf-mapping-api similar to config-netconf-connector and
currently provides information about current netconf SESSIONS and yang SCHEMAS
(these information is retrieved via the netconf monitoring OSGi service provided by netconf-impl).

Added ietf-netconf-monitoring module that contains sources generated from ietf-netconf-monitoring yang.
These sources serve as an interface between netconf-impl and netconf-monitoring.

Change-Id: I62c457cde42e01781d9039c6dde0a03115134df4
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Fixed serialization issues with Augments and java types"
Ed Warnicke [Wed, 4 Dec 2013 19:02:17 +0000 (19:02 +0000)]
Merge "Fixed serialization issues with Augments and java types"

10 years agoMerge "client IP/port definition in configuration separation new netconf.client prope...
Ed Warnicke [Wed, 4 Dec 2013 16:28:52 +0000 (16:28 +0000)]
Merge "client IP/port definition in configuration separation new netconf.client properties added to integration tests"

10 years agonetconf-ssh dependency cleanup
Martin Bobak [Wed, 4 Dec 2013 10:18:49 +0000 (11:18 +0100)]
netconf-ssh dependency cleanup

Change-Id: Ida6d8aa12f1609deb0f63dab86dc987edb4d299a
Signed-off-by: Martin Bobak <mbobak@cisco.com>