mdsal.git
7 years agoBump vorburger.xtendbeans from 1.2.2 to 1.2.3 for bug fixes 54/54054/2
Michael Vorburger [Wed, 29 Mar 2017 17:15:54 +0000 (19:15 +0200)]
Bump vorburger.xtendbeans from 1.2.2 to 1.2.3 for bug fixes

see https://github.com/vorburger/xtendbeans/blob/master/CHANGES.md

related to https://git.opendaylight.org/gerrit/#/c/53844/ and
https://git.opendaylight.org/gerrit/#/c/54053/

Change-Id: I7b392b7c1a54d60b8f746dc6c722dd0917f13ae5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 7603 Actions & RPCs 83/53783/15
Martin Ciglan [Fri, 24 Mar 2017 10:29:41 +0000 (11:29 +0100)]
Bug 7603 Actions & RPCs

- provide means for dealing with Actions, RPCs & routed RPCs
from binding generator v2 point of view
- examples given
- review comments fixed

TODO: JUnit tests

Change-Id: Ie88f728a9854e247d99c2f4a154af9ac4ab70d86
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-8004: handle implicit RPC input 11/53911/8
Robert Varga [Mon, 27 Mar 2017 17:42:17 +0000 (19:42 +0200)]
BUG-8004: handle implicit RPC input

RPC input is always defined implicitly, which is something we cannot
deal with in Binding Specification compatibly, as original generators
did not emit classes for such methods and implicitly map them to Void.

In order to deal with these, we need to recognize when an RPC input
is not declared and re-wire it to a null codec. This loses information,
but it is the best we can do (simply because there is no binding
representation).

Change-Id: I4edbcd0cc886396bdba79f4c0ccfd91ba3d6b2c7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoBindingDOMRpcImplementationAdapter code clean-up 73/53973/3
Martin Ciglan [Tue, 28 Mar 2017 11:12:08 +0000 (13:12 +0200)]
BindingDOMRpcImplementationAdapter code clean-up

- warnings
- package-private access
- typo
- white-spaces

Change-Id: I78f73f503d1f5570b9776f19ce5e0ef88750afad
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoRevert "Add blueprint wiring for ShardedDOMDataTree" 02/53902/2
Tomas Cere [Mon, 27 Mar 2017 14:50:34 +0000 (16:50 +0200)]
Revert "Add blueprint wiring for ShardedDOMDataTree"

We want users to go through the controller implementation
that wraps this one, so this one is no longer needed.
Remove this blueprint to prevent confusion and accidental wiring.

This reverts commit 6bff7756003eaf2c26a91627a424adffba38bc37.

Change-Id: I821b2689abfb2a6ef14c9102111f975d5daf2936
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoBug 1411 #5 BindingGeneratorImpl decomposition - Notifications 23/53723/12
Martin Ciglan [Thu, 23 Mar 2017 10:47:47 +0000 (11:47 +0100)]
Bug 1411 #5 BindingGeneratorImpl decomposition - Notifications

- resolve YANG notifications & notification tied to
data schema nodes from schema context
- further util methods added
- further decomposition in order to
decrease initial BindingGeneratorImpl complexity

TODO: JUnit tests, models

Change-Id: Ie9e16d0ee23a7e1c1f2aab7871967261a013bb6f
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411 #4 BindingGeneratorImpl decomposition - Lists 79/53279/16
Martin Ciglan [Tue, 14 Mar 2017 10:29:50 +0000 (11:29 +0100)]
Bug 1411 #4 BindingGeneratorImpl decomposition - Lists

- resolve Lists from schema context
- further util methods added
- further decomposition in order to
decrease initial BindingGeneratorImpl complexity
- fixes Bug 157 too

Change-Id: Ie9b492c96276819b6e814bff5deff91e7afc1e54
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 1411 #3 BindingGeneratorImpl decomposition - Leafs 68/53268/4
Martin Ciglan [Tue, 14 Mar 2017 10:29:50 +0000 (11:29 +0100)]
Bug 1411 #3 BindingGeneratorImpl decomposition - Leafs

- resolve Leafs from schema context
- preprare getters
- further util methods added
- further decomposition in order to
decrease initial BindingGeneratorImpl complexity

Change-Id: If352546fb4f0fb375705959a54242e657c285e75
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoFix ForeignShardModificationContext's submit method 61/53261/9
Jakub Morvay [Tue, 14 Mar 2017 09:50:11 +0000 (10:50 +0100)]
Fix ForeignShardModificationContext's submit method

ForeingShardModificationContext can be reused by several transactions.
Unready it in its submit method.

Change-Id: I84a3e74176335e87c940109d6a43c9e5131a9f0c
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 7759 - TEST - Getter of BA object fails to construct class instance 90/53390/2
Jakub Toth [Tue, 14 Mar 2017 10:10:29 +0000 (11:10 +0100)]
Bug 7759 - TEST - Getter of BA object fails to construct class instance

 * negative test - if value of data is other like type of data define by yang

Change-Id: Ia6a9abd43e78384f84c867cf6a755cd07d6503c6
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 1411 #2 BindingGeneratorImpl decomposition - Types 34/51634/18
Martin Ciglan [Thu, 9 Feb 2017 15:31:18 +0000 (16:31 +0100)]
Bug 1411 #2 BindingGeneratorImpl decomposition - Types

- resolve Types
from schema context to in-memory generated types
- further util methods added
- further decomposition in order to
decrease TypeProviderImpl Sonar complexity

TODO: jtoth - JUnit tests

Change-Id: I929a1efc66feb7dcf112eb81de542f2187d16f71
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBindingGenerator v1 "copy-paste" bug in RPCs 10/53210/2
Martin Ciglan [Mon, 13 Mar 2017 12:17:22 +0000 (13:17 +0100)]
BindingGenerator v1 "copy-paste" bug in RPCs

This patch fixes kind of "copy-paste" bug revealed during
dealing with Actions in Binding Spec v2. This needs
to be cherry-picked to Boron too.

Change-Id: I22d56fd7ca899e4634ad0c2aaaec63d5b7c11403
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 6859: Binding generator v1 refactoring 40/53140/1
Martin Ciglan [Fri, 10 Mar 2017 13:17:43 +0000 (14:17 +0100)]
Bug 6859: Binding generator v1 refactoring

- make sure package names differ between MDSAL Binding v1 submodules
after refactoring

Change-Id: I6f1def44682f28a00a79ac3c787eeaca5b6755d6
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 7759 - TEST - Getter of BA object fails to construct class instance 75/53075/3
Jakub Toth [Thu, 9 Mar 2017 10:31:08 +0000 (11:31 +0100)]
Bug 7759 - TEST - Getter of BA object fails to construct class instance

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

7 years agoAdd new DOMDataTreeCommitCohort#canCoomit method 60/52960/3
Tom Pantelis [Tue, 7 Mar 2017 14:57:54 +0000 (09:57 -0500)]
Add new DOMDataTreeCommitCohort#canCoomit method

If a cohort registers for yang list entries, there may be multiple
list entry modifications in a transaction thus the canCommit method
needs to take a Collection of DOMDataTreeCandidates for consistency.

For avoid breaking current implementations, I added the new method
with a default implementation that invokes the single DOMDataTreeCandidate
canCommit method with a warning that the new canCommit method should
be implemented. The single canCommit method is now deprecated with a
default implementation that logs an error and returns success.

Change-Id: If83d380a0ca8ba55be9e99b3d1da4d309e9a6487
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
7 years agoForeignShardModificationContext: typo 65/52265/5
Isaku Yamahata [Fri, 24 Feb 2017 21:55:03 +0000 (16:55 -0500)]
ForeignShardModificationContext: typo

typo in ForeignShardModificationContext.
notReady should be false when readying it.

Change-Id: I6ecd3283f1917f9725579496142f3572549d9874
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
7 years agoBug 1411 Binding Generator - BaseYangTypes 10/53010/1
Martin Ciglan [Wed, 8 Mar 2017 14:47:48 +0000 (15:47 +0100)]
Bug 1411 Binding Generator - BaseYangTypes

- provides mapping for YANG built-in types
- prevents Bug 2323 happening

Change-Id: Ic65a4f30d6219f51c8d13eb26c3ff4b14255302e
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 6856: Rpc definition should implicitly define input/output 63/52863/4
Martin Ciglan [Mon, 6 Mar 2017 08:59:21 +0000 (09:59 +0100)]
Bug 6856: Rpc definition should implicitly define input/output

- corresponding patch for MDSAL
- code clean-up in affected class

Change-Id: I715585331496d181031f5a82ce801a1b7271c56d
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-6859 - Binding generator v1 refactoring 45/52945/2
Michael Vorburger [Tue, 7 Mar 2017 14:24:15 +0000 (15:24 +0100)]
BUG-6859 - Binding generator v1 refactoring

Change-Id: I03caf0ec587ea9f6db0bdd87ccebc5df9a28edc6
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 6859 #5 Binding generator v1 refactoring 58/52158/14
Jakub Toth [Wed, 22 Feb 2017 09:57:28 +0000 (10:57 +0100)]
Bug 6859 #5 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- maven-sal-api-gen-plugin module refactoring

Change-Id: I17bd25507894b8b5a42579ee317f5d5fd81f3f20
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #4 Binding generator v1 refactoring 10/52110/15
Jakub Toth [Tue, 21 Feb 2017 12:09:44 +0000 (13:09 +0100)]
Bug 6859 #4 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-java-api-generator module refactoring

Change-Id: Ie898adf78ac9db7f094a26f8f41145c8c960fa62
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #3 Binding generator v1 refactoring 09/52109/15
Jakub Toth [Tue, 21 Feb 2017 11:43:02 +0000 (12:43 +0100)]
Bug 6859 #3 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-generator-impl module refactoring

Change-Id: If3a7615d3c2870d02eae8767ca44bcb0981aaa99
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #2 Binding generator v1 refactoring 08/52108/12
Jakub Toth [Tue, 21 Feb 2017 11:28:10 +0000 (12:28 +0100)]
Bug 6859 #2 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-generator-util module refactoring

Change-Id: I978e49a68458d08a9d397a1a2d4bcc455eea1a37
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #1 Binding generator v1 refactoring 07/52107/12
Jakub Toth [Tue, 21 Feb 2017 11:02:34 +0000 (12:02 +0100)]
Bug 6859 #1 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-generator-api module refactoring

Change-Id: I11537d580c8df500b80104d158de6eef515afb1e
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBindingGeneratorImpl Javadoc & code clean-up 92/52492/3
Martin Ciglan [Wed, 1 Mar 2017 11:13:37 +0000 (12:13 +0100)]
BindingGeneratorImpl Javadoc & code clean-up

- redundancies in Java code fixed
- Javadoc wrong references & missing values fixed
- less imports

Change-Id: If6ec121e74f3d936cd55d4e2cc82a33f745da8f6
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoNormalizing package names according to 07/52007/27
Jakub Toth [Fri, 17 Feb 2017 15:21:34 +0000 (16:21 +0100)]
Normalizing package names according to
https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html

Added parsing of special case with dash in identifier with tests
and documetationf for.

Added parsing of reserved keywords for identifiers with tests and
documentation for.

Change-Id: I7d499b3e96270a8e06e720ef7b63e08fd0362094
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 7182 related: Remove M2E lifecycle mapping 28/52428/2
Michael Vorburger [Tue, 28 Feb 2017 22:48:43 +0000 (23:48 +0100)]
Bug 7182 related: Remove M2E lifecycle mapping

These should never be in individual projects anymore now,
we handle this centrally, either in odlparent,
or https://github.com/vorburger/opendaylight-eclipse-setup,
or by appropriate lifecycle-mapping-metadata.xml in a Maven plugin
(that's what Bug 7182 does for the yang-maven-plugin).

Change-Id: I3649f9a10066dfacd4762b3270bbb2e112e5858f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoDo not pull in yang-parser-impl 62/52362/3
Robert Varga [Tue, 28 Feb 2017 12:43:23 +0000 (13:43 +0100)]
Do not pull in yang-parser-impl

Parser is used only in tests and only via test-utils,
hence this project should not be pulling it in.

Change-Id: I336eda6effff373deea0f82f81643ac73e655e83
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 6856: Rpc definition should implicitly define input/ouput 48/52348/6
Martin Ciglan [Tue, 28 Feb 2017 09:51:32 +0000 (10:51 +0100)]
Bug 6856: Rpc definition should implicitly define input/ouput

- corresponding fix for MD-SAL
- rely on yang model API only

Change-Id: I7380b7d8366c4c18925da09a95a14f5309a8e9ef
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBump Twirl-maven-plugin version & clean-up 18/52318/2
Martin Ciglan [Mon, 27 Feb 2017 15:11:17 +0000 (16:11 +0100)]
Bump Twirl-maven-plugin version & clean-up

Change-Id: I342a36f07b39520ad99d5e9391f498e00693085c
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-6315: use plugin-provided path resolution 21/52221/5
Robert Varga [Thu, 23 Feb 2017 16:38:51 +0000 (17:38 +0100)]
BUG-6315: use plugin-provided path resolution

Rather than relying on SourceStreamAware, make sure we use
the resolver provided by the plugin.

Change-Id: Ia5ec8a739e10bb262f68b2838958d5111e538263
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411: BindingGeneratorImpl decomposition - getter name 56/52256/1
Martin Ciglan [Fri, 24 Feb 2017 14:19:11 +0000 (15:19 +0100)]
Bug 1411: BindingGeneratorImpl decomposition - getter name

- make sure generated getter for data schema nodes
will be compilable Java code

Change-Id: Ie09b90b452d1af3a91bf120df4cff2798ba0b76b
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoFix null comparison warnings 22/52222/2
Robert Varga [Thu, 23 Feb 2017 17:48:17 +0000 (18:48 +0100)]
Fix null comparison warnings

Xtend comparisons to null should be done via !==/===, fix offenders.

Change-Id: I4dff8e444104cca427843aa88a5df989b3fed77c
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411: BindingGeneratorImpl decomposition - Container schema nodes 07/52207/1
Martin Ciglan [Thu, 23 Feb 2017 11:43:58 +0000 (12:43 +0100)]
Bug 1411: BindingGeneratorImpl decomposition - Container schema nodes

- fixes some issues with generated context
- starts using NonJavaCharsConverter utility
- code clean-up

Change-Id: I578205f7d451ed8a1b530643c8fa592f58eb5add
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411 #1 BindingGeneratorImpl decomposition - Container schema nodes 72/51472/8
Martin Ciglan [Mon, 6 Feb 2017 15:24:16 +0000 (16:24 +0100)]
Bug 1411 #1 BindingGeneratorImpl decomposition - Container schema nodes

- resolve container schema nodes
from schema context to in-memory generated types
- able to deal with nested containers
- further decomposition done
- further util methods added
- review comments implemented

TODO: JUnit tests - Jakub Toth

Change-Id: Idd7b0140b03c1130c29488a377023cbdacb3ea50
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoAdd Binding Specification v2 Documentation 62/52062/5
Martin Ciglan [Mon, 20 Feb 2017 08:44:47 +0000 (09:44 +0100)]
Add Binding Specification v2 Documentation

This patch adds description to Binding Specification v2 documentation
how identifiers derived from YANGs are being treated, eventually resolving
to compilable generated code. These issues with compilation
using Binding specification v1 have been originally tracked in following
bugs:

Bug: 2332
Bug: 2641
Bug: 2791
Change-Id: Ib68de210cd72a6823edfc0f75577c1f9ff0f0b78
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 2332 - Binding Java API Generator -> doesn't handle 32/51132/27
Jakub Toth [Fri, 27 Jan 2017 15:34:30 +0000 (16:34 +0100)]
Bug 2332 - Binding Java API Generator -> doesn't handle
non-alphabetic signs in names of enum constants, allowed by
rfc6020 though

 - find and convert non Java chars in identifiers of generated transfer
   objects, initially derived from corresponding YANG
 - this patch also fixes
   https://bugs.opendaylight.org/show_bug.cgi?id=2641

Change-Id: Ide01a2b574970397ddedaf7da09e0d28219d0616
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBUG-7222: Improve ClusterSingletonService error handling. 21/51621/4
Tomas Cere [Thu, 9 Feb 2017 13:13:23 +0000 (14:13 +0100)]
BUG-7222: Improve ClusterSingletonService error handling.

The applications that are managed by singleton service
may throw an unchecked exception while handling the calls from
the service. We also need to handle these so that they don't prevent
other services from being started/stopped.

Change-Id: I711b8c1e8b2fcb8e9a9699ba96fa3b0c2daff594
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoFix generate of comma before augmentations in toString generator 74/51674/2
Jakub Toth [Fri, 10 Feb 2017 10:04:32 +0000 (11:04 +0100)]
Fix generate of comma before augmentations in toString generator

Change-Id: Ibb4c19028b758c27126cc244a8657efbd46bc1b2
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoRemove javadoc version declaration 40/51440/2
Robert Varga [Sun, 5 Feb 2017 15:44:42 +0000 (16:44 +0100)]
Remove javadoc version declaration

javadoc plugin is declared in odlparent, no need to redeclare its
version.

Change-Id: Iafa07a67d49408bb4ea52a4319f9564119d1a7be
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 3147 - Binding spec v1: auto generated code by YANGTOOLS could 82/51382/10
Robert Varga [Thu, 2 Feb 2017 16:24:09 +0000 (17:24 +0100)]
Bug 3147 - Binding spec v1: auto generated code by YANGTOOLS could
be more efficient

  *fix generating of commas in toString() for more effecient
  *tests

Change-Id: I13b59c3c5be90446a9511a9cd46969850cb77595
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoCheckstyle: fix ParenPad violations 08/51408/2
Lorand Jakab [Fri, 3 Feb 2017 15:08:46 +0000 (17:08 +0200)]
Checkstyle: fix ParenPad violations

Enforcing no space(s) after a left parenthesis and before a right
parenthesis is a proposed change [0] which can only be merged when all
violations are fixed in projects enforcing checkstyle. This patch fixes
those violations.

[0] https://git.opendaylight.org/gerrit/#/c/51316/

Change-Id: Iae1f085f903579a264b24176d0b4c17416f6b8a0
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
7 years agoRevert "Bug 3147 - Binding spec v1: auto generated code by YANGTOOLS could" 51/51351/1
Robert Varga [Thu, 2 Feb 2017 16:23:37 +0000 (17:23 +0100)]
Revert "Bug 3147 - Binding spec v1: auto generated code by YANGTOOLS could"

This reverts commit b88102998caf1d7ed9b9e720cc9fe4bbdc7e11bb.

Change-Id: If322b38d32e759522800af099b42d649e1237cb7
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoFix getValue() of bits in union 66/50266/4
Xiao Liang [Wed, 11 Jan 2017 05:59:14 +0000 (05:59 +0000)]
Fix getValue() of bits in union

Call Arrays.toString instead of calling toString directly for bits in union,
since getValue() of bits returns boolean[].

Change-Id: I4b06c95f07ff6d5ff81dc17613ed972b453db184
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
7 years agoBug 3147 - Binding spec v1: auto generated code by YANGTOOLS could 84/49784/19
Jakub Toth [Fri, 23 Dec 2016 21:23:59 +0000 (22:23 +0100)]
Bug 3147 - Binding spec v1: auto generated code by YANGTOOLS could
           be more efficient

  *fix generating of commas in toString() for more effecient
  *tests

Change-Id: I5a1ac0ad8068655168824d89a9acb1f203a64639
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoDon't use deprecated SourceIdentifier.create() method anymore 30/51130/1
Martin Ciglan [Fri, 27 Jan 2017 15:18:38 +0000 (16:18 +0100)]
Don't use deprecated SourceIdentifier.create() method anymore

- replace call with right method
- bit of a code cleanup

Change-Id: Ie9dacf66cbb6494b25e1747952463326152c423a
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-7446: inline xbase-lib 11/50911/4
Robert Varga [Wed, 25 Jan 2017 10:20:06 +0000 (11:20 +0100)]
BUG-7446: inline xbase-lib

xbase-lib requires Guava [14.0,19), leaving us with two options:
- ship two guava versions
- eliminate YangTemplate.xtend
- inline xtext-lib binding it to Guava 21

Take the last approach, choosing not to bloat the distribution.

Change-Id: Ibd2a91ed9bf52c1d3a942282ee53b951f5d42e6b
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 7566 - 1 - Map model module for binding2 57/50557/18
Jakub Toth [Tue, 17 Jan 2017 15:11:49 +0000 (16:11 +0100)]
Bug 7566 - 1 - Map model module for binding2

  * create module model-binding2 in mdsal

Change-Id: Ic46819d9468d3c7a74856ea868ffcc2b4061d0cc
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBump vorburger.xtendbeans from 1.2.1 to 1.2.2 for mockito-core 35/50835/4
Michael Vorburger [Mon, 23 Jan 2017 15:45:18 +0000 (16:45 +0100)]
Bump vorburger.xtendbeans from 1.2.1 to 1.2.2 for mockito-core

see https://github.com/vorburger/xtendbeans/blob/master/CHANGES.md

must always use mockito-core instead of mockito-all
to prevent NoSuchMethodError: org.hamcrest.Matcher ...

Bug 7662 related
Change-Id: Ib181e6b31ec0b905ca7e757d55add39d2a914f23
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 1411-6: MDSAL Binding2 Maven API Gen Plugin 84/41284/36
Martin Ciglan [Mon, 4 Jul 2016 14:39:19 +0000 (16:39 +0200)]
Bug 1411-6: MDSAL Binding2 Maven API Gen Plugin

- initial skeleton to be able to build Binding v2 with models and features
- basic placeholder class to bind the means together (TODO)
- re-organized package name

Change-Id: Ide90ea7eb8b1fa5d549c3dc5110ebeae3a32bd0c
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoReplace FindBugs :jsr305 by full :annotation (Bug 7663) 97/50897/3
Michael Vorburger [Mon, 23 Jan 2017 20:03:42 +0000 (21:03 +0100)]
Replace FindBugs :jsr305 by full :annotation (Bug 7663)

Change-Id: Ie91b52ee8c85ab42485588219f80ca74b125f148
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 7438: Allow identityref type to reference multiple base identities 97/50997/1
Martin Ciglan [Wed, 25 Jan 2017 09:24:14 +0000 (10:24 +0100)]
Bug 7438: Allow identityref type to reference multiple base identities

- fixes failing test, reflecting changes in Yangtools patch for this bug:
https://git.opendaylight.org/gerrit/#/c/50298/

Change-Id: I9ba0b6bf37f6ceb16d0d45328c096e89f47678cc
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoAdd Karaf 4 features 91/50091/7
Stephen Kitt [Thu, 15 Dec 2016 13:46:44 +0000 (14:46 +0100)]
Add Karaf 4 features

This is a simplified version of
https://git.opendaylight.org/gerrit/39468 without any changes to
bundles; it just delegates the actual features.xml generation to the
plugin.

Bug: 7487
Change-Id: I932067005975206be5fdeeaf58589502d1598760
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBug 7603: ACTION support in Binding spec v2 16/50716/4
Martin Ciglan [Fri, 20 Jan 2017 13:36:10 +0000 (14:36 +0100)]
Bug 7603: ACTION support in Binding spec v2

- API changes necessary
- RPC & Action interface differ as defined here
- ListAction needed for actions in YANG list

Change-Id: Ibf3c7b95d7fc35eb5b6a95a95d61741c41aace8e
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-3128: Teach DOMRpcRouter about new concepts 65/50565/5
Robert Varga [Tue, 17 Jan 2017 15:52:49 +0000 (16:52 +0100)]
BUG-3128: Teach DOMRpcRouter about new concepts

This is the implementation part of
https://git.opendaylight.org/gerrit/50487, teaching the
DOMRpcRouter to filter listener notifications and order
the implementations according to their cost.

Change-Id: Ib04d77786811d91bb22800eb5e64d3fd57ed659a
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoReplace mockito-all by mockito-core (see Bug 7662) 69/50869/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: I897ca24b64ef078cabfde442620fd41fe7a804da
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBUG-7611: Add a simple DOMEntityOwnershipService 49/50749/6
Robert Varga [Fri, 20 Jan 2017 22:57:50 +0000 (23:57 +0100)]
BUG-7611: Add a simple DOMEntityOwnershipService

This adds a very simplistic DOMEntityOwnershipService,
which assumes it is the only thing in town. Local node always
owns the entities registered.

Listeners are dispatched synchronously as registrations occur.

Change-Id: Ia0a4dbcc159d80b4efd2463722867eaf6a791780
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoDo not open-code routed RPC identification 13/50713/1
Robert Varga [Fri, 20 Jan 2017 12:22:23 +0000 (13:22 +0100)]
Do not open-code routed RPC identification

The code to identify routed RPCs is available via RpcRoutingStrategy,
so remove code duplication.

Change-Id: If072a9aa6d3c54d1de7fb842398e6e3b10725013
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1459-3 #6 - Re-organize mdsal-binding2-util 71/50671/3
Martin Ciglan [Thu, 19 Jan 2017 14:06:25 +0000 (15:06 +0100)]
Bug 1459-3 #6 - Re-organize mdsal-binding2-util

- refactor package name in mdsal-binding2-util module
- with changes at places of use

Change-Id: I797993fe6678c2ae99765d2b5f15c1513b649698
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-3 #5 - Re-organize mdsal-binding2-java-api-generator 65/50665/4
Martin Ciglan [Thu, 19 Jan 2017 12:43:01 +0000 (13:43 +0100)]
Bug 1459-3 #5 - Re-organize mdsal-binding2-java-api-generator

- refactor package name in mdsal-binding2-java-api-generator module
- with changes at places of use

Change-Id: Ibe3a2b1fe7cad4272087d9a6301f37419bbf38fe
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-3 #4 - Re-organize mdsal-binding2-generator-util 62/50662/3
Martin Ciglan [Thu, 19 Jan 2017 12:08:21 +0000 (13:08 +0100)]
Bug 1459-3 #4 - Re-organize mdsal-binding2-generator-util

- refactor package name in mdsal-binding2-generator-util module
- with changes at places of use

Change-Id: I398be506b178d5e4fd38bebf25d65d601ed63514
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-3 #3 - Re-organize mdsal-binding2-generator-impl 59/50659/3
Martin Ciglan [Thu, 19 Jan 2017 11:38:28 +0000 (12:38 +0100)]
Bug 1459-3 #3 - Re-organize mdsal-binding2-generator-impl

- refactor package name in mdsal-binding2-generator-impl module
- with changes at places of use

Change-Id: I5fe7d393c1ab93b0f64b9a831985613f9698239f
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-3 #2 - Re-organize mdsal-binding2-generator-api 55/50655/2
Martin Ciglan [Thu, 19 Jan 2017 09:59:54 +0000 (10:59 +0100)]
Bug 1459-3 #2 - Re-organize mdsal-binding2-generator-api

- refactor package name in mdsal-binding2-generator-api module
- with changes at places of use

Change-Id: I5df404eb91fad8291811cf6324b3aea361b338a1
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-3 #1 - Re-organize mdsal-binding2-spec 53/50653/2
Martin Ciglan [Thu, 19 Jan 2017 09:25:05 +0000 (10:25 +0100)]
Bug 1459-3 #1 - Re-organize mdsal-binding2-spec

- refactor package name in mdsal-binding2-spec module
- with changes at places of use

Change-Id: Iffb8c1d9a8d8f5dd7ae758efe3ed661d5e32982d
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-2 - Re-organize mdsal-binding2-spec 51/50551/3
Martin Ciglan [Tue, 17 Jan 2017 14:44:25 +0000 (15:44 +0100)]
Bug 1459-2 - Re-organize mdsal-binding2-spec

- new 'base' & 'structural' packages added
- various replacements done based on bug description
- some Javadocs added

Change-Id: I9d2266845d77a9902a1c937e21884a409585a630
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1459-1 - Re-organize mdsal-binding2-spec 42/50542/4
Martin Ciglan [Tue, 17 Jan 2017 12:11:00 +0000 (13:11 +0100)]
Bug 1459-1 - Re-organize mdsal-binding2-spec

- new artifact mdsal-binding2-util (starts with Binding2Mapping)
- new 'runtime' package for run-time support: serializer, etc..
- various replacements done based on previous changes and review comments

Change-Id: I4525d2c3f706ce1e77051711c57a3ca55ecc8350
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoSet Binding RPCs cost to 1 69/50569/2
Robert Varga [Tue, 17 Jan 2017 17:57:55 +0000 (18:57 +0100)]
Set Binding RPCs cost to 1

Default DOMRpcImplementation returns cost 0. Since invoking
a binding RPC involves some codec work, we want the binding
implementation to take a back seat of there is a native
RPC implementation (for example implemented in pure DOM terms).

Change-Id: I10e3bc6133980c6fc9750f02e94450655b67020f
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBUG-3128: Update DOM RPC concepts 62/50562/1
Robert Varga [Tue, 17 Jan 2017 15:44:34 +0000 (16:44 +0100)]
BUG-3128: Update DOM RPC concepts

This is the API part of https://git.opendaylight.org/gerrit/50487,
ported back to MD-SAL.

It allows a DOMRpcAvailabilityListener to request filtering of
notifications based on the RPC implementation class.

The other part of it is the ability for DOMRpcImplementation
to advertise its invocation cost -- allowing the RPC router
to make better routing decisions

Change-Id: Icdd36aeea0780bfae5883abd786244a9291b106f
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411-5 #10: MDSAL Binding2 Java API Generator 00/46900/9
Martin Ciglan [Thu, 12 Jan 2017 09:13:56 +0000 (10:13 +0100)]
Bug 1411-5 #10: MDSAL Binding2 Java API Generator

- yangModelBindingProvider interface + templates
- bit of a code clean-up

Change-Id: If58ef3945b98dc2671482ec8b4489f394a82329f
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411-5 #9: MDSAL Binding2 Java API Generator 99/46899/18
Martin Ciglan [Thu, 8 Dec 2016 09:43:24 +0000 (10:43 +0100)]
Bug 1411-5 #9: MDSAL Binding2 Java API Generator

- interface generator, renderer, template TOgenerator
for generating union, union builder and class
- bit of cleanup
- review comments implemented

Change-Id: Iedbf069e629c6fb92b93046348c6a15fa3e77fd9
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years ago1411-5 #8 MDSAL Binding2 API Generator 83/50283/2
Martin Ciglan [Wed, 11 Jan 2017 12:04:16 +0000 (13:04 +0100)]
1411-5 #8 MDSAL Binding2 API Generator

- code refactored according to review comments in
https://git.opendaylight.org/gerrit/#/c/46898/15

- Binding specification v2 fix for
https://bugs.opendaylight.org/show_bug.cgi?id=7425

Change-Id: Ieddc32ede050fea9b1320454f477f4bc3ec451ec
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411-5 #8: MDSAL Binding2 Java API Generator 98/46898/20
Martin Ciglan [Thu, 8 Dec 2016 09:02:11 +0000 (10:02 +0100)]
Bug 1411-5 #8: MDSAL Binding2 Java API Generator

- union and union builder renderers and templates
- bit of a cleanup

Change-Id: I413bf4f284d5f3151436f5a96e31e4c7ada0c021
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411-5 #7: MDSAL Binding2 Java API Generator 97/46897/22
Martin Ciglan [Wed, 23 Nov 2016 10:46:36 +0000 (11:46 +0100)]
Bug 1411-5 #7: MDSAL Binding2 Java API Generator

- class renderer, templates this is parent for more renderers
- minor do comment fix
- reworked method call
- bit of a cleanup, review comments implemented

Change-Id: I66cbf521b3be36e7278b6026fd02353a337c12b4
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411-5 #6: MDSAL Binding2 Java API Generator 94/46894/22
Martin Ciglan [Wed, 23 Nov 2016 09:57:54 +0000 (10:57 +0100)]
Bug 1411-5 #6: MDSAL Binding2 Java API Generator

- builder generator, renderer and templates
- fixed minor issues
- bit of cleanup, review comments implemented

Change-Id: I7cedfb4fde4e441b7d68b2717fbb4f8ea6d3d77e
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-7446: fix tests' usage of MoreExecutors 74/50174/1
Robert Varga [Tue, 10 Jan 2017 12:13:38 +0000 (13:13 +0100)]
BUG-7446: fix tests' usage of MoreExecutors

MoreExecutors.sameThreadExecutor() is deprecated, use its
appropriate replacement instead.

Change-Id: I487285b156d3fbe7b558fecd5cbc13cb66f02a2c
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBump xtendbeans version for AssertBeans to support YANG union types 37/50137/6
Michael Vorburger [Mon, 9 Jan 2017 16:02:45 +0000 (17:02 +0100)]
Bump xtendbeans version for AssertBeans to support YANG union types

Change-Id: If6998d3e5dc766e67ca7bfa5f1954197759bc05f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 7425: Recognize instance-identifier in union template 70/50070/1
Vratko Polak [Thu, 5 Jan 2017 16:06:35 +0000 (17:06 +0100)]
Bug 7425: Recognize instance-identifier in union template

Previously, it was wrongly identified as a generated type,
but InstanceIdentifier is a base type, so no getValue() there.

Change-Id: I18d67357753eda6e241a608fc5a2c933aa1f9eda
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoBUG-7435: eliminate use of yang-parser-impl internals 50/49750/4
Robert Varga [Thu, 22 Dec 2016 18:08:41 +0000 (19:08 +0100)]
BUG-7435: eliminate use of yang-parser-impl internals

Switch to using YangParserTestUtil instead.

Change-Id: I98e0870051e42372adf7d7284b10b368e68516f6
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 6859: Cleanup package names for mdsal-binding-generator-util module 47/49647/2
Martin Ciglan [Tue, 20 Dec 2016 13:25:15 +0000 (14:25 +0100)]
Bug 6859: Cleanup package names for mdsal-binding-generator-util module

- correct package names in respect to change:
  https://git.opendaylight.org/gerrit/#/c/46780
  to get back sonar code coverage number
- bit of a code clean-up

Change-Id: I766745343eb6d174438834e9087c14168d68cea8
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoImprove binding type instantiation 40/49440/4
Robert Varga [Thu, 15 Dec 2016 15:53:48 +0000 (16:53 +0100)]
Improve binding type instantiation

This patch causes binding generator to emit valueOf()
constructors instead of explicit 'new' for well-known
types, allowing better reuse of instances.

Change-Id: I66f7cbc0b8362d82759d2276c81aed1fd5296101
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBUG-4219: clean up features.xml 31/49431/4
Stephen Kitt [Thu, 15 Dec 2016 13:40:45 +0000 (14:40 +0100)]
BUG-4219: clean up features.xml

In models' features.xml, odl-mdsal-binding-base includes yang-ext so
it's not strictly necessary in odl-mdsal-models. (This is potentially
controversial of course since it should perhaps be construed as a
declared part of the odl-mdsal-models API.)

In mdsal's features.xml:
* use odl-lmax-3 instead of odl-lmax;
* drop mdsal-dom-{api,spi} from odl-mdsal-dom-broker (they're part of
  odl-mdsal-dom-api);
* odl-mdsal-binding-api needs odl-yangtools-yang-parser, and
  mdsal-binding-util;
* odl-mdsal-singleton-dom needs odl-mdsal-common.

Change-Id: I4f18d697065f4e9df2b0e621fd32d4b18b8068fd
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBUG-4219: remove slf4j-api dependencies 30/49430/2
Stephen Kitt [Thu, 15 Dec 2016 13:38:10 +0000 (14:38 +0100)]
BUG-4219: remove slf4j-api dependencies

These are provided by odlparent and cause issues when generating
features (in preparation for the Karaf 4 migration).

Change-Id: I24c392017ae4353264b721d4ea01f5769172fc4c
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBUG-2138: Add shard DTO classes to spi 39/49239/6
Tomas Cere [Mon, 12 Dec 2016 12:11:46 +0000 (13:11 +0100)]
BUG-2138: Add shard DTO classes to spi

This patch moves common classes useful for DOMDataTreeShard
implementations public in the spi package, allowing them to be reused
rather than re-implemented.

Change-Id: I4885fd862291642c702a1bf561a920bf8459016c
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoMake variadic enter() a default method 23/49423/2
Robert Varga [Thu, 15 Dec 2016 11:21:12 +0000 (12:21 +0100)]
Make variadic enter() a default method

Implementations do not need to implement this themselves,
as it can be implemented efficiently by wrapping the argument
in Arrays.asList().

Change-Id: I07d282dbd23555642d52bc3d6a81158526c3a03e
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411-5 #5: MDSAL Binding2 Java API Generator 92/46892/18
Martin Ciglan [Tue, 22 Nov 2016 10:14:53 +0000 (11:14 +0100)]
Bug 1411-5 #5: MDSAL Binding2 Java API Generator

- generator to java file
- enum generator, renderer and template
- bit of cleanup

Change-Id: I79f96631e765c2d7a9b4d96c7e19c1a288bb7139
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411-5 #4: MDSAL Binding2 Java API Generator 90/46890/14
Martin Ciglan [Tue, 22 Nov 2016 08:02:05 +0000 (09:02 +0100)]
Bug 1411-5 #4: MDSAL Binding2 Java API Generator

- top parent class for all renderers
- bit of cleanup, review comments implemented

Change-Id: If84b1e4505f7e16e462ae51dfe4ac4f3c6dbcc26
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 7159: Add yang-test-util artifact 32/49232/4
Martin Ciglan [Mon, 12 Dec 2016 10:20:55 +0000 (11:20 +0100)]
Bug 7159: Add yang-test-util artifact

- follow-up patch for MD-SAL
- bit of a code cleanup

Please see Yangtools introduction here:
https://git.opendaylight.org/gerrit/#/c/49129/

Change-Id: I91b2cb2e07245ce1f558ecf62a9a81a1d1ed2ebc
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 7271: Modify AbstractDOMStoreTreeChangePublisher to batch candidates 46/48846/5
Tom Pantelis [Wed, 30 Nov 2016 21:42:34 +0000 (16:42 -0500)]
Bug 7271: Modify AbstractDOMStoreTreeChangePublisher to batch candidates

The AbstractDOMStoreTreeChangePublisher was modified to keep track of
DataTreeCandidates per listener via a Map in order to notify listeners
of all DataTreeCandidate changes in one event. This allows the
initial event on registration to send all list entry nodes. The
previous notifyListeners abstract method was removed in lieu of a
new notifyListener that takes a listener registration and the list
of DataTreeCandidates

Change-Id: I02f14f202a46bbf9afe8de1941701849a41a431c
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
7 years agoBug 6163: fixed number of argument when resolving rpc input 69/47069/19
Martin Ciglan [Thu, 10 Nov 2016 10:36:26 +0000 (11:36 +0100)]
Bug 6163: fixed number of argument when resolving rpc input

- changed functionality of resolving rpc input. Input class is
  resolved by it's assignability from DataContainer class
- quite a bit of cleanup, comments added

https://bugs.opendaylight.org/show_bug.cgi?id=6163

Change-Id: I4a7d05283951db280c3e92301590407da4f40ffa
Signed-off-by: Peter Nosal <peter.nosal@pantheon.tech>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoCheckstyle compliant src/main|test/resources 11/48711/1
Michael Vorburger [Fri, 25 Nov 2016 18:20:55 +0000 (19:20 +0100)]
Checkstyle compliant src/main|test/resources

Change-Id: I68823f3538bbd0fe932e6469abecbdaed8ef9702
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 6135: Java binding v1: IAE from provideTypeForLeafref 80/48480/6
Martin Ciglan [Fri, 18 Nov 2016 14:25:13 +0000 (15:25 +0100)]
Bug 6135: Java binding v1: IAE from provideTypeForLeafref

- add referenced types in order to resolve leafrefs (main idea of this bug)
- do it in rather conservative way to not to spoil BGPCEP build
- fix back non-sense change in GenEnumResolvingTest.java to original state

Change-Id: I0d7083c7b71e07cb60a22f3106657060a2936c9c
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoJavassistUtils cleanup 59/48559/1
Martin Ciglan [Tue, 22 Nov 2016 09:18:02 +0000 (10:18 +0100)]
JavassistUtils cleanup

Change-Id: I481caf9954aec0ae2051d1722c0375cd1dcbe5d8
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoRemoved sonar warnings. 34/48034/9
Dana Kutenicsova [Thu, 13 Oct 2016 16:34:52 +0000 (18:34 +0200)]
Removed sonar warnings.

Change-Id: I2dbe2018cc1d2672f98fd3aea9e01c7d851eacc8
Signed-off-by: Dana Kutenicsova <dana.kutenics@gmail.com>
7 years agoRemoved sonar warnings. 33/48033/9
Dana Kutenicsova [Thu, 13 Oct 2016 09:37:08 +0000 (11:37 +0200)]
Removed sonar warnings.

Change-Id: I30d1be315d148a3a19809f4b33bfe40cec676e84
Signed-off-by: Dana Kutenicsova <dana.kutenics@gmail.com>
7 years agoRemoved sonar warnings. 32/48032/9
Dana Kutenicsova [Thu, 13 Oct 2016 09:36:52 +0000 (11:36 +0200)]
Removed sonar warnings.

Change-Id: I44f590d2bb3c814898cb00b9441c16f774100974
Signed-off-by: Dana Kutenicsova <dana.kutenics@gmail.com>
7 years agoRemoved sonar warnings. 31/48031/7
Dana Kutenicsova [Wed, 12 Oct 2016 18:59:16 +0000 (20:59 +0200)]
Removed sonar warnings.

Change-Id: Iad015c6deab0f6fb432c36265ada159afac57b13
Signed-off-by: Dana Kutenicsova <dana.kutenics@gmail.com>
7 years agoFixup compilation after YT move 12/48512/1
Robert Varga [Sun, 20 Nov 2016 20:22:14 +0000 (21:22 +0100)]
Fixup compilation after YT move

The move in YANG Tools has caused inherited type problems.
YANG Binding should not be doing this, really.

Change-Id: I518ab258f26d2db38349087736d37a76352642be
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411-5 #3: MDSAL Binding2 Java API Generator 89/46889/11
Martin Ciglan [Fri, 4 Nov 2016 15:04:37 +0000 (16:04 +0100)]
Bug 1411-5 #3: MDSAL Binding2 Java API Generator

- Range generators
- dedicated folder

Change-Id: I53d448049bdd0a0fcdc7e113b7c209699321fab9
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-5222: use dependency=true between features 78/47778/2
Robert Varga [Mon, 31 Oct 2016 13:06:01 +0000 (14:06 +0100)]
BUG-5222: use dependency=true between features

This patch marks feature dependencies as such, so karaf
knows not to reinstall them if they are already installed.

Change-Id: I979d85ec9dcf890a246ace63720f5ec194104cc3
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411-5 #2: MDSAL Binding2 Java API Generator 88/46888/10
Martin Ciglan [Fri, 4 Nov 2016 10:53:29 +0000 (11:53 +0100)]
Bug 1411-5 #2: MDSAL Binding2 Java API Generator

-new utility class for various string processings
-added comparator
-Javadocs added for all public methods

Change-Id: I26747a53544dd6deafcef21a4e8330790ed4165f
Signed-off-by: Filip Gregor <fgregor@cisco.com>
Signed-off-by: Martin Ciglan <mciglan@cisco.com>