netconf.git
7 years agoReplace mockito-all by mockito-core (see Bug 7662) 72/50872/1
Michael Vorburger [Mon, 23 Jan 2017 18:58:43 +0000 (19:58 +0100)]
Replace mockito-all by mockito-core (see Bug 7662)

Change-Id: Id0be6adaa1c9d07b6b99cd2cde60a02ebd09a3ad
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Bug 7491 - Ignore exceptions during invoking notification listeners"
Tomas Cere [Tue, 17 Jan 2017 09:18:07 +0000 (09:18 +0000)]
Merge "Bug 7491 - Ignore exceptions during invoking notification listeners"

7 years agoBug 7491 - Ignore exceptions during invoking notification listeners 47/49847/7
Xu Rong [Thu, 29 Dec 2016 08:56:55 +0000 (16:56 +0800)]
Bug 7491 - Ignore exceptions during invoking notification listeners

Change-Id: Ic008f9120ce45dfd2203dad91fd2dfb94fdb9015
Signed-off-by: Xu Rong <xu.rong4@zte.com.cn>
7 years agoClose missing resources when netconf-topolgy goes down 94/48094/4
Alexis de Talhouët [Mon, 7 Nov 2016 23:00:04 +0000 (18:00 -0500)]
Close missing resources when netconf-topolgy goes down

When the connection goes down, we are closing the NetconfDeviceCommunicator
instance but we aren't closing the RemoteDeviceHandler. I believe this is an
oversight, so implementing the Autocloseable interface in NetconfConnectorDTO
that will close both the resources. The consumer of this DTO can then call #close()
to release the resources.

Change-Id: I852a5aa29a73f8454aa1886990dfce9c7a019025
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoBug 5407 - Deprecate Netconf Loopback Mount Through Config Subsystem 06/47906/6
Alexis de Talhouët [Thu, 3 Nov 2016 20:32:57 +0000 (16:32 -0400)]
Bug 5407 - Deprecate Netconf Loopback Mount Through Config Subsystem

Change-Id: I4c413a918a98d82d1a081c297375e68b1105d1a7
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoMerge "Bug 7429 - Upgrade docgen in restconf to the latest draft of ietf-restconf"
Jakub Morvay [Tue, 10 Jan 2017 13:15:30 +0000 (13:15 +0000)]
Merge "Bug 7429 - Upgrade docgen in restconf to the latest draft of ietf-restconf"

7 years agoMerge "Bug 7432 - eliminate use of yang-parser-impl internals"
Tomas Cere [Tue, 10 Jan 2017 12:36:37 +0000 (12:36 +0000)]
Merge "Bug 7432 - eliminate use of yang-parser-impl internals"

7 years agoBug 7433 - Remove use of YangSchemaSourceImpl from restconf tests 24/50124/4
Jakub Toth [Mon, 9 Jan 2017 10:35:00 +0000 (11:35 +0100)]
Bug 7433 - Remove use of YangSchemaSourceImpl from restconf tests

Change-Id: I3a5901618cbe162eed07cf0301626e6228df4360
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 7429 - Upgrade docgen in restconf to the latest draft of ietf-restconf 48/49748/5
Jakub Toth [Thu, 22 Dec 2016 17:42:45 +0000 (18:42 +0100)]
Bug 7429 - Upgrade docgen in restconf to the latest draft of ietf-restconf

  *upgrade paths from 17 to 18

Change-Id: I885e59c0ddc3a6668514f531fc6025ba2effedb0
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBUG-4219: use upstream karaf.version 51/49651/2
Robert Varga [Tue, 20 Dec 2016 14:05:20 +0000 (15:05 +0100)]
BUG-4219: use upstream karaf.version

Rather than hard-coding a specific version, pick it up
from odlparent.

Change-Id: I27c16ba9963cc1fea4e482fc006067a191111662
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBUG-4219: use scope=provided for karaf dependencies 48/49648/3
Robert Varga [Tue, 20 Dec 2016 13:43:34 +0000 (14:43 +0100)]
BUG-4219: use scope=provided for karaf dependencies

We should not be pulling in the dependencies, but rather
require them to be provided.

Change-Id: I9f41c3f35d5b8d0b0a14b871816b66a13347781b
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoMerge "Bug 7206 - Chinese improper code problem."
Jakub Morvay [Thu, 5 Jan 2017 15:09:23 +0000 (15:09 +0000)]
Merge "Bug 7206 - Chinese improper code problem."

7 years agoBug 7432 - eliminate use of yang-parser-impl internals 63/50063/2
Jakub Morvay [Thu, 5 Jan 2017 09:51:10 +0000 (10:51 +0100)]
Bug 7432 - eliminate use of yang-parser-impl internals

Switch to using YangParserTestUtil in netconf-cli module instead.

Change-Id: I1db0986a6030f3277286d8980f022ebb1c9042ca
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 7206 - Chinese improper code problem. 77/48477/5
Geng Xingyuan [Fri, 18 Nov 2016 13:17:24 +0000 (21:17 +0800)]
Bug 7206 - Chinese improper code problem.

Change-Id: Iedad5f4cfce270216811788b217bced62ff88428
Signed-off-by: Geng Xingyuan <geng.xingyuan@zte.com.cn>
7 years agoBug 7432 - eliminate use of yang-parser-impl internals 51/50051/2
Jakub Morvay [Thu, 5 Jan 2017 09:51:10 +0000 (10:51 +0100)]
Bug 7432 - eliminate use of yang-parser-impl internals

Switch to using YangParserTestUtil in netconf tests instead.

Change-Id: Ia28ce980929638d7b940f86160289c74e2ec5640
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 5679 - implement new service RestconfService 41/49641/5
Jakub Toth [Tue, 20 Dec 2016 12:14:38 +0000 (13:14 +0100)]
Bug 5679 - implement new service RestconfService

  * update constants of RestconfModule in Draft18 by latest draft
    of ietf-restconf
  * implement servic for getting yang library version
    * path - /restconf/18/yang-library-version
  * test for new implementation
  * move tests from ../rest/services/impl to ../base/services/impl

Change-Id: I6caf4dce2ce3000ba8ac2b9f0f98d90e25f36d31
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - add new module ietf-restconf 55/49555/4
Jakub Toth [Mon, 19 Dec 2016 13:50:34 +0000 (14:50 +0100)]
Bug 5679 - add new module ietf-restconf

Change-Id: Ia9aa9a6c2ed349c9133e005fa901ff70aec757f7
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - implement ietf-restconf-monitoring - cleanup 87/49187/6
Jakub Toth [Fri, 9 Dec 2016 16:13:10 +0000 (17:13 +0100)]
Bug 5679 - implement ietf-restconf-monitoring - cleanup

  * cleanup of both listeners (data-change, yang)
    * create new common abstract classes with common methodes
    * fix broken tests
  * add support of listener to listen on stream with both output
    types (XML JSON)

Change-Id: I865a0547e57a1035921f207d9f96b5a4c57bc20c
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - implement ietf-restconf-monitoring - streams 03/49103/7
Jakub Toth [Wed, 7 Dec 2016 19:19:57 +0000 (20:19 +0100)]
Bug 5679 - implement ietf-restconf-monitoring - streams

  *removed service and tests for getting streams
  *implemented put/delete specific stream to operational DS
  *new mapping for data-change and yang notifications
  *new tests + fixed old

Change-Id: I6c48149ba0bde1e6ba574b514d0fd70a976f1bf4
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - implement ietf-restconf-monitoring - capabilities 26/49026/6
Jakub Toth [Tue, 6 Dec 2016 11:45:53 +0000 (12:45 +0100)]
Bug 5679 - implement ietf-restconf-monitoring - capabilities

  * make constants in QueryParams full (with BASE_URI path)
  * mapping capabilities
  * put mapped capabilities to operational DS in provider
  * added + fixed tests

Change-Id: Ibf1cdb2d07d3172fd21558095307962767ea32ff
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - prepare constants for ietf-yang-library model 19/49019/4
Jakub Toth [Tue, 6 Dec 2016 10:06:25 +0000 (11:06 +0100)]
Bug 5679 - prepare constants for ietf-yang-library model

Change-Id: I71b637991c25e31ce308310b5f978d6c204a5ffc
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - add new module ietf-restconf-monitoring to restconf 18/49018/4
Jakub Toth [Mon, 5 Dec 2016 15:22:56 +0000 (16:22 +0100)]
Bug 5679 - add new module ietf-restconf-monitoring to restconf

Change-Id: I93df11eb73292ccdc3df5bd7668df45dbf3c9a63
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - fix generating of schema by ietf-yang-library 17/49017/4
Jakub Toth [Mon, 5 Dec 2016 13:31:12 +0000 (14:31 +0100)]
Bug 5679 - fix generating of schema by ietf-yang-library
and path of RestconfSchemaService

Change-Id: I5e4449599408d9634d9b88db1ef498c63f5de60f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - ietf-yang-library module implemetation 60/48860/4
Jakub Toth [Thu, 1 Dec 2016 09:02:06 +0000 (10:02 +0100)]
Bug 5679 - ietf-yang-library module implemetation

Make modules data as data in state DS
  * remove modules service
  * remove tests of modules service impl
  * remove mapping modules according to ietf-restconf
    model

  * implemetation of new mapping modules according to
    ietf-yang-library model
  * (SchemaContextHandler) mapping modules on every new
    schema context and update DS(state) with new data
  * added test for mapping
  * fix tests by new implemetation

Change-Id: I39822fcfddfce409b1a489aa8f64d88eeb23e2db
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - prepare constants for ietf-yang-library model 59/48859/4
Jakub Toth [Wed, 30 Nov 2016 15:49:11 +0000 (16:49 +0100)]
Bug 5679 - prepare constants for ietf-yang-library model

Change-Id: I5f4e2926a39e7f745eb0189c35004470a4e497a2
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - new module 'models' for new models in restconf 58/48858/4
Jakub Toth [Wed, 30 Nov 2016 15:35:35 +0000 (16:35 +0100)]
Bug 5679 - new module 'models' for new models in restconf

  * added new module to models - ietf-yang-library with
    model ietf-yang-library.yang
  * added dependencies to sal-rest-connector and features
    on ietf-yang-library

Change-Id: If372a629443cab496fd42b7a71d726c181c4000e
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 5679 - renamed package rest.services to base.services 57/48857/3
Jakub Toth [Wed, 30 Nov 2016 15:14:31 +0000 (16:14 +0100)]
Bug 5679 - renamed package rest.services to base.services

Change-Id: I8a8ca628d0667536ec7f6f2e217dd8cfb02d775f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoDo not attempt to construct invalid QNames 26/49526/3
Robert Varga [Sun, 18 Dec 2016 13:13:12 +0000 (14:13 +0100)]
Do not attempt to construct invalid QNames

This fixes an attempt to instantiate a QName with a colon
in its local name. Two of the failing tests are straightforward
fixes.

The RestconfOperationsServiceImpl is more involved, as it requires
faking module imports to keep encoding working.

Change-Id: Iceed2310e94a16189d80fe57b58510fbfc45e17a
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 6911 - RPC support in singleton 42/46742/16
Rudolf Brisuda [Mon, 10 Oct 2016 16:13:33 +0000 (18:13 +0200)]
Bug 6911 - RPC support in singleton

- master invoke RPC and send back to slave.

Change-Id: Ica407f800da3d902f722d835bf6d658163c01bb5
Signed-off-by: Rudolf Brisuda <rbrisuda@cisco.com>
7 years agoMerge "Bug 7172 - Correct error-info for missing-attribute errors"
Tomas Cere [Tue, 29 Nov 2016 13:08:31 +0000 (13:08 +0000)]
Merge "Bug 7172 - Correct error-info for missing-attribute errors"

7 years agoBug 7240 - Restconf returns Status.Ok if delete fails 83/48783/1
Jakub Toth [Fri, 25 Nov 2016 15:03:24 +0000 (16:03 +0100)]
Bug 7240 - Restconf returns Status.Ok if delete fails

  * add a private class for setting Throwable object
  * if operation failed, set Throwable object to object created from
    private class
  * throw RestconfDocumentedException in Restconf (doesn't in hijack
    thread) if Throwable object isn't null
  * add test

Change-Id: I413c5d3c969969903951da876277439ac2b67d66
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6324 - Notifications stream output is not same as restconf data 72/48772/2
Jakub Toth [Thu, 20 Oct 2016 08:54:06 +0000 (10:54 +0200)]
Bug 6324 - Notifications stream output is not same as restconf data

  * serialization NormalizedNode to JSON with gson codec from yangtools
  * added test

Change-Id: I15245c48188151a1e7aaaf482997ae0d214491c0
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoRemove *Module and yang files for netconf-client 07/47907/7
Alexis de Talhouët [Thu, 3 Nov 2016 21:47:35 +0000 (17:47 -0400)]
Remove *Module and yang files for netconf-client

As netconf-client is migrated to blueprint, and no more config system's module
definition exist for this module, as last one was removed
https://git.opendaylight.org/gerrit/#/c/46512/ it is safe to remove those
backward compatible bits

Change-Id: I404ce974248ee97f72384cce6259d037555eb9ad
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint to wire threadpools configuration 12/46512/15
Alexis de Talhouët [Tue, 4 Oct 2016 20:07:41 +0000 (16:07 -0400)]
Add blueprint to wire threadpools configuration

Also define odl:type for the various thread pools NETCONF is using,
so we ensure pulling the accurate instances.

Change-Id: Iffcdd076d0a75b5b0ed5f3311cd22ec05ca5e60e
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for loopback controller-config 05/47905/13
Alexis de Talhouët [Thu, 3 Nov 2016 20:25:18 +0000 (16:25 -0400)]
Add blueprint wiring for loopback controller-config

Change-Id: I0bf0664e35f17ba449d71a6555359cc42b61da07
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for netconf-topology 58/47858/15
Alexis de Talhouët [Wed, 2 Nov 2016 20:26:15 +0000 (16:26 -0400)]
Add blueprint wiring for netconf-topology

This patch also moves api interface under the api
package. So api and impl are seperated, package-wise

Change-Id: Id80290e108b30e524f985044c66a1bea057c24c5
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for netconf-tcp 75/45775/19
Alexis de Talhouët [Thu, 6 Oct 2016 12:04:13 +0000 (08:04 -0400)]
Add blueprint wiring for netconf-tcp

The tcp endpoint is configured in the blueprint xml file,
but is commented-out, so by default it is not pick-up. If
someone wants to use it, it has to be uncommented.

Change-Id: Id2c4af8bc6a52c203a054a30d8748708f77591f4
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoBug 7231 - Upgrade ietf-restconf draft17 to draft18 67/48667/1
Jakub Toth [Thu, 24 Nov 2016 15:02:22 +0000 (16:02 +0100)]
Bug 7231 - Upgrade ietf-restconf draft17 to draft18

Change-Id: Ie964ab3654f7a28472b138012a7235e599940ed4
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoMerge "Bug 7207 - Bad parsing of identityref in typedef for last ietf-restconf draft"
Jakub Morvay [Wed, 23 Nov 2016 12:16:56 +0000 (12:16 +0000)]
Merge "Bug 7207 - Bad parsing of identityref in typedef for last ietf-restconf draft"

7 years agoFix NetconfServerSessionListenerTest 98/48598/2
Jakub Morvay [Tue, 22 Nov 2016 18:32:44 +0000 (19:32 +0100)]
Fix NetconfServerSessionListenerTest

NetconfServerSessionListenerTest's testOnMessageDocumentedFail test
expects uppercase error-severity and error-type values in rpc-error
reply.

Patch https://git.opendaylight.org/gerrit/#/c/48326/ introduced
lowercase eror-severity and error-type values in rpc-error.

This fixes testOnMessageDocumentedFail test to expect lowercase
error-severity and error-type values.

Change-Id: If8455e2caa290a712fc202903557c1cf94ca727e
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 7207 - Bad parsing of identityref in typedef for last ietf-restconf 79/48479/2
Jakub Toth [Fri, 18 Nov 2016 14:05:57 +0000 (15:05 +0100)]
Bug 7207 - Bad parsing of identityref in typedef for last ietf-restconf
draft

  * value for identityref in typedef has been added as moduleName+value
    * moduleName:modulName:localName
  * fixed by create value by moduleName + localName of value

Change-Id: Id45bd02d906ae467f83193587302d27488d5c57a
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6951 - Implement Query parameters - with-defaults 07/48407/2
Jakub Toth [Wed, 16 Nov 2016 13:47:33 +0000 (14:47 +0100)]
Bug 6951 - Implement Query parameters - with-defaults

  * fixed tests

Change-Id: Idae6981b7fd0df3e690965b063b7bd3975d049c5
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6947 / Bug 6948 - implement point and insert query params 69/48369/3
Jakub Toth [Tue, 15 Nov 2016 14:51:29 +0000 (15:51 +0100)]
Bug 6947 / Bug 6948 - implement point and insert query params

  *fixed test

Change-Id: I818f276f68fc87ef6264897b6bd58bfafb4ff67d
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 4883 - implement query parameter - filter 68/48268/6
Jakub Toth [Fri, 14 Oct 2016 08:43:36 +0000 (10:43 +0200)]
Bug 4883 - implement query parameter - filter

  * added test

Change-Id: I75ace69452c31b29460727f36c66cf397f44e26e
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 7172 - Correct error-info for missing-attribute errors 20/48320/1
Jakub Morvay [Mon, 14 Nov 2016 14:22:25 +0000 (15:22 +0100)]
Bug 7172 - Correct error-info for missing-attribute errors

Add bad-attribute and bad-element information to error-info when
constructing missing-attribute rpc-error.

Change-Id: I96652e3154c8ebdba53396360f5ddfe6a5ec0211
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 6949 / Bug 6950 - Implementation of start-time and stop-time 41/48141/6
Jakub Toth [Fri, 14 Oct 2016 08:43:36 +0000 (10:43 +0200)]
Bug 6949 / Bug 6950 - Implementation of start-time and stop-time
query parameters

  * added and fixed tests
  * added yang notifications to latest restconf draft impl

Change-Id: Ie860b568c45eab7325c4a3b6284a75541b5433db
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoImplement SchemaLocationBuilder for ietf-netconf-monitoring 06/37506/3
Tomas Cere [Tue, 12 Apr 2016 16:12:36 +0000 (18:12 +0200)]
Implement SchemaLocationBuilder for ietf-netconf-monitoring

Change-Id: I0442ec831126f3d4657f9cd3191c6d518dc7cc48
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoBug 6935 - RPC in latest draft doesn't work - problem of parsing 36/46936/16
Jakub Toth [Fri, 14 Oct 2016 08:43:36 +0000 (10:43 +0200)]
Bug 6935 - RPC in latest draft doesn't work - problem of parsing
to instance identifier

 *added parsing of rpc identifier
 *test for rpc

Change-Id: Icfb2108a9087e208f32a62702249662fe9865583
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6995 - Change event notification subscription usability PART2 47/47747/11
Jakub Toth [Sat, 29 Oct 2016 01:38:39 +0000 (03:38 +0200)]
Bug 6995 - Change event notification subscription usability PART2

  * added new yang for leaf with location for subscribing on stream
  * changed return type of subscribing stream request from Response
    to NormalizedNodeContext
    * implemented leaf with location of stream
  * implemented support of adding new headers on data return
    * added new statement 'headers' to NormalizedNodeContext

Change-Id: I2da57c8b1e22368345ca2dac9ae1a8924f2ecea2
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6995 - Change event notification subscription usability PART1 31/47731/9
Jakub Toth [Fri, 28 Oct 2016 10:55:00 +0000 (12:55 +0200)]
Bug 6995 - Change event notification subscription usability PART1

  * added leaf of notification-output-type to grouping for use
    both augmentations of notifications:
      * data-change notifications
      * yang notifications
  * implemented support of output type for data-change
    notifications (in draft02 and in latest draft)
  * fixed tests to support output of notification

Change-Id: I0b8b9803d1bd2daa7f319e9332ecaf1e96da16ab
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoMerge "Address comments from blueprint patches"
Jakub Morvay [Mon, 7 Nov 2016 15:59:05 +0000 (15:59 +0000)]
Merge "Address comments from blueprint patches"

7 years agoMerge "Bug 6903 - Implement Query parameters - fields"
Jakub Morvay [Mon, 7 Nov 2016 14:26:52 +0000 (14:26 +0000)]
Merge "Bug 6903 - Implement Query parameters - fields"

7 years agoMerge "Bug 6895 - Implement Query parameters - depth"
Jakub Morvay [Mon, 7 Nov 2016 14:26:30 +0000 (14:26 +0000)]
Merge "Bug 6895 - Implement Query parameters - depth"

7 years agoMerge "Remove netconf-config-dispatcher as moved to netconf-client"
Jakub Morvay [Mon, 7 Nov 2016 13:45:34 +0000 (13:45 +0000)]
Merge "Remove netconf-config-dispatcher as moved to netconf-client"

7 years agoAddress comments from blueprint patches 54/47854/5
Alexis de Talhouët [Wed, 2 Nov 2016 19:02:35 +0000 (15:02 -0400)]
Address comments from blueprint patches

This is a follow-up patch addressing the following comments:

- add missing destroy-method: https://git.opendaylight.org/gerrit/#/c/45750/
- refactor class name, remove useless param and got back to simple map/set
as there is no obvious need to have them concurrent: https://git.opendaylight.org/gerrit/#/c/45608/
- add TODO back: https://git.opendaylight.org/gerrit/#/c/45631/

Change-Id: Ie4648aa520717effbfe367de62a2fb7d6b1d3505
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoMerge "Specify type to NetconfClientDispatcher reference"
Tomas Cere [Mon, 7 Nov 2016 13:06:52 +0000 (13:06 +0000)]
Merge "Specify type to NetconfClientDispatcher reference"

7 years agoMerge changes from topic 'bug/6023'
Jakub Morvay [Mon, 7 Nov 2016 11:59:29 +0000 (11:59 +0000)]
Merge changes from topic 'bug/6023'

* changes:
  Add netconf-util tests for package org.opendaylight.netconf.util.osgi
  Bug 6023 - Adress for config subsystem netconf endpoint is not configurable

7 years agoMerge "Bug 6637 - Make Netconf test-tool simulate buggy behavior"
Jakub Morvay [Mon, 7 Nov 2016 11:39:18 +0000 (11:39 +0000)]
Merge "Bug 6637 - Make Netconf test-tool simulate buggy behavior"

7 years agoAdd netconf-util tests for package org.opendaylight.netconf.util.osgi 72/47772/5
Andrej Mak [Mon, 31 Oct 2016 09:56:59 +0000 (10:56 +0100)]
Add netconf-util tests for package org.opendaylight.netconf.util.osgi

Change-Id: I3a4d476a98c68c7a9fdf0043b09102c72b9fbb2d
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 6023 - Adress for config subsystem netconf endpoint is not configurable 45/47745/9
Alexis de Talhouët [Fri, 28 Oct 2016 19:31:12 +0000 (15:31 -0400)]
Bug 6023 - Adress for config subsystem netconf endpoint is not configurable

Follow-up patch to clean-up

Change-Id: I7bfb7ee0c5e07b00f8f55b37a327f3c4ced6b892
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoBug 6696: Add transaction chain support to netconf connector 75/45575/16
Andrej Mak [Wed, 14 Sep 2016 06:08:31 +0000 (08:08 +0200)]
Bug 6696: Add transaction chain support to netconf connector

Change-Id: I3d680be67589e7f005ef470f0b3896c3256fca4b
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 6637 - Make Netconf test-tool simulate buggy behavior 46/46446/10
Andrej Mak [Fri, 30 Sep 2016 10:49:55 +0000 (12:49 +0200)]
Bug 6637 - Make Netconf test-tool simulate buggy behavior

Define new NetconfOperationServiceFactory which is used by testtool.
This implementation intercepts RPCs and checks if their behavior
is overriden by config. If it is, response defined in config file is
returned. If it is not overriden, handling is delegated to the normal
operation implementation.

Change-Id: I215b8bf52f8229ad54064226abdae0b7fea8f2ff
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoBug 6903 - Implement Query parameters - fields 69/46669/44
Ivan Hrasko [Fri, 7 Oct 2016 11:55:38 +0000 (13:55 +0200)]
Bug 6903 - Implement Query parameters - fields

- parse and verify fields parameter from URI
- nodes written to output are limited in
ParameterAwareNormalizedNodeWriter according to
parsed fields parameter value
- ParameterAwareNormalizedNodeWriter is used as writer
even if no parameters are used
- fields parameter is used together with depth
parameter, when node is selected by fields parameter
then value of depth parameter has no effect on selected
node and its *ancestors*
- contains unit tests for fields parameter parser and
ParameterAwareNormalizedNodeWriter class
- fixed depth for map nodes in way that when map node is
target and depth is 1 no map entries children are written
to output
- added support to read data (GET) from restconf/data path

Change-Id: I3896dba6faa3fdbcb00e07fdfd7b3fdc02ba57d9
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBug 6895 - Implement Query parameters - depth 01/46601/26
Ivan Hrasko [Thu, 6 Oct 2016 09:19:59 +0000 (11:19 +0200)]
Bug 6895 - Implement Query parameters - depth

- depth URI query parameter for new Restconf
- parse and verify all GET parameters in one method
- added tests for depth parameter writer
- added unit tests for content parameter

Change-Id: If9fece9c995dd52bb8ad00d29b6addb66fa4e32b
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoMerge "Bug 6382 - add apidoc for latest restconf draft"
Jakub Morvay [Fri, 4 Nov 2016 08:47:06 +0000 (08:47 +0000)]
Merge "Bug 6382 - add apidoc for latest restconf draft"

7 years agoMerge "Bug 6731 - add valid example values"
Jakub Morvay [Fri, 4 Nov 2016 08:46:10 +0000 (08:46 +0000)]
Merge "Bug 6731 - add valid example values"

7 years agoSpecify type to NetconfClientDispatcher reference 02/47902/1
Jakub Morvay [Thu, 3 Nov 2016 16:07:02 +0000 (17:07 +0100)]
Specify type to NetconfClientDispatcher reference

Specify netconf-client-dispatcher type to NetconfClientDispatcher
reference in netconf-topology-singleton blueprint.

Change-Id: I357a10ae634787f1dcf1537c26cebdb9b14effce
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoRemove netconf-config-dispatcher as moved to netconf-client 56/47856/1
Alexis de Talhouët [Wed, 2 Nov 2016 19:18:10 +0000 (15:18 -0400)]
Remove netconf-config-dispatcher as moved to netconf-client

Before merging this, USC project needs to merge
https://git.opendaylight.org/gerrit/#/c/46621/
as it is the only consumer of this artifact, it
has to be migrated to the new one.

See commit message of this patch for context:
https://git.opendaylight.org/gerrit/#/c/45735/

Change-Id: Iea4ea41137047fda11ee1276bb001790b772f114
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for messagebus-netconf 45/45645/8
Alexis de Talhouët [Thu, 15 Sep 2016 20:25:42 +0000 (16:25 -0400)]
Add blueprint wiring for messagebus-netconf

Change-Id: I3d6f7845a0ab898e5e4f7d3c45cbc3f6eba746c0
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoMerge "Add netconf-netty-util tests"
Jakub Morvay [Wed, 2 Nov 2016 18:39:21 +0000 (18:39 +0000)]
Merge "Add netconf-netty-util tests"

7 years agoMerge "Add netconf-impl unit tests"
Jakub Morvay [Wed, 2 Nov 2016 18:36:50 +0000 (18:36 +0000)]
Merge "Add netconf-impl unit tests"

7 years agoMerge "Add netconf-util tests and remove unused classes"
Jakub Morvay [Wed, 2 Nov 2016 18:35:29 +0000 (18:35 +0000)]
Merge "Add netconf-util tests and remove unused classes"

7 years agoMerge "Add blueprint wiring for netconf-client"
Jakub Morvay [Wed, 2 Nov 2016 17:35:56 +0000 (17:35 +0000)]
Merge "Add blueprint wiring for netconf-client"

7 years agoMerge changes from topic 'blueprint'
Jakub Morvay [Wed, 2 Nov 2016 17:32:40 +0000 (17:32 +0000)]
Merge changes from topic 'blueprint'

* changes:
  Remove remaining yang and xml config system files
  Add blueprint wiring for mdsal-netconf-yang-library
  Add blueprint wiring for mdsal-netconf-monitoring
  Add blueprint wiring to mdsal-netconf-notification
  Add blueprint wiring to netconf-notification-impl
  Add blueprint wiring for mdsal-netconf-connector
  Add blueprint wiring for netconf-impl
  Add blueprint wiring for netconf-ssh
  Add blueprint wiring for aaa-authn-odl-plugin

7 years agoMerge "Add blueprint wiring for netconf-console"
Jakub Morvay [Wed, 2 Nov 2016 15:06:25 +0000 (15:06 +0000)]
Merge "Add blueprint wiring for netconf-console"

7 years agoBug 6382 - add apidoc for latest restconf draft 48/46948/5
miroslav.kovac [Wed, 12 Oct 2016 14:22:30 +0000 (16:22 +0200)]
Bug 6382 - add apidoc for latest restconf draft

Create a swagger api explorer for latest ietf-netconf-restconf draft

Change-Id: Id397bbfdb435b8d8f0474657e6a7557e9b1eb838
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
7 years agoBug 6731 - add valid example values 72/46772/4
miroslav.kovac [Tue, 11 Oct 2016 14:18:44 +0000 (16:18 +0200)]
Bug 6731 - add valid example values

Add API Explorer Model Schema Data Type 'Click to set as parameter
value' valid example values taking in consideration -> default values,
patterns, data types, min and max value.

Change-Id: I81e566bf81d830ddd8da278323e17a3e0e27ec3e
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
7 years agoRemove remaining yang and xml config system files 00/47700/3
Alexis de Talhouët [Thu, 27 Oct 2016 21:20:54 +0000 (17:20 -0400)]
Remove remaining yang and xml config system files

Change-Id: Id2610630046a22b81b10a4155f08ed149d056b09
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for mdsal-netconf-yang-library 31/45631/16
Alexis de Talhouët [Thu, 15 Sep 2016 13:16:30 +0000 (09:16 -0400)]
Add blueprint wiring for mdsal-netconf-yang-library

Change-Id: I36f331c6486130f55411fb794625a78780da6268
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for mdsal-netconf-monitoring 08/45608/20
Alexis de Talhouët [Wed, 14 Sep 2016 23:45:04 +0000 (19:45 -0400)]
Add blueprint wiring for mdsal-netconf-monitoring

Define concurrent maps and sets to avoid having to synchronize
functions when operation are occuring on those objects.

Change-Id: Icc3e5e688a9b1c131eb28c995c9689f6425fc7b2
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring to mdsal-netconf-notification 28/45628/18
Alexis de Talhouët [Wed, 21 Sep 2016 23:23:28 +0000 (19:23 -0400)]
Add blueprint wiring to mdsal-netconf-notification

Change classes' modifiers to public so they can be instantiated
using blueprint.

Change-Id: I7b9ac6eaca8f8d7ff8b058e257b5092160ba09bb
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring to netconf-notification-impl 52/45752/21
Alexis de Talhouët [Wed, 26 Oct 2016 15:03:20 +0000 (11:03 -0400)]
Add blueprint wiring to netconf-notification-impl

- add the mdsal-notification-mapper blueprint xml file in mdsal-netconf-notification,
as this bundle is pulled in by the odl-netconf-mdsal feature, loading the config system
file responsible to create the modules.

Change-Id: I67fb0be3e9765177bb34f81461978954b4632a53
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for mdsal-netconf-connector 07/45607/16
Alexis de Talhouët [Tue, 20 Sep 2016 16:06:41 +0000 (12:06 -0400)]
Add blueprint wiring for mdsal-netconf-connector

Change-Id: Ic25810cd354c2fc37362248d8267f0b4d7e6d412
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for netconf-impl 50/45750/21
Alexis de Talhouët [Tue, 20 Sep 2016 19:57:02 +0000 (15:57 -0400)]
Add blueprint wiring for netconf-impl

- create mdsal-netconf-impl bundle containing the blueprint xml
file to start-up the md-sal netconf server implementation.

Change-Id: I43e57671651d4321f7a955376b6f6850cc430f56
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for netconf-ssh 74/45774/13
Alexis de Talhouët [Wed, 12 Oct 2016 02:10:27 +0000 (22:10 -0400)]
Add blueprint wiring for netconf-ssh

- create mdsal-netconf-ssh bundle containing the blueprint xml
file to start-up the md-sal netconf server ssh.

Change-Id: I20d3d22f8c58b8b28a113f3969c9da0e7d84b028
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoAdd blueprint wiring for aaa-authn-odl-plugin 99/45599/17
Alexis de Talhouët [Wed, 5 Oct 2016 20:00:11 +0000 (16:00 -0400)]
Add blueprint wiring for aaa-authn-odl-plugin

Change-Id: Ice0fcaf58aae9b9402e9b6e515e57b2157a1be69
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
7 years agoClear out tx reference immediately after submit. 83/47783/2
Tomas Cere [Mon, 31 Oct 2016 15:23:00 +0000 (16:23 +0100)]
Clear out tx reference immediately after submit.

When sumbmitting multiple transactions after each other
you could get into a state in which a transaction was submitted
and the reference wasn't cleared out in the callback resulting in
attempts to use an already finished transaction.

Change-Id: Iebf6ed10760c106e45c51665c63f45debe7e7063
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoAdd netconf-util tests and remove unused classes 69/47769/1
Andrej Mak [Mon, 31 Oct 2016 06:43:04 +0000 (07:43 +0100)]
Add netconf-util tests and remove unused classes

Change-Id: I37d10d6e7a790d0fe58b64f9a91a4d29bd0eed24
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoAdd netconf-impl unit tests 13/47713/1
Andrej Mak [Fri, 28 Oct 2016 06:36:29 +0000 (08:36 +0200)]
Add netconf-impl unit tests

Change-Id: If36e4cee4de8635b6e361e0e6eb9809060f99dbd
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoMerge "Bug 6931 - Fix unsupported specific type of leaf"
Tomas Cere [Thu, 27 Oct 2016 15:58:34 +0000 (15:58 +0000)]
Merge "Bug 6931 - Fix unsupported specific type of leaf"

7 years agoMerge "Use UTF-8 as the standard output"
Tomas Cere [Thu, 27 Oct 2016 15:56:00 +0000 (15:56 +0000)]
Merge "Use UTF-8 as the standard output"

7 years agoUse UTF-8 as the standard output 65/47665/2
Robert Varga [Thu, 27 Oct 2016 11:37:17 +0000 (13:37 +0200)]
Use UTF-8 as the standard output

Do not rely on environment-specific encoding, but always
use UTF-8 as the target encoding.

Change-Id: I540fed7611ec66ae2aaeec3b86e21af7376208b9
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoMerge "InstanceIdentifierCodecImpl JUnit test"
Tomas Cere [Thu, 27 Oct 2016 11:54:44 +0000 (11:54 +0000)]
Merge "InstanceIdentifierCodecImpl JUnit test"

7 years agoBug 6931 - Fix unsupported specific type of leaf 45/46845/12
Jakub Toth [Wed, 12 Oct 2016 16:59:33 +0000 (18:59 +0200)]
Bug 6931 - Fix unsupported specific type of leaf

  * add value to YangInstanceIdentifier as type of leaf
  * converting of value of leaf to String in
    YangInstanceIdentifierSerializer
  * fix tests according to parsing value of leaf by type

Change-Id: I4796b0b116b46d57b9c302bb828beab692f40ed3
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoMerge "Bug 7032 netconf-console support schemaless mount point"
Tomas Cere [Thu, 27 Oct 2016 10:21:44 +0000 (10:21 +0000)]
Merge "Bug 7032  netconf-console support schemaless mount point"

7 years agoUse SerializationUtils from sal-clustering-commons 48/47648/1
Tom Pantelis [Thu, 27 Oct 2016 01:39:48 +0000 (21:39 -0400)]
Use SerializationUtils from sal-clustering-commons

THe SerializationUtils class has been moved from sal-distributed-datastore to
sal-clustering-commons by https://git.opendaylight.org/gerrit/#/c/47637/ so
change usages.

Change-Id: Id279d5c805a400b650cbe2fc8f714c0d1a0794a6
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
7 years agoInstanceIdentifierCodecImpl JUnit test 27/47027/4
matus.kubica [Mon, 17 Oct 2016 15:10:08 +0000 (17:10 +0200)]
InstanceIdentifierCodecImpl JUnit test

Test serialize and deserialize methods of InstanceIdentifierCodecImpl class

Change-Id: Id40a25e2ed5828cc78368f4baa9dfdd205f078d3
Signed-off-by: matus.kubica <Matus.Kubica@pantheon.tech>
7 years agoBug 7032 netconf-console support schemaless mount point 70/47570/1
Geng Xingyuan [Wed, 26 Oct 2016 02:45:36 +0000 (10:45 +0800)]
Bug 7032  netconf-console support schemaless mount point

Change-Id: Id7ed42f87f72a5162ecb6bfdc798062307a3dad0
Signed-off-by: Geng Xingyuan <geng.xingyuan@zte.com.cn>
7 years agoAdd netconf-netty-util tests 74/47474/1
Andrej Mak [Fri, 21 Oct 2016 12:41:09 +0000 (14:41 +0200)]
Add netconf-netty-util tests

Change-Id: I34adb433d6e078f3c95fd4a1516d44ce8ee0463a
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoAdd blueprint wiring for netconf-client 35/45735/16
Alexis de Talhouët [Mon, 24 Oct 2016 15:25:07 +0000 (11:25 -0400)]
Add blueprint wiring for netconf-client

- move netconf-config-dispatcher to netconf-client because the *Module
is creating a proxy that needs to share the same classpath as the netconf-client
as it is the bundle providing its implementation and some of its classes
aren't public, but either package-private or protected.

- remove netconf-config-dispatcher from everywhere, but keep the models
there for now as the USC project is dependent on them. To avoid having a flag
day, we keep the models here until https://git.opendaylight.org/gerrit/#/c/46621/
is merged. That patch will be eligible to be merged only once this current
patch is merged.

Change-Id: I2b7007115bf7228ceac6db5946d4e0b859d8ecc6
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>