netconf.git
6 years agoBug 8533: Not possible to invoke RPC on mount points with new Restconf 87/57987/7
Ivan Hrasko [Mon, 29 May 2017 14:35:48 +0000 (16:35 +0200)]
Bug 8533: Not possible to invoke RPC on mount points with new Restconf

- put identifer of RPC into InstanceIdentiferContext
instead of mount point identifer which leads to fail
in unit test

- when working with mount point use mount point's
schema context to find RPC module, previously used
controller's schema context leads to NPE

- repaired imports in RestconfApplication to use
new implementation

Change-Id: Ieb46b050e881c89ea58bb9f521be69554733d575
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
6 years agoMerge "Bug 8289 - 409 in cluster restperfclient test" into stable/boron
Tomas Cere [Tue, 6 Jun 2017 15:01:04 +0000 (15:01 +0000)]
Merge "Bug 8289 - 409 in cluster restperfclient test" into stable/boron

6 years agoMerge "Bug 8405: Add close check to NetconfDevice" into stable/boron
Tomas Cere [Tue, 6 Jun 2017 14:58:16 +0000 (14:58 +0000)]
Merge "Bug 8405: Add close check to NetconfDevice" into stable/boron

6 years agoBUG-8085: create missing parent augmentation node 66/58266/3
Marek Gradzki [Mon, 5 Jun 2017 14:28:44 +0000 (16:28 +0200)]
BUG-8085: create missing parent augmentation node

Augmentation nodes do not exist in serialized form
(e.g. in edit-config message), but are required by DataTree-based
DOMDataBroker implementations, so should be created if data from
augment is present.

This patch creates missing augment nodes by issuing merge on augmentation
before put operation (based on current behaviour for ListSchemaNodes).

Change-Id: If657ae96e914fc46617099042a833c7d4d5883b7
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoBUG 8566 direct writes to ordered list fail 42/58042/2
Tomas Cere [Wed, 31 May 2017 12:53:57 +0000 (14:53 +0200)]
BUG 8566 direct writes to ordered list fail

Incorrect handling of direct writes into a mapEntry which tries
to merge an empty parent list instead of an exists check but doesnt
correctly handle the possibility of an OrderedMapNode as a parent.

Change-Id: Ia2c75cc50e6ff4c9c7c9be36846c08cc85cff491
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoBug 8455: Yang Patch response is not having the error details 99/57399/1
Ivan Hrasko [Tue, 16 May 2017 08:55:04 +0000 (10:55 +0200)]
Bug 8455: Yang Patch response is not having the error details

- add error-info to error message

Change-Id: I0d637871969ff91850749228e92bda2055c71eef
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBug 8289 - 409 in cluster restperfclient test 71/56871/1
miroslav.kovac [Thu, 11 May 2017 16:38:44 +0000 (18:38 +0200)]
Bug 8289 - 409 in cluster restperfclient test

To ensure message ordering we need ReadWriteTransactionActor. This
way we are sure that all reads and writes will be executed in
the order that they are sent.

Change-Id: I46d4016a5ec47f3291f47cbbcdd1983689aea043
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
7 years agoBug 8405: Add close check to NetconfDevice 55/56855/1
Andrej Mak [Tue, 9 May 2017 11:17:48 +0000 (13:17 +0200)]
Bug 8405: Add close check to NetconfDevice

Since schema resolution runs in its own thread, it is possible,
that handleSalInitializationSuccess is called when
NetconfDeviceCommunicator was closed meanwhile. Add check to
prevent this.

Change-Id: If93d32b26f0b98c4c0d47fdd65fdb5104db20bc5
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoBug 8311 - Apidoc: Incomprehensible 500 id model is wrong 00/56700/1
miroslav.kovac [Tue, 2 May 2017 13:05:11 +0000 (15:05 +0200)]
Bug 8311 - Apidoc: Incomprehensible 500 id model is wrong
Bug 8266 - Apidoc explorer is broken after installing Boron SR3

Depending on path if it is relative or absolute module has to be
resolved different ways. If it is relative path it will have to
be resolved through DataSchemaNote which returns namespace and
revision of module in which node is situated. If it is absolute
path we need TypeDefinition which returns a namespace and
revision of original module.

Change-Id: I522ea66383ba1d65e6674d5e8ff67ec31e019303
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
(cherry picked from commit 5ee44740e99f60768f488b7c8fb00873ed758a79)

7 years agoMerge "Bug 8084 - FilterContentValidator.getKeyValues creates invalid YII key values...
Jakub Morvay [Wed, 3 May 2017 07:09:06 +0000 (07:09 +0000)]
Merge "Bug 8084 - FilterContentValidator.getKeyValues creates invalid YII key values" into stable/boron

7 years agoBug 8197: Deregister schema sources on actor stop 98/55998/4
Andrej Mak [Mon, 24 Apr 2017 13:08:27 +0000 (15:08 +0200)]
Bug 8197: Deregister schema sources on actor stop

NetconfNodeActor registers schema source provider
to schema registry. When mountpoint is removed, this
registration should be removed too. If it isn't,
following issue can happen:

1. Create mountpoint for device1
2. Master actor for device1 is registered as mod-1.yang provider
3. Delete device1
4. Create mountpoint for device2
5. Master actor for device2 is registered as mod-1.yang provider
6. Register slave -
   schemaContextFactory.createSchemaContext(sourceIdentifiers)
   is called
7. Since dead device1 master is still registered as provider,
   ask in ProxyYangTextSourceProvider timeouts
8. After timeout device2 master is queried
9. Device 2 slave mountpoint registered

This delays slave mountpoint registration.

Change-Id: I060c8b1988ba7b54f9a93d7eb37adb5c5e48b23b
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoRemove references to controller's sal-remote 45/56145/1
Robert Varga [Thu, 27 Apr 2017 09:11:40 +0000 (11:11 +0200)]
Remove references to controller's sal-remote

This model has been migrated here, so all references should
be removed.

Change-Id: I8921c66a702a4f5f914c68c9339a46e175cc7b1e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoRefactor netconf clustered topology tests 04/56004/1
Andrej Mak [Tue, 25 Apr 2017 06:19:53 +0000 (08:19 +0200)]
Refactor netconf clustered topology tests

- split long tests into smaller
- remove duplicated code

Change-Id: I64913380fd0768394b430971ef5ff118d56b7b6b
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoMerge "Bug 8152: Add way to configure idle timeout" into stable/boron
Jakub Morvay [Tue, 25 Apr 2017 12:59:25 +0000 (12:59 +0000)]
Merge "Bug 8152: Add way to configure idle timeout" into stable/boron

7 years agoBug 8152: Add way to configure idle timeout 78/55978/1
Andrej Mak [Wed, 19 Apr 2017 08:32:18 +0000 (10:32 +0200)]
Bug 8152: Add way to configure idle timeout

Clustered apps should be configurable via datastore
to allow config distribution to all nodes according to
https://wiki.opendaylight.org/view/Using_Blueprint#Using_the_Datastore
Add such configuration for clustered topology.

Change-Id: I1a318590c75c6c95da48cb1e0521994f0b83dfe4
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoDo not include duplicate models 70/55970/1
Robert Varga [Sat, 11 Mar 2017 19:59:58 +0000 (20:59 +0100)]
Do not include duplicate models

Adding same module into the CrossSourceStatementReactor guarantees
namespace conflicts, which are flushed out by BUG-7424 handling.

Make sure we do not add same modules multiple times.

Change-Id: I76a300c14392e1de02d8f055100c75a5c66fe61b
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 8152: Transaction is already opened 73/55873/3
Andrej Mak [Wed, 19 Apr 2017 06:12:36 +0000 (08:12 +0200)]
Bug 8152: Transaction is already opened

This issue happens, when for some reason transaction
submit or cancel message isn't delivered to master
node. With current implementation, only one device
transaction can be opened at the time, so submit or
cancel delivery failure will lock device forever.

To prevent this, this patch introduces write trancaction
idle timeout. Write transaction actor will be stopped
and its device transaction cancelled, when no message
is received for given time. Cancellation unlocks device,
so mountpouint is usable again.

Change-Id: I37bef30038cf6fd10fa5149a3fa949540ac16eab
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoChange handling of netconf cluster transactions 04/55804/1
Andrej Mak [Fri, 24 Feb 2017 07:58:01 +0000 (08:58 +0100)]
Change handling of netconf cluster transactions

Own actor is created on master for every transaction.
Proxy transactions use this actor for mount point access.
Creation of proxy transaction initiates sending of message
to the master node actor. Master node actor starts
transaciton actor if needed.
Both master and slaves communicate with device via
proxy transactions.

For write transaction, submit and cancel cause actor stop.
There can be single instance of read actor, which can be
reused for all transactions.

Change-Id: Iea39d794e8f2026b76f049409a718b6d94f41649
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoClose read-only transactions 54/55254/1
Robert Varga [Wed, 19 Apr 2017 17:12:53 +0000 (19:12 +0200)]
Close read-only transactions

As noted in API, read-only transactions are resources and must
be closed just as any other external resource.

Change-Id: I0f2d888a31edf242bc48410e6f2d4dfeed43a6b3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoBUG-7868: perform checks before starting modifications 11/55211/2
Robert Varga [Wed, 19 Apr 2017 11:10:28 +0000 (13:10 +0200)]
BUG-7868: perform checks before starting modifications

The codepath for makeNormalPost() performs sub-optimal emulation
of create().

This patch changes the logic to first check for presence and then
perform modifications. This saves cycles as continuous modify/read
cycles incur heavy penalty on DataTree and also allows batching
of modification requests.

Change-Id: Ic8e18ada094334948170f2a147da806db7db1a16
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoBug 8115: Change URI decoding from ISO-8859-1 to UTF-8 43/54943/1
Ivan Hrasko [Thu, 13 Apr 2017 08:15:44 +0000 (10:15 +0200)]
Bug 8115: Change URI decoding from ISO-8859-1 to UTF-8

Change-Id: I3bcc7cae197aa267a43c8598f54050e987712c9a
Signed-off-by: lbeles <lbeles@frinx.io>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoMerge "Bug: 8037 YANG Patch using "replace" instead of "merge"" into stable/boron
Jakub Morvay [Mon, 10 Apr 2017 13:23:30 +0000 (13:23 +0000)]
Merge "Bug: 8037 YANG Patch using "replace" instead of "merge"" into stable/boron

7 years agoMerge "Bug 5581: Optimize subtree filtering" into stable/boron
Jakub Morvay [Mon, 10 Apr 2017 09:53:39 +0000 (09:53 +0000)]
Merge "Bug 5581: Optimize subtree filtering" into stable/boron

7 years agoMerge "Bug 7812: NPE when NetconfDeviceSalProvider.close" into stable/boron
Jakub Morvay [Mon, 10 Apr 2017 09:07:40 +0000 (09:07 +0000)]
Merge "Bug 7812: NPE when NetconfDeviceSalProvider.close" into stable/boron

7 years agoBug 8084 - FilterContentValidator.getKeyValues creates invalid YII key values 74/54574/4
miroslav.kovac [Mon, 10 Apr 2017 06:26:45 +0000 (08:26 +0200)]
Bug 8084 - FilterContentValidator.getKeyValues creates invalid YII key values

Change-Id: Ie6c65c9cb005f9f1be85e04a8cf643e48e07bb94
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
7 years agoBug 5581: Optimize subtree filtering 78/53678/3
Andrej Mak [Thu, 9 Feb 2017 13:35:14 +0000 (14:35 +0100)]
Bug 5581: Optimize subtree filtering

If single list entry with key is specified in filter,
only that specific entry is read from datastore, thus
filtering has smaller input to process.

Change-Id: Iae46e3c25067d35f6bcacc40d0997d008da8fb29
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoBug 8072: Fix decoding of URLs with external identityref 89/53789/3
Marek Gradzki [Fri, 24 Mar 2017 09:49:52 +0000 (10:49 +0100)]
Bug 8072: Fix decoding of URLs with external identityref

Mount point schema (rather than global) should be used
to decode identitirefs defined in external modules.

Change-Id: I51f135fe0cd5ceee39d5a2e6f0fc62631cf4437b
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoFix LibraryModulesSchemasTest failure 46/54546/1
Jakub Morvay [Fri, 24 Mar 2017 08:59:11 +0000 (09:59 +0100)]
Fix LibraryModulesSchemasTest failure

LibraryModulesSchemasTest#testCreateInvalidModulesEntries() tests
filtering invalid modules entries during resolving
ietf-netconf-yang-library/modules-state/modules node.

Resolution goes as follows. We parse xml document containing
ietf-netconf-yang-library/modules-state retrieved from the device with
help of DomToNormalizedNodeParserFactory. Then we filter invalid modules
entries from the parsed modules list node. Module entry is considered
invalid if its revision or schema url are invalid.

However, change in yangtools
https://git.opendaylight.org/gerrit/#/c/53553 causes that parsing
invalid revision will fail whole parsing xml process with unchecked
exception.

For now, do not test modules with bad revision. This is intended just as
a temporary solution. We will also need to slightly change our
ietf-netconf-yang-library/modules-state/modules node resolution logic.
Opened BUG 8071 to track that.

Change-Id: If12ae8d7bf94528088aac81e78b24058c5152283
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
(cherry picked from commit 95452d33026b37907b541dc47006426e3b3e35ad)

7 years agoBumping versions by x.y.(z+1) for next dev cycle 83/54483/1
Anil Belur [Fri, 7 Apr 2017 07:55:51 +0000 (17:55 +1000)]
Bumping versions by x.y.(z+1) for next dev cycle

Change-Id: Ic71e33faab853911061c97cde8ada0cc5f3efeee
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoBug 7812: NPE when NetconfDeviceSalProvider.close 06/54306/1
matus.kubica [Tue, 4 Apr 2017 12:56:07 +0000 (14:56 +0200)]
Bug 7812: NPE when NetconfDeviceSalProvider.close

Clustered connector close logic could be called twice on master.
Add boolean guard field to prevent this.

Add null check to netconf device sal provider close method
to prevent NPE.

Change-Id: Ib84be162826726169fb254a933781bb39dce604a
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
Signed-off-by: matus.kubica <matus.kubica@pantheon.tech>
7 years agoBug: 8037 YANG Patch using "replace" instead of "merge" 01/53701/1
Wenbo Hu [Tue, 21 Mar 2017 23:46:39 +0000 (10:46 +1100)]
Bug: 8037 YANG Patch using "replace" instead of "merge"

Change-Id: Ic53b0649b52529e9bf244b82d85582d343aa95e9
Signed-off-by: Wenbo Hu <huwenbo1988@gmail.com>
(cherry picked from commit c82fa3134d0f582f7e49f5b6cfe8e50a02d77f19)

7 years agoMerge "Bug 7906: Fixed json parsing on patch request" into stable/boron
Jakub Morvay [Fri, 17 Mar 2017 21:46:49 +0000 (21:46 +0000)]
Merge "Bug 7906: Fixed json parsing on patch request" into stable/boron

7 years agoMerge "Bug 7295 - Incorrect handling of device transactions in clustered setting...
Tomas Cere [Fri, 17 Mar 2017 14:21:31 +0000 (14:21 +0000)]
Merge "Bug 7295 - Incorrect handling of device transactions in clustered setting" into stable/boron

7 years agoMerge "Clear out tx reference immediately after submit." into stable/boron
Tomas Cere [Fri, 17 Mar 2017 13:54:35 +0000 (13:54 +0000)]
Merge "Clear out tx reference immediately after submit." into stable/boron

7 years agoBug 7906: Fixed json parsing on patch request 36/52836/7
David Goldberg [Sun, 5 Mar 2017 12:50:33 +0000 (14:50 +0200)]
Bug 7906: Fixed json parsing on patch request

Currently lists with simple objects (string, int, etc.) are not
supported in the patch request. This commit adds support for that.

Change-Id: I4310a683aa42271b914c5dd8c3349bb2bac9e971
Signed-off-by: David Goldberg <gdavid@hpe.com>
7 years agoBug 7987: Json HTTP PATCH: Problem parsing simple leaf value 95/53395/1
Ivan Hrasko [Wed, 15 Mar 2017 07:41:54 +0000 (08:41 +0100)]
Bug 7987: Json HTTP PATCH: Problem parsing simple leaf value

Change-Id: I8094797fc2a26bd809631d995a29e111320e664e
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
(cherry picked from commit aca66f6d6b8065b88d73bec17822ac6d226d9199)

7 years agoFix autorelease fail 87/53387/1
Ivan Hrasko [Thu, 16 Mar 2017 08:28:34 +0000 (09:28 +0100)]
Fix autorelease fail

- fix regression caused by https://git.opendaylight.org/gerrit/#/c/53297

Change-Id: Ib2a53de21d7fd050bcaa37bcf040853ac617f5f7
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBug 6856: Rpc definition should implicitly define input/output 36/52936/1
Igor Foltin [Mon, 6 Mar 2017 13:41:23 +0000 (14:41 +0100)]
Bug 6856: Rpc definition should implicitly define input/output

Corresponding patch for netconf.

Change-Id: I041a90e222578f43144d42cd72dd2f9457362a4a
Signed-off-by: Igor Foltin <ifoltin@cisco.com>
(cherry picked from commit 23f46e2b1c14be9ee7be61d3285d52cc27cfaefc)

7 years agoMerge "Bug 7686 - Make notifications defined by yangs automatic loaded for streaming...
Jakub Morvay [Fri, 24 Feb 2017 14:35:00 +0000 (14:35 +0000)]
Merge "Bug 7686 - Make notifications defined by yangs automatic loaded for streaming" into stable/boron

7 years agoBug 7728 - modules-state conflict kills rest-connector-default-impl 43/52243/2
Ivan Hrasko [Fri, 24 Feb 2017 11:52:11 +0000 (12:52 +0100)]
Bug 7728 - modules-state conflict kills rest-connector-default-impl

-improved workaround:
reset transaction chain to be able to continue writing another data
after transaction fail

Change-Id: I24d608b9a01da10ab237f3b1d9b29a6f30953e0d
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
7 years agoBug 7728 - modules-state conflict kills rest-connector-default-impl 69/52169/1
Ivan Hrasko [Thu, 16 Feb 2017 13:27:25 +0000 (14:27 +0100)]
Bug 7728 - modules-state conflict kills rest-connector-default-impl

- this is just Carbon workaround for bug
- ignore error when another node is already putting the same data

Change-Id: I091393c27cb4ab8d7db04257ffe0e922d6487843
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
(cherry picked from commit e95dcf13b6b1c442ef9a0fa69533cb2ee6eed38c)

7 years agoFix error reporting for PUT/POST 01/52101/1
Tom Pantelis [Mon, 13 Feb 2017 15:13:17 +0000 (10:13 -0500)]
Fix error reporting for PUT/POST

If a datastore failure occurs for PUT or POST, restconf reports the
error message "Problem while PUT operations" which is neither useful
nor grammatically correct.

It used to report the underlying error info however this was broken by
https://git.opendaylight.org/gerrit/#/c/40235/ which changed the code to
use a Future callback with a CountDownLatch but doesn't propagate errors
from the Future. I don't understand why the code was changed in this manner
when it worked fine and was much simpler using checkedGet. I changed the
code back to use checkedGet, in several places.

Change-Id: I2e917d7eedc569702cdf3a54c4aa0321fe229ca1
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
(cherry picked from commit 0f3e7394ddba30db976ec5b0afe0db64c6186a32)

7 years agoBug 7686 - Make notifications defined by yangs automatic loaded 98/52098/1
Jakub Toth [Thu, 9 Feb 2017 14:54:47 +0000 (15:54 +0100)]
Bug 7686 - Make notifications defined by yangs automatic loaded
for streaming

  * make notifications define by yangs initialized by restconf
server
  * subscribe to notifications define by yangs by getting of
location specfici stream
  * fix test

Change-Id: Ib2a3787e5d0252b7200190643f848a180260d167
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 159f2a9cfd97531452c174cede9a4f3ab1262935)

7 years agoBug 7295 - Incorrect handling of device transactions in clustered setting 06/52006/1
Jakub Morvay [Tue, 14 Feb 2017 16:57:34 +0000 (17:57 +0100)]
Bug 7295 - Incorrect handling of device transactions in clustered setting

Transactions on mounted device in clustered setting are delegated to
leader node and leader node actually configures the device.

Implementation, hovewer, depens only on one transaction at a time.
Delegated calls can interleave together, for example one node can submit
transaction of the other node.

Explicitly open a new tranasction before applying any operations to it.

Change-Id: I0c5715a9cd089dd809b071d411884e71e9793849
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
(cherry picked from commit da599396d0581c113dba72b33f811c2a0d18ec9b)

7 years agoClear out tx reference immediately after submit. 97/51997/1
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>
(cherry picked from commit c3cb4f829d82cd7e6d191152b0d6f53eacb68501)

7 years agoRemove blocking get in read transaction 39/51939/1
Andrej Mak [Mon, 13 Feb 2017 09:30:40 +0000 (10:30 +0100)]
Remove blocking get in read transaction

Change-Id: I6829aea0e2cd1f98c3d845db05b4d52dfad8f75e
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoMerge "Bug 5581: Merge empty map instead of exist check" into stable/boron
Jakub Morvay [Thu, 16 Feb 2017 06:43:38 +0000 (06:43 +0000)]
Merge "Bug 5581: Merge empty map instead of exist check" into stable/boron

7 years agoBug 5581: Merge empty map instead of exist check 22/51922/1
Andrej Mak [Tue, 14 Feb 2017 14:34:50 +0000 (15:34 +0100)]
Bug 5581: Merge empty map instead of exist check

Change-Id: Id48fe23e6e3f7c3f333c1b1bc6b88ffc888e197a
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoMerge changes from topic 'cherry-pick form master to RFC8040' into stable/boron
Jakub Morvay [Wed, 15 Feb 2017 12:22:13 +0000 (12:22 +0000)]
Merge changes from topic 'cherry-pick form master to RFC8040' into stable/boron

* changes:
  Clean up Rfc8040
  Bug 7735 - Update restconf models by RFC 8040
  Bug 7429 - Upgrade docgen in restconf to the latest draft of ietf-restconf
  Bug 7206 - Chinese improper code problem.
  Bug 5679 - implement new service RestconfService
  Bug 5679 - add new module ietf-restconf
  Bug 5679 - implement ietf-restconf-monitoring - cleanup
  Bug 5679 - implement ietf-restconf-monitoring - streams
  Bug 5679 - implement ietf-restconf-monitoring - capabilities
  Bug 5679 - prepare constants for ietf-yang-library model
  Bug 5679 - add new module ietf-restconf-monitoring to restconf
  Bug 5679 - fix generating of schema by ietf-yang-library and path of RestconfSchemaService
  Bug 5679 - ietf-yang-library module implemetation
  Bug 5679 - prepare constants for ietf-yang-library model
  Bug 5679 - new module 'models' for new models in restconf
  Bug 5679 - renamed package rest.services to base.services
  Add missing yang - sal-remote
  Do not attempt to construct invalid QNames
  Bug 7231 - Upgrade ietf-restconf draft17 to draft18
  Bug 7207 - Bad parsing of identityref in typedef for last ietf-restconf draft
  Bug 6951 - Implement Query parameters - with-defaults
  Bug 6947 / Bug 6948 - implement point and insert query params
  Bug 4883 - implement query parameter - filter
  Bug 6949 / Bug 6950 - Implementation of start-time and stop-time query parameters
  Bug 6935 - RPC in latest draft doesn't work - problem of parsing to instance identifier
  Bug 6995 - Change event notification subscription usability PART2
  Bug 6995 - Change event notification subscription usability PART1
  Bug 6903 - Implement Query parameters - fields
  Bug 6895 - Implement Query parameters - depth
  Bug 6382 - add apidoc for latest restconf draft
  Bug 6731 - add valid example values
  Bug 6931 - Fix unsupported specific type of leaf
  Use UTF-8 as the standard output
  InstanceIdentifierCodecImpl JUnit test
  Bug 6679 - api explorer creates false examples
  Bug 6272 - support RESTCONF PATCH for mounted NETCONF nodes
  Bug 6746 - Restconf: Not working GET operation on mount points
  Fix close() in provider

7 years agoBug 5581: Minor Exi decoder optimization 48/51848/1
Andrej Mak [Tue, 14 Feb 2017 08:01:40 +0000 (09:01 +0100)]
Bug 5581: Minor Exi decoder optimization

Initialize DomSource with new document. Otherwise new
document is created by SAX2DOM class, which is more
expensive as it includes creating new
DocumentBuilderFactory etc.

Change-Id: I8511f39c5ae099d55c07fe3844e4aae5b3bd9bbb
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
7 years agoClean up Rfc8040 45/51745/2
Robert Varga [Thu, 9 Feb 2017 09:47:11 +0000 (10:47 +0100)]
Clean up Rfc8040

- use URI.create() as we know the format is correct
- use SimpleDateFormatUtil
- make sure constants are constant
- QName contants should be interned
- throw ExceptionInInitializerError on constant init failure

Change-Id: Ice3cb7fcff8617217a235d830fd7aa5dec1bd26d
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 7735 - Update restconf models by RFC 8040 44/51744/2
Jakub Toth [Fri, 3 Feb 2017 14:20:45 +0000 (15:20 +0100)]
Bug 7735 - Update restconf models by RFC 8040

  * rename base class Draft18 -> Rfc8040

Change-Id: I60da9a81472fb86f8a4e2bb2df6d90c0e58ec9e4
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 7429 - Upgrade docgen in restconf to the latest draft of ietf-restconf 43/51743/2
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 7206 - Chinese improper code problem. 42/51742/2
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 5679 - implement new service RestconfService 41/51741/2
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 40/51740/2
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 39/51739/2
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 38/51738/2
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 37/51737/2
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 36/51736/2
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 35/51735/2
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 34/51734/2
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 33/51733/2
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 32/51732/2
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 31/51731/2
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 30/51730/2
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 agoAdd missing yang - sal-remote 46/51746/2
Jakub Toth [Sat, 11 Feb 2017 01:23:20 +0000 (02:23 +0100)]
Add missing yang - sal-remote

Change-Id: Ibffcc98866a136175d13422d104bf1929bf2102f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoDo not attempt to construct invalid QNames 29/51729/1
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>
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 7231 - Upgrade ietf-restconf draft17 to draft18 28/51728/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 agoBug 7207 - Bad parsing of identityref in typedef for last ietf-restconf 27/51727/1
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 26/51726/1
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 25/51725/1
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 24/51724/1
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 6949 / Bug 6950 - Implementation of start-time and stop-time 23/51723/1
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 agoBug 6935 - RPC in latest draft doesn't work - problem of parsing 22/51722/1
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 21/51721/1
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 20/51720/1
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 agoBug 6903 - Implement Query parameters - fields 19/51719/1
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>
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6895 - Implement Query parameters - depth 18/51718/1
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 agoBug 6382 - add apidoc for latest restconf draft 17/51717/1
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 16/51716/1
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 agoBug 6931 - Fix unsupported specific type of leaf 32/51632/2
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 agoUse UTF-8 as the standard output 15/51715/1
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 agoInstanceIdentifierCodecImpl JUnit test 14/51714/1
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 6679 - api explorer creates false examples 13/51713/1
miroslav.kovac [Mon, 10 Oct 2016 16:53:01 +0000 (18:53 +0200)]
Bug 6679 - api explorer creates false examples

Api explorer created false examples when yang has two data nodes with
same name in different containers or lists. It compared name of data
nodes rather than whole path to the data node which result to creting
examples of same types even if they should be different.

Fix examples by comparing the path to data node rather than just name
of the node.

Change-Id: I6f73fb37985fc78ad67ecc466ebfdfe569d7cd8d
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
7 years agoBug 6272 - support RESTCONF PATCH for mounted NETCONF nodes 12/51712/1
Ivan Hrasko [Fri, 23 Sep 2016 11:33:13 +0000 (13:33 +0200)]
Bug 6272 - support RESTCONF PATCH for mounted NETCONF nodes

- solution for Restconf draft17
- make mount point service available when identifier is parsed
- added unit tests

Change-Id: I7133efe7d7517ff49ff9caee42f1723d491973d5
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6746 - Restconf: Not working GET operation on mount points 11/51711/1
Ivan Hrasko [Mon, 19 Sep 2016 14:22:53 +0000 (16:22 +0200)]
Bug 6746 - Restconf: Not working GET operation on mount points

- support for reading data on mount points
- improved merge for config and state data:
when identifiers for data in config and state are the same
then merge must by done at one level down, otherwise state
overrides config or vice versa
- identiers are parsed to identifiers context with reference
to mount points when data are behind mount point
- adapted and added unit tests

Change-Id: I195b3195c0eaa47effd7759e60611a3f420c9a6b
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoFix close() in provider 10/51710/1
Jakub Toth [Tue, 4 Oct 2016 12:02:06 +0000 (14:02 +0200)]
Fix close() in provider

 *added condition on get() from handler

Change-Id: I45c89c44585dc1e5e3ae685eba8d6033ea2e171f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoFix autorelease - stub channel and eventLoop 84/51084/1
Alexis de Talhouët [Thu, 26 Jan 2017 18:21:39 +0000 (13:21 -0500)]
Fix autorelease - stub channel and eventLoop

Since netty version has been bumped, change are required in the unit test.

Change-Id: I7ff42c9538f4fdfadf1c1677ced81b1afa767e31
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
7 years agoBumping versions by 0.0.1 for next dev cycle 00/49600/1
Anil Belur [Tue, 20 Dec 2016 04:18:17 +0000 (14:18 +1000)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: If0d03515044dedb8aaaba3e6806e361bf154cd40
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoBug 6911 - RPC support in singleton 74/48974/1
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 agoAdd mdsal-singleton-common-api to singleton pom 32/47432/2
Tomas Cere [Mon, 24 Oct 2016 13:58:20 +0000 (15:58 +0200)]
Add mdsal-singleton-common-api to singleton pom

Change-Id: I4159b4ef312f5d924426af82e1bf02f07ee8a5bc
Signed-off-by: Tomas Cere <tcere@cisco.com>
(cherry picked from commit 485d8d0ef7de77ffd15dd2913227a4c368100d1f)

7 years agoRemove old clustered netconf topology implementation 02/47602/4
Jakub Morvay [Fri, 21 Oct 2016 11:22:39 +0000 (13:22 +0200)]
Remove old clustered netconf topology implementation

Since new netconf clustering implementation resides in
netconf-topology-singleton module, old implementation is not needed
anymore. This patch gets rid of it.

Change-Id: I99ba7baced099bd5431a4014378d4ab3b22d93ba
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 7172 - Correct error-info for missing-attribute errors 85/48785/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 7240 - Restconf returns Status.Ok if delete fails 05/48705/2
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 80/47480/10
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 agoSet mdsal version to Boron-SR2 version 45/48345/1
Thanh Ha [Tue, 15 Nov 2016 01:50:14 +0000 (20:50 -0500)]
Set mdsal version to Boron-SR2 version

Patch https://git.opendaylight.org/gerrit/47394 pulles in the incorrect
mdsal-artifacts version for current stable/boron. This patch updates the
version to the correct one fixing autorelease nightly build.

Change-Id: Ic40e6ca2b9c865ef81d0ea2fd3a9e92209c372b6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge changes I0e30376d,I7b95f664 into stable/boron
Tomas Cere [Thu, 10 Nov 2016 13:49:49 +0000 (13:49 +0000)]
Merge changes I0e30376d,I7b95f664 into stable/boron

* changes:
  Add logging in tx facade along with the RemoteDeviceId
  Move SubmitFailedReply in the appropriate package

7 years agoMerge "Use SerializationUtils to (de)serialize NormalizedNode and YangInstanceIdentif...
Tomas Cere [Thu, 10 Nov 2016 13:49:35 +0000 (13:49 +0000)]
Merge "Use SerializationUtils to (de)serialize NormalizedNode and YangInstanceIdentifier" into stable/boron

7 years agoBumping versions by 0.0.1 for next dev cycle 18/47918/1
Anil Belur [Fri, 4 Nov 2016 00:36:27 +0000 (10:36 +1000)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: I8522635565af46576554223d2367656dbe03c7d9
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>