Tony Tkacik [Tue, 8 Apr 2014 09:51:29 +0000 (09:51 +0000)]
Merge "Fix for Bug 586."
Robert Varga [Fri, 4 Apr 2014 11:42:58 +0000 (13:42 +0200)]
BUG-648: expose copy builders
This patch exposes the ability to have builders pre-seeded from existing
nodes. Also adds the ability to remove children, such that the users can
be simplified.
The end result of this patch is to be able to completely elide copying
data when it's not necessary, e.g. the implementations can choose to
switch to a persistent data structure and optimize the copy away.
Change-Id: I37d3540038bf2cbde8fb4ab456e9eb03f18a66f6
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 2 Apr 2014 16:24:31 +0000 (18:24 +0200)]
BUG-692: Rename mappedChildren to children
This clarifies the relationship of children/mappedChildren.
Change-Id: Iebbe739902d2c5356ecf0abc8cadd2bb462b6473
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 2 Apr 2014 15:49:34 +0000 (17:49 +0200)]
BUG-648: Provide framework for eliding copying builder maps
This patch introduces builder-side safeguards which will cause the
builder take the copying hit after the target object was built. This is
an improbable operation, as most builders are forgotten after single
use.
Also make use of that knowledge and do not instantiate ImmutableMaps in
the nodes.
Change-Id: I98ef73f04a1f85c7355388eaaaafc99143b396f3
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 2 Apr 2014 20:15:56 +0000 (22:15 +0200)]
BUG-648: Fixup hashCode/equals
The baseline hashCode/equals implementation relied on the copied maps
for correctness. Iterable<?> in and of itself does not really have a
equals contract, so let's reimplement it and make it very explicit.
This patch is required for getting rid of the copied maps without
breaking users.
Change-Id: I2fcd2bc8775b60cf89bf03a5679f97a266cf1c1e
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Mon, 7 Apr 2014 11:25:58 +0000 (11:25 +0000)]
Merge "BUG-576: Fix concepts description"
Tony Tkacik [Mon, 7 Apr 2014 07:34:50 +0000 (07:34 +0000)]
Merge "BUG-648: Document AttributesBuilder expectation"
Milos Fabian [Thu, 3 Apr 2014 14:29:11 +0000 (16:29 +0200)]
Bug 447 - Yang documentation generator improvements
-added summaries at the top of page + linked localy
-added nested child nodes of grouping and augmentation nodes
-added local links between type definitions and their users
-minor fixes
Change-Id: I573f4ee257e66c140e52327534e840801f7b3c5f
Signed-off-by: Milos Fabian <milfabia@cisco.com>
Robert Varga [Wed, 2 Apr 2014 22:19:21 +0000 (22:19 +0000)]
Merge "Bug 631: made QName Comparable."
Robert Varga [Wed, 2 Apr 2014 13:44:47 +0000 (15:44 +0200)]
BUG-648: Document AttributesBuilder expectation
This patch just clarifies the expectation that the attributes map does
not change once it is passed in.
Change-Id: Ifd22f5cad85d97cd6bc8f408ad22ac634ed6df16
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 2 Apr 2014 18:46:03 +0000 (20:46 +0200)]
Fix concurrent verify jobs
This uses URI instead of String to costruct paths, restoring
testability. Also fix a pom.xml warning while we're in the neighborhood.
Change-Id: I8df7573782b43326869e274e95720daf9d528e80
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 2 Apr 2014 09:14:52 +0000 (11:14 +0200)]
BUG-576: Fix concepts description
Fixes a copy-n-pasted description.
Change-Id: I8f3c92af7329f16e12d8201242ce8c4978a30de2
Signed-off-by: Robert Varga <rovarga@cisco.com>
Martin Vitez [Wed, 2 Apr 2014 08:08:43 +0000 (10:08 +0200)]
Bug 631: made QName Comparable.
Added test.
Change-Id: I1967ae3f2d188ed1dc6533a342219de1a6ac31b1
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Maros Marsalek [Wed, 2 Apr 2014 07:55:02 +0000 (09:55 +0200)]
Fix build failure in yang-data-operations. Add yang-parser-impl test dependency
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Tony Tkacik [Wed, 2 Apr 2014 07:24:41 +0000 (07:24 +0000)]
Merge "Implement edit-config operations for NormalizedNode yang-data-api"
Tony Tkacik [Mon, 31 Mar 2014 07:32:31 +0000 (07:32 +0000)]
Merge "Remove executable bit"
Tony Tkacik [Mon, 31 Mar 2014 07:31:58 +0000 (07:31 +0000)]
Merge changes I16a5683b,I6081dc12
* changes:
Add guava-based object cache
Introduce Object Cache API and no-op implementation
Robert Varga [Sun, 30 Mar 2014 10:56:19 +0000 (12:56 +0200)]
Cleanup run-time dependencies
We should not depend on yang-parser-impl, but rather the model-api/util
packages. The yang-parser-impl dependency has only test scope.
Change-Id: I223bfd831e8ee77757a83f6f532c67a8374f9e7c
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Fri, 28 Mar 2014 12:33:10 +0000 (13:33 +0100)]
Remove executable bit
Change-Id: I521733f08a74d2f868d357c577e14c4d3c69c13c
Signed-off-by: Robert Varga <rovarga@cisco.com>
Martin Vitez [Fri, 28 Mar 2014 14:56:36 +0000 (15:56 +0100)]
Fix for Bug 586.
Fixed generation of list key properties.
Updated test.
Change-Id: Icfe7e1fa6a5bfb3c8c2b4bedf808e5fbae797359
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Maros Marsalek [Wed, 19 Mar 2014 08:54:15 +0000 (09:54 +0100)]
Implement edit-config operations for NormalizedNode yang-data-api
Placed in a new module yang-data-operations
Supported operations: all defined in http://tools.ietf.org/html/rfc6241
Multiple positive and negative test cases added. Testing yang schema can be found under src/test/resources
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Change-Id: I897c6479cf14e7073a6fb954565cfe2b376a6c40
Martin Vitez [Mon, 24 Mar 2014 09:23:28 +0000 (10:23 +0100)]
Fix for Bug 527.
Fixed codec loading for choice case nodes.
Fixed bug in parser when handling uses/augment target path.
Helper methods from BindingGeneratorImpl moved to SchemaContextUtil class.
Added test.
Change-Id: Id1b835150cdad2c278bd9c125d5369822b75639a
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Martin Vitez [Thu, 27 Mar 2014 10:22:42 +0000 (11:22 +0100)]
Fix for Bug 588.
Removed xtend dependency from yang-model-util.
Reworked SchemaContextUtil from xtend to java.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Robert Varga [Wed, 26 Mar 2014 16:22:48 +0000 (16:22 +0000)]
Merge "Fix for Bug 589."
Moiz Raja [Wed, 26 Mar 2014 00:50:07 +0000 (17:50 -0700)]
Bug 525 : Document the InstanceIdentifier API
Change-Id: If42682fe4dfd715d95f5f081eae8027836f316e0
Signed-off-by: Moiz Raja <moraja@cisco.com>
Jozef Gloncak [Wed, 26 Mar 2014 14:36:07 +0000 (15:36 +0100)]
Fix of failing tests in yang-data-json
Method loadModules in TestUtils was changed to accept URI type input parameter
instead String type.
Change-Id: I27edf31788880d50cdca8deba754bcffd14da0b8
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Martin Vitez [Wed, 26 Mar 2014 08:47:43 +0000 (09:47 +0100)]
Fix for Bug 589.
Removed xtend dependency from yang-parser-impl.
Rewrited ParserUtils from xtend to java.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Tue, 25 Mar 2014 20:55:43 +0000 (20:55 +0000)]
Merge "Remove unused code from Immutables"
Robert Varga [Tue, 25 Mar 2014 11:21:21 +0000 (11:21 +0000)]
Merge "Parsing and serialization of composite and simple node to normalized nodes"
Jozef Gloncak [Fri, 21 Mar 2014 08:58:00 +0000 (09:58 +0100)]
Parsing and serialization of composite and simple node to normalized nodes
Added implementation of base classes from yang-data-impl artifact for
serializer and for parser
+ simple test
Change-Id: Ic7353e1be7ef6e00546595304c23b205f7580cee
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
David K. Bainbridge [Wed, 19 Mar 2014 18:04:51 +0000 (11:04 -0700)]
Use a random port in test server
This patch updates the test server to bind to a random port number and expose
this port number via a Future can be fetched by the test client so that it
knows to which port to connect.
Version 2:
Modified the code to use the guava SettableFuture as opposed to a custom built
future, as well as cleaned up a few other things, including makding sure that
the message was received from the server before considering the test passed.
was seeing different behavior on different platforms without this (i.e. some
times the message was display, sometimes not). Also, failed the test case wh
exceptions were caught.
Change-Id: Ia11c374bfbf206a6214d2afe3ba328b1231d6fad
Signed-off-by: David K. Bainbridge <dbainbri@ciena.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 19 Mar 2014 16:35:16 +0000 (17:35 +0100)]
Remove unused code from Immutables
Change-Id: Ied0ba65a6ded0cb8d9ebfd57d3af7d87a355629b
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 24 Mar 2014 19:41:01 +0000 (20:41 +0100)]
Add guava-based object cache
This object cache is bound by the garbage collector, as it uses soft
references internally. It can be grown later to implement a caching
policies based on object type.
Change-Id: I16a5683bdc587dd5fe7a3c9c8e1e5a14cb85d09b
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 24 Mar 2014 19:32:00 +0000 (20:32 +0100)]
Introduce Object Cache API and no-op implementation
This introduces a statically-bound cache for objets. This is primarily
useful for implementing CPU/memory tradeoffs for limiting duplicate
instances of common objects.
Change-Id: I6081dc121c8cc3defd029fe4da1e29fdabea68d0
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Tue, 25 Mar 2014 05:17:50 +0000 (05:17 +0000)]
Merge "Global cleanup of restconf client dependencies"
Tony Tkacik [Tue, 25 Mar 2014 05:17:32 +0000 (05:17 +0000)]
Merge "Bump javax.ws.rs-api version to 2.0"
Tony Tkacik [Tue, 25 Mar 2014 05:17:09 +0000 (05:17 +0000)]
Merge "Remove needless references to xtend library"
Tony Tkacik [Tue, 25 Mar 2014 05:16:47 +0000 (05:16 +0000)]
Merge "Do not depend on jersey-client"
Tony Tkacik [Tue, 25 Mar 2014 05:15:35 +0000 (05:15 +0000)]
Merge "Update interface to hide Dispatcher"
Tony Tkacik [Tue, 25 Mar 2014 05:08:42 +0000 (05:08 +0000)]
Merge "Introduce the concept of ProductAwareBuilder"
Tony Tkacik [Tue, 25 Mar 2014 05:07:43 +0000 (05:07 +0000)]
Merge "Introduce common directory"
Robert Varga [Tue, 25 Mar 2014 01:54:55 +0000 (02:54 +0100)]
Global cleanup of restconf client dependencies
Change-Id: I4f94360010fa068f2e77a51f112218da6bb366fe
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Tue, 25 Mar 2014 00:55:56 +0000 (01:55 +0100)]
Bump javax.ws.rs-api version to 2.0
Change-Id: Iff730e66741f4824092690bdc0cdf8299ec344ce
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Tue, 25 Mar 2014 02:13:07 +0000 (03:13 +0100)]
Remove needless references to xtend library
There is simply no need to use the xtend runtime library. Let's simply
write clean code.
Change-Id: Id6ab24f701612ecc2be4408d62f7ee3b99d732e9
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Tue, 25 Mar 2014 00:41:39 +0000 (01:41 +0100)]
Do not depend on jersey-client
JAX-RS annotations do not require full-blown client, so import only the
API bundle.
Change-Id: I12918068ac6b67d1279c73ee3060d47861c45bfe
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 24 Mar 2014 19:28:23 +0000 (20:28 +0100)]
Introduce the concept of ProductAwareBuilder
A ProductAwareBuilder is an builder which can act as a proxy
for its product in collections (obviously provided it is not
mutated while its used this way).
This functionality is useful for implemeting caches, where
the toInstance() call can be skipped as long as there is an
existing equal object.
Change-Id: I24c98dcb41491ba6265b373c34667e2a0ddfed86
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sun, 23 Mar 2014 09:38:55 +0000 (10:38 +0100)]
Introduce common directory
This directory will host code common to the various submodules, some of
which are candidates from moving into an upstream repository.
Populate this directory with concepts and mockito-configuration, thus
making sure the top-level POM has no direct code children.
Change-Id: Id7ac3aa68886841f408f047d05c740a563d8f957
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 19 Mar 2014 15:46:08 +0000 (16:46 +0100)]
Another set of warning fixes
Change-Id: Ic2bd07eb6490174e7f6a8808652dabeec122866c
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Fri, 21 Mar 2014 16:56:57 +0000 (17:56 +0100)]
Update interface to hide Dispatcher
Dispatcher is really an internal implementation thing. Expose a parser
factory instead.
Change-Id: I1a597d3c4417dd09b8f7fcce0785b0eb5a8a3856
Signed-off-by: Robert Varga <rovarga@cisco.com>
Maros Marsalek [Wed, 19 Mar 2014 13:03:57 +0000 (14:03 +0100)]
Add attributes to nodes that can take attributes
The following types of nodes seem to be able to accept attributes,
- LeafNode
- ContainerNode
- LeafSetEntryNode
- MapEntryNode
Also added parsing of Attributes
Change-Id: I524efde134e06d5b30a68379c8abdb65bba60cb2
Signed-off-by: Moiz Raja <moraja@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Maros Marsalek [Wed, 19 Mar 2014 10:31:56 +0000 (11:31 +0100)]
Abstract infrastructure for normalized nodes translation.
With implementation for dom <-> normalized nodes.
Change-Id: Ic2c08d2955177bc335d6493d64076a77d2cc7d62
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Martin Vitez [Thu, 6 Mar 2014 11:19:13 +0000 (12:19 +0100)]
Fix for Bug 364.
Fixed parsing of config statement:
Modified DataSchemaNodeBuilder:
- changed isConfiguration return type from Boolean to boolean
- changed setConfiguration parameter return type from Boolean to boolean
Updated YangParserListenerImpl and DataSchemaNodeBuilder implementations.
Fixed bug in ContainerSchemaNodeBuilder.build() method.
Fixed bug in GroupingBuilderImpl.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Robert Varga [Wed, 19 Mar 2014 11:49:07 +0000 (11:49 +0000)]
Merge "Fixed possible NPE in CodecMapping."
Tony Tkacik [Tue, 18 Mar 2014 17:06:26 +0000 (18:06 +0100)]
Added NormalizedNodeContainerBuilder and helpers.
- NormalizedNodeContainerBuilder is common root
to builders which produces NormalizedNodeContainer,
this allows to write more generic code using builders.
- NormalizedNodeUtils - provides helper functions to process
normalized date tree, such as findNode which look up
subtree based on provided InstanceIdentifier.
- Added Immutable marker interface to existing builders.
Change-Id: Id842742432c48d76cdf78dab40352af27e10360f
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Martin Vitez [Mon, 3 Feb 2014 10:44:59 +0000 (11:44 +0100)]
Fix for Bug 394.
Fixed bug in grammar when handling nested unknown nodes.
Fixed parsing nested unknown nodes in YangParserListenerImpl.
Added test.
Change-Id: I9c336a30d9f0a955a9914968a9eaad17154398e5
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Martin Vitez [Thu, 13 Mar 2014 14:52:03 +0000 (15:52 +0100)]
Fixed possible NPE in CodecMapping.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Tue, 18 Mar 2014 11:04:18 +0000 (11:04 +0000)]
Merge "Fix for Bug 511 (model + integration-test)"
Tony Tkacik [Tue, 18 Mar 2014 11:04:04 +0000 (11:04 +0000)]
Merge "Fix for Bug 511 (concepts)"
Tony Tkacik [Tue, 18 Mar 2014 11:03:44 +0000 (11:03 +0000)]
Merge "Fix for Bug 511 (yang)"
Tony Tkacik [Tue, 18 Mar 2014 11:03:22 +0000 (11:03 +0000)]
Merge "Fix for Bug 511 (code-generator)"
Tony Tkacik [Tue, 18 Mar 2014 11:00:06 +0000 (11:00 +0000)]
Merge "Fix for Bug 495."
Tony Tkacik [Tue, 18 Mar 2014 10:43:40 +0000 (10:43 +0000)]
Merge "Added documentation for web socket client"
Martin Vitez [Tue, 18 Mar 2014 08:18:30 +0000 (09:18 +0100)]
Fix for Bug 511 (model + integration-test)
Removed \r characters from yang-ext.yang and from integration-test project.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Martin Vitez [Tue, 18 Mar 2014 08:13:39 +0000 (09:13 +0100)]
Fix for Bug 511 (concepts)
Removed \r characters from concepts.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Martin Vitez [Thu, 13 Mar 2014 12:00:30 +0000 (13:00 +0100)]
Fix for Bug 511 (yang)
Removed \r characters from all projects under yang directory.
Change-Id: I46a47d523449bc159ea508143d9a06726f8259ff
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Martin Vitez [Thu, 13 Mar 2014 10:38:27 +0000 (11:38 +0100)]
Fix for Bug 511 (code-generator)
Removed \r characters from all projects under code-generator directory.
Change-Id: Ic6af8cc1b686c62caeaab9e5f2595a597750cafe
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Thu, 13 Mar 2014 15:51:17 +0000 (15:51 +0000)]
Merge "Immutable implementation of new yang-data-api"
Maros Marsalek [Tue, 11 Mar 2014 10:25:08 +0000 (11:25 +0100)]
Immutable implementation of new yang-data-api
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Change-Id: If42a5a3fe0d371e9e0d2664705350065b2448473
Tomas Olvecky [Mon, 10 Mar 2014 12:17:05 +0000 (13:17 +0100)]
Add ability to get yang sources from SchemaContext.
SchemaContext should provide yang source code of parsed module files.
To identify modules, move YANGModuleIdentifier from binding-generator-spi
to yang-model-api: ModuleIdentifier. This interface can represent
both modules and submodules in SchemaContext. Add methods to SchemaContext
to iterate ove ModuleIdentifiers and get their source.
In order to maintain backwards compatibility no new parsing method was created,
so submodules cannot be supported now in new methods.
Adding this functionality removes need for most methods defined in
org.opendaylight.yangtools.yang.model.parser.api.YangModelParser .
It is advised that after this change parser api would be refactored to
have a method taking collection of input streams as input
and returning SchemaContext.
Other small changes:
Externalize SimpleDateFormat wrapped in ThreadLocal
Add toString to AbstractObjectRegistration
Add guava dependency to yang-model-api for Optional goodness
Add ModuleIdentifierImpl convenience class allowing users to seach source by
module name.
Change-Id: I8a46fa699bbd829e5d4a488ebc99012a66fc196d
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Tony Tkacik [Wed, 12 Mar 2014 10:15:20 +0000 (10:15 +0000)]
Merge "Fix for Bug 497."
Tony Tkacik [Wed, 12 Mar 2014 10:08:04 +0000 (10:08 +0000)]
Merge "Better logging for codegen's generateModuleInfos"
Martin Vitez [Mon, 10 Mar 2014 13:51:41 +0000 (14:51 +0100)]
Fix for Bug 495.
Fixed bug in parsing augments defined under uses: target node did not get reference to its augmentations.
Added test.
Change-Id: I4e7e32a6f2eb960d9e6727043e6b4dc4ba26429b
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Wed, 12 Mar 2014 09:59:21 +0000 (09:59 +0000)]
Merge "Fix for Bug 496."
Tony Tkacik [Wed, 12 Mar 2014 09:50:44 +0000 (09:50 +0000)]
Merge "Migrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener"
Martin Vitez [Mon, 10 Mar 2014 17:09:34 +0000 (18:09 +0100)]
Fix for Bug 497.
Added generation of toString in YangModuleInfoTemplate.
Change-Id: I4a4781618dc58baa4764be378e92c26c7d15f5a2
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tomas Olvecky [Tue, 11 Mar 2014 12:39:41 +0000 (13:39 +0100)]
Better logging for codegen's generateModuleInfos
Change-Id: I14798f5f7caf9324344351141751be0001ef3a83
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Martin Vitez [Tue, 11 Mar 2014 10:25:54 +0000 (10:25 +0000)]
Merge "Added initial draft of Normalized Yang Data Tree model."
Robert Varga [Sun, 9 Mar 2014 18:29:46 +0000 (19:29 +0100)]
Migrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener
Moves the implemented interface higher up the chain, allowing its users
to start relying on SchemaContextListener -- fixing deprecations
warnings in the process.
Drive-by:
- organized imports to remove unused import
- remove unused field
Change-Id: Ic77e3775317daedd94f6cff6ea6eabdb0ea3dde0
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Mon, 10 Mar 2014 15:52:29 +0000 (15:52 +0000)]
Merge "Create onGlobalContextUpdated() in SchemaContextListener"
Martin Vitez [Mon, 10 Mar 2014 15:15:03 +0000 (16:15 +0100)]
Fix for Bug 496.
If leafref type contains invalid path, no warning was reported and no methods were generated from this leaf/leaf-list.
Added exception throwing if leafref target is not found.
Updated tests.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tomas Olvecky [Mon, 10 Mar 2014 08:47:28 +0000 (09:47 +0100)]
Introduce ClassLoadingStrategy,ModuleInfoRegistry interface, copy SchemaStoreProvider from md-sal.
To decouple implementation from interface introduce ClassLoadingStrategy and ModuleInfoRegistry interfaces.This allows intercepting
read/write operations.
Copy SchemaContextProvider from org.opendaylight.controller.sal.dom.broker.impl .
Change-Id: Ifebc0f0adbb265f4a4e492c0a9b54f07cc17fe01
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Robert Varga [Sun, 9 Mar 2014 18:19:57 +0000 (19:19 +0100)]
Create onGlobalContextUpdated() in SchemaContextListener
With deprecating SchemaServiceListener, we need an explicit mark that
the method itself is not deprecated. Add an overridden method
declaration so the users do not get a useless warning.
Change-Id: I2e1da885f103f58beec2aa28dbf953c0198f3fd9
Signed-off-by: Robert Varga <rovarga@cisco.com>
Martin Vitez [Thu, 6 Mar 2014 16:09:25 +0000 (17:09 +0100)]
Fix for Bug 489.
Current code generator version was unable to generate sources for augmentation defined under uses statement
if augment points to nested node (not top level node added by uses).
Failing example:
container c {
uses route-subobjects {
augment "links/link" {
leaf id {
type string;
}
}
}
}
AugmentationSchemaBuilderImpl: fixed bug in parsing augment target path for augmentations defined under uses.
BindingGeneratorImpl: fixed resolving of augment package name.
BindingGeneratorUtil: added new method to generate package name.
Added tests.
Change-Id: Ie48b2fffc0e6449bf5c13b5a6b636cbd837ffb54
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Ladislav Borak [Wed, 5 Mar 2014 09:23:08 +0000 (10:23 +0100)]
Added documentation for web socket client
Change-Id: I88cce1f657b4d7c7a6ba6cc99e8da63541d7d66f
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Tony Tkacik [Tue, 4 Mar 2014 10:44:31 +0000 (10:44 +0000)]
Merge "ModifAction enum added NONE operation + additional checks Added Modify Action to SimpleNode and CompositeNode"
Tony Tkacik [Tue, 4 Mar 2014 09:30:48 +0000 (09:30 +0000)]
Merge "Fix for Bug 295."
Martin Vitez [Mon, 3 Mar 2014 11:35:03 +0000 (12:35 +0100)]
Fix for Bug 295.
Changes in GeneratorJavaFile:
- produced warning when more than one file with same name is going to be generated
- constructor parameter type changed from Set to Collection
- removed unused method generateStringToJavaFile
Fixed implementation of isAcceptable(Type type) in InterfaceGenerator.
Added test.
Change-Id: If2cc5ccf27b15f3749628a6c7059de6703dda213
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Maros Marsalek [Tue, 25 Feb 2014 14:04:24 +0000 (15:04 +0100)]
ModifAction enum added NONE operation + additional checks
Added Modify Action to SimpleNode and CompositeNode
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Tony Tkacik [Mon, 3 Mar 2014 09:29:02 +0000 (09:29 +0000)]
Merge "Organize imports to get rid of warnings"
Robert Varga [Fri, 28 Feb 2014 14:12:46 +0000 (15:12 +0100)]
Organize imports to get rid of warnings
Duplicate/unused imports: get rid of them.
Change-Id: I1f3c807117843cb5dbad4dcb3f2e83394c761d38
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Fri, 28 Feb 2014 14:05:39 +0000 (14:05 +0000)]
Merge "restconf client expects stream discovery to be implemented"
Tony Tkacik [Thu, 27 Feb 2014 16:50:50 +0000 (16:50 +0000)]
Merge "Fixed for Bug 468."
Martin Vitez [Wed, 26 Feb 2014 14:32:52 +0000 (15:32 +0100)]
Fixed for Bug 468.
Fixed prefix resolution of augment target path parts on parser level.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Martin Bobak [Mon, 24 Feb 2014 11:42:34 +0000 (12:42 +0100)]
restconf client expects stream discovery to be implemented
Change-Id: I139807ee67bea72927c52e47fc13d129c576191e
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Fri, 14 Feb 2014 11:50:32 +0000 (12:50 +0100)]
added missing payload extraction in proxy method
added request type to event stream context calls
Change-Id: Ibecf4ec59f53aa1bf0dcbf1295533b23a0c5b3c4
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Thu, 13 Feb 2014 17:18:09 +0000 (18:18 +0100)]
added isInterface test for listener registration
AuthenticationHolder for rest authentication
Change-Id: Idf0dfe2ce40d862490eb52b2344e7974d14da148
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Tony Tkacik [Wed, 26 Feb 2014 11:23:09 +0000 (12:23 +0100)]
Fixed missing predicate in package name regex. Improved error reporting.
Change-Id: If76fe681e37a5421621754d088de99b14eeae05d
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Tony Tkacik [Wed, 26 Feb 2014 10:45:24 +0000 (11:45 +0100)]
Bug 466:Fixed namespace and revision resolution for empty augmentations.
Change-Id: I85af4d15d7f4a6b604461084e9ff4f73b103cca1
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Martin Vitez [Wed, 26 Feb 2014 08:19:28 +0000 (09:19 +0100)]
Fixed possible NPE, improved logging.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Tue, 25 Feb 2014 14:32:01 +0000 (15:32 +0100)]
Fixed NPE caused by tryToLoadAugmentations in LazyGeneratedCodecRegistry.
Change-Id: I3142a629b9bd366a960c79447134d87f36f47e25
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>