yangtools.git
10 years agoMerge "Remove unused code from Immutables"
Tony Tkacik [Tue, 25 Mar 2014 20:55:43 +0000 (20:55 +0000)]
Merge "Remove unused code from Immutables"

10 years agoMerge "Parsing and serialization of composite and simple node to normalized nodes"
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"

10 years agoParsing and serialization of composite and simple node to normalized nodes 58/5658/9
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>
10 years agoUse a random port in test server 03/5703/2
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>
10 years agoRemove unused code from Immutables 89/5689/4
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>
10 years agoMerge "Global cleanup of restconf client dependencies"
Tony Tkacik [Tue, 25 Mar 2014 05:17:50 +0000 (05:17 +0000)]
Merge "Global cleanup of restconf client dependencies"

10 years agoMerge "Bump javax.ws.rs-api version to 2.0"
Tony Tkacik [Tue, 25 Mar 2014 05:17:32 +0000 (05:17 +0000)]
Merge "Bump javax.ws.rs-api version to 2.0"

10 years agoMerge "Remove needless references to xtend library"
Tony Tkacik [Tue, 25 Mar 2014 05:17:09 +0000 (05:17 +0000)]
Merge "Remove needless references to xtend library"

10 years agoMerge "Do not depend on jersey-client"
Tony Tkacik [Tue, 25 Mar 2014 05:16:47 +0000 (05:16 +0000)]
Merge "Do not depend on jersey-client"

10 years agoMerge "Update interface to hide Dispatcher"
Tony Tkacik [Tue, 25 Mar 2014 05:15:35 +0000 (05:15 +0000)]
Merge "Update interface to hide Dispatcher"

10 years agoMerge "Introduce the concept of ProductAwareBuilder"
Tony Tkacik [Tue, 25 Mar 2014 05:08:42 +0000 (05:08 +0000)]
Merge "Introduce the concept of ProductAwareBuilder"

10 years agoMerge "Introduce common directory"
Tony Tkacik [Tue, 25 Mar 2014 05:07:43 +0000 (05:07 +0000)]
Merge "Introduce common directory"

10 years agoGlobal cleanup of restconf client dependencies 48/5748/1
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>
10 years agoBump javax.ws.rs-api version to 2.0 47/5747/1
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>
10 years agoRemove needless references to xtend library 46/5746/1
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>
10 years agoDo not depend on jersey-client 45/5745/1
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>
10 years agoIntroduce the concept of ProductAwareBuilder 31/5731/1
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>
10 years agoIntroduce common directory 30/5730/1
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>
10 years agoAnother set of warning fixes 81/5681/2
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>
10 years agoUpdate interface to hide Dispatcher 11/5711/1
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>
10 years agoAdd attributes to nodes that can take attributes 10/5610/19
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>
10 years agoAbstract infrastructure for normalized nodes translation. 94/5594/23
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>
10 years agoMerge "Fixed possible NPE in CodecMapping."
Robert Varga [Wed, 19 Mar 2014 11:49:07 +0000 (11:49 +0000)]
Merge "Fixed possible NPE in CodecMapping."

10 years agoAdded NormalizedNodeContainerBuilder and helpers. 46/5646/5
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>
10 years agoFixed possible NPE in CodecMapping. 31/5631/2
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>
10 years agoMerge "Fix for Bug 511 (model + integration-test)"
Tony Tkacik [Tue, 18 Mar 2014 11:04:18 +0000 (11:04 +0000)]
Merge "Fix for Bug 511 (model + integration-test)"

10 years agoMerge "Fix for Bug 511 (concepts)"
Tony Tkacik [Tue, 18 Mar 2014 11:04:04 +0000 (11:04 +0000)]
Merge "Fix for Bug 511 (concepts)"

10 years agoMerge "Fix for Bug 511 (yang)"
Tony Tkacik [Tue, 18 Mar 2014 11:03:44 +0000 (11:03 +0000)]
Merge "Fix for Bug 511 (yang)"

10 years agoMerge "Fix for Bug 511 (code-generator)"
Tony Tkacik [Tue, 18 Mar 2014 11:03:22 +0000 (11:03 +0000)]
Merge "Fix for Bug 511 (code-generator)"

10 years agoMerge "Fix for Bug 495."
Tony Tkacik [Tue, 18 Mar 2014 11:00:06 +0000 (11:00 +0000)]
Merge "Fix for Bug 495."

10 years agoMerge "Added documentation for web socket client"
Tony Tkacik [Tue, 18 Mar 2014 10:43:40 +0000 (10:43 +0000)]
Merge "Added documentation for web socket client"

10 years agoFix for Bug 511 (model + integration-test) 60/5660/1
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>
10 years agoFix for Bug 511 (concepts) 59/5659/1
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>
10 years agoFix for Bug 511 (yang) 26/5626/3
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>
10 years agoFix for Bug 511 (code-generator) 25/5625/3
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>
10 years agoMerge "Immutable implementation of new yang-data-api"
Tony Tkacik [Thu, 13 Mar 2014 15:51:17 +0000 (15:51 +0000)]
Merge "Immutable implementation of new yang-data-api"

10 years agoImmutable implementation of new yang-data-api 57/5557/5
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

10 years agoAdd ability to get yang sources from SchemaContext. 79/5579/4
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>
10 years agoMerge "Fix for Bug 497."
Tony Tkacik [Wed, 12 Mar 2014 10:15:20 +0000 (10:15 +0000)]
Merge "Fix for Bug 497."

10 years agoMerge "Better logging for codegen's generateModuleInfos"
Tony Tkacik [Wed, 12 Mar 2014 10:08:04 +0000 (10:08 +0000)]
Merge "Better logging for codegen's generateModuleInfos"

10 years agoFix for Bug 495. 81/5581/4
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>
10 years agoMerge "Fix for Bug 496."
Tony Tkacik [Wed, 12 Mar 2014 09:59:21 +0000 (09:59 +0000)]
Merge "Fix for Bug 496."

10 years agoMerge "Migrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener"
Tony Tkacik [Wed, 12 Mar 2014 09:50:44 +0000 (09:50 +0000)]
Merge "Migrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener"

10 years agoFix for Bug 497. 83/5583/2
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>
10 years agoBetter logging for codegen's generateModuleInfos 96/5596/1
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>
10 years agoMerge "Added initial draft of Normalized Yang Data Tree model."
Martin Vitez [Tue, 11 Mar 2014 10:25:54 +0000 (10:25 +0000)]
Merge "Added initial draft of Normalized Yang Data Tree model."

10 years agoMigrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener 73/5573/2
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>
10 years agoMerge "Create onGlobalContextUpdated() in SchemaContextListener"
Tony Tkacik [Mon, 10 Mar 2014 15:52:29 +0000 (15:52 +0000)]
Merge "Create onGlobalContextUpdated() in SchemaContextListener"

10 years agoFix for Bug 496. 82/5582/1
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>
10 years agoIntroduce ClassLoadingStrategy,ModuleInfoRegistry interface, copy SchemaStoreProvider... 76/5576/1
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>
10 years agoCreate onGlobalContextUpdated() in SchemaContextListener 72/5572/1
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>
10 years agoFix for Bug 489. 58/5558/2
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>
10 years agoAdded documentation for web socket client 46/5546/2
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>
10 years agoMerge "ModifAction enum added NONE operation + additional checks Added Modify Action...
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"

10 years agoMerge "Fix for Bug 295."
Tony Tkacik [Tue, 4 Mar 2014 09:30:48 +0000 (09:30 +0000)]
Merge "Fix for Bug 295."

10 years agoFix for Bug 295. 15/5515/2
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>
10 years agoModifAction enum added NONE operation + additional checks 73/5473/3
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>
10 years agoMerge "Organize imports to get rid of warnings"
Tony Tkacik [Mon, 3 Mar 2014 09:29:02 +0000 (09:29 +0000)]
Merge "Organize imports to get rid of warnings"

10 years agoOrganize imports to get rid of warnings 03/5503/1
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>
10 years agoMerge "restconf client expects stream discovery to be implemented"
Tony Tkacik [Fri, 28 Feb 2014 14:05:39 +0000 (14:05 +0000)]
Merge "restconf client expects stream discovery to be implemented"

10 years agoMerge "Fixed for Bug 468."
Tony Tkacik [Thu, 27 Feb 2014 16:50:50 +0000 (16:50 +0000)]
Merge "Fixed for Bug 468."

10 years agoFixed for Bug 468. 72/5472/1
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>
10 years agorestconf client expects stream discovery to be implemented 51/5451/3
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>
10 years agoadded missing payload extraction in proxy method 27/5327/15
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>
10 years agoadded isInterface test for listener registration 08/5308/17
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>
10 years agoFixed missing predicate in package name regex. Improved error reporting. 69/5469/1
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>
10 years agoBug 466:Fixed namespace and revision resolution for empty augmentations. 67/5467/2
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>
10 years agoFixed possible NPE, improved logging. 66/5466/1
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>
10 years agoFixed NPE caused by tryToLoadAugmentations in LazyGeneratedCodecRegistry. 60/5460/2
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>
10 years agoFixed generation of toString method in builder template. 27/5427/2
Martin Vitez [Thu, 20 Feb 2014 15:06:40 +0000 (16:06 +0100)]
Fixed generation of toString method in builder template.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix for Bug-427. 99/5399/6
Milos Fabian [Wed, 19 Feb 2014 00:10:36 +0000 (01:10 +0100)]
Fix for Bug-427.

Added test for mapping from dom (with nested augmenation nodes) to data object.
Added javadocs.

Change-Id: I0d0c08092c6485afb820d9bfbb352cf934f282f3
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Signed-off-by: Milos Fabian <milfabia@cisco.com>
10 years agoAdded initial draft of Normalized Yang Data Tree model. 41/5441/1
Tony Tkacik [Fri, 21 Feb 2014 16:38:14 +0000 (17:38 +0100)]
Added initial draft of Normalized Yang Data Tree model.

Change-Id: Ic50335f8a7bfe0fa4d7c239c997f6ca090b9b506
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoBUG-432: Start fixing the Registration contract 03/5403/3
Robert Varga [Wed, 19 Feb 2014 02:23:06 +0000 (03:23 +0100)]
BUG-432: Start fixing the Registration contract

Registration should be a generic construct, not tied to a particular
object. Unfortunately that requires API-level breakage which needs to be
orchestrated with the users.

As a first step introduce ObjectRegistration concept which is equivalent
with the current Registration concept and gently nudge the users towards
it.

Change-Id: I05723cffcc41bfa2355b5e75d3e675c4809a772a
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoDocument and change the ListenerRegistration contract 02/5402/3
Robert Varga [Wed, 19 Feb 2014 01:15:44 +0000 (02:15 +0100)]
Document and change the ListenerRegistration contract

Add text clarifying the role of this class. Also change the API contract
such that the close() method does not throw checked exceptions. Also
change the API contract such that the thread-safety is ensured via an
AtomicBoolean rather than a synchronized block.

Change-Id: Id29337ded87b812af98852decd677e3243f2179d
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFix various warnings 08/5408/2
Robert Varga [Wed, 19 Feb 2014 03:24:14 +0000 (04:24 +0100)]
Fix various warnings

Change-Id: I68b53f84356885213577a0d793e69f38d5971a6a
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Add registration interface contract definition"
Tony Tkacik [Wed, 19 Feb 2014 14:35:27 +0000 (14:35 +0000)]
Merge "Add registration interface contract definition"

10 years agoMerge "Add injectable LoadingStrategy to RuntimeGeneratedMappingServiceImpl."
Tony Tkacik [Wed, 19 Feb 2014 14:24:35 +0000 (14:24 +0000)]
Merge "Add injectable LoadingStrategy to RuntimeGeneratedMappingServiceImpl."

10 years agoMerge "Use AbstractListenerRegistration"
Tony Tkacik [Wed, 19 Feb 2014 14:07:29 +0000 (14:07 +0000)]
Merge "Use AbstractListenerRegistration"

10 years agoAdd injectable LoadingStrategy to RuntimeGeneratedMappingServiceImpl. 13/5413/1
Maros Marsalek [Wed, 19 Feb 2014 10:52:55 +0000 (11:52 +0100)]
Add injectable LoadingStrategy to RuntimeGeneratedMappingServiceImpl.

This allows config-managed to inject ModuleInfoBackedContext as LoadingStrategy in order to resolve Identity classes.

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoFixed getClassName method. 72/5372/3
Martin Vitez [Mon, 17 Feb 2014 17:07:29 +0000 (18:07 +0100)]
Fixed getClassName method.

If string contained point character, it wasn't escaped and cause compile errors.

Change-Id: I3d2179133a160adb8e1c79649e880aee124e40f3
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdd registration interface contract definition 01/5401/1
Robert Varga [Wed, 19 Feb 2014 01:05:08 +0000 (02:05 +0100)]
Add registration interface contract definition

This clarifies the contractual details of Registration interface.
Notably it clarifies that the close() method is non-blocking.

Change-Id: Ie898c4ae2baf40c6d40e83a583f5046a9c1e0d84
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoUse AbstractListenerRegistration 00/5400/1
Robert Varga [Wed, 19 Feb 2014 01:57:31 +0000 (02:57 +0100)]
Use AbstractListenerRegistration

This gets rid of home-grown class and documents that the close()
contract is not properly implemented.

Change-Id: I183ba502dc60e0017511d2726b8e8b4b2f1f3c2d
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Added more javadocs."
Tony Tkacik [Tue, 18 Feb 2014 15:35:11 +0000 (15:35 +0000)]
Merge "Added more javadocs."

10 years agoAdded more javadocs. 91/5391/1
Martin Vitez [Tue, 18 Feb 2014 11:05:30 +0000 (12:05 +0100)]
Added more javadocs.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed incorrect path construction in JUnit tests. 65/5365/4
Martin Vitez [Mon, 17 Feb 2014 11:54:30 +0000 (12:54 +0100)]
Fixed incorrect path construction in JUnit tests.

Change-Id: I0a9d73876ea0dd6263d414e91070d405fef9069b
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix of $YangModuleInfoImpl for ext. yang models 64/5364/1
Lukas Sedlak [Mon, 17 Feb 2014 11:38:53 +0000 (03:38 -0800)]
Fix of $YangModuleInfoImpl for ext. yang models

Fixed bug in writeJavaSource method in CodeGeneratorImpl. If package does not exist the dir structure is created.
Without this fix yang models containing only extension definitions could not be generated.

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
10 years agoMerge changes Id68de4e3,Id4b3c97f
Robert Varga [Fri, 14 Feb 2014 22:08:10 +0000 (22:08 +0000)]
Merge changes Id68de4e3,Id4b3c97f

* changes:
  Fixed resolving rpc service classes by name and revision insted of namespace and revision
  - fix of getConfigurationDatastore returning null - basic tests added

10 years agoMerge "Fixed DataObjectReadingUtil to resolve multiple items from lists if InstanceId...
Robert Varga [Fri, 14 Feb 2014 22:05:32 +0000 (22:05 +0000)]
Merge "Fixed DataObjectReadingUtil to resolve multiple items from lists if InstanceIdentifier is wildcarded."

10 years agoFixed DataObjectReadingUtil to resolve multiple items from lists if InstanceIdentifie... 34/5334/1
Tony Tkacik [Fri, 14 Feb 2014 21:07:33 +0000 (22:07 +0100)]
Fixed DataObjectReadingUtil to resolve multiple items from lists if InstanceIdentifier is wildcarded.

Change-Id: Iac3d30c548435d1f3a8575ec6f11ac09cd72bb3d
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fixed bug in code generator when handling case defined in grouping as augment...
Lukas Sedlak [Fri, 14 Feb 2014 20:21:00 +0000 (20:21 +0000)]
Merge "Fixed bug in code generator when handling case defined in grouping as augment target."

10 years agoRevert "Added ietf-restconf yang module" 32/5332/2
Tony Tkacik [Fri, 14 Feb 2014 18:10:00 +0000 (18:10 +0000)]
Revert "Added ietf-restconf yang module"

This reverts commit 9003fb310abfa2773e570424dd4b38953beb0673.

Change-Id: Ifd9255b63b76fa1e697361a6b16826921999695a
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Temporarily reverted "Update ietf-inet-types and ietf-yang-types with RFC6991""
Tony Tkacik [Fri, 14 Feb 2014 18:09:27 +0000 (18:09 +0000)]
Merge "Temporarily reverted "Update ietf-inet-types and ietf-yang-types with RFC6991""

10 years agoTemporarily reverted "Update ietf-inet-types and ietf-yang-types with RFC6991" 31/5331/1
Tony Tkacik [Fri, 14 Feb 2014 17:55:38 +0000 (17:55 +0000)]
Temporarily reverted "Update ietf-inet-types and ietf-yang-types with RFC6991"

Upstream dependencies did not honor warnings which required them to specify model revision.

Change-Id: I7ac5d5820bf47fb2e429eb8b8c6ef060b6eab652
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Added ietf-restconf yang module"
Tony Tkacik [Fri, 14 Feb 2014 16:59:29 +0000 (16:59 +0000)]
Merge "Added ietf-restconf yang module"

10 years agoMerge "Update ietf-inet-types and ietf-yang-types with RFC6991"
Tony Tkacik [Fri, 14 Feb 2014 16:59:16 +0000 (16:59 +0000)]
Merge "Update ietf-inet-types and ietf-yang-types with RFC6991"

10 years agoFixed resolving rpc service classes by name and revision insted of namespace and... 05/5305/3
Martin Bobak [Thu, 13 Feb 2014 10:22:37 +0000 (11:22 +0100)]
Fixed resolving rpc service classes by name and revision insted of namespace and revision

Change-Id: Id68de4e3c19883509f28b8e42d05f1db65827aa6
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoUpdate ietf-inet-types and ietf-yang-types with RFC6991 51/3851/10
Robert Varga [Thu, 19 Dec 2013 12:58:03 +0000 (13:58 +0100)]
Update ietf-inet-types and ietf-yang-types with RFC6991

Change-Id: Ie6f6891835f761c440650a2d0d7990db20f9d52f
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdded ietf-restconf yang module 77/5077/5
Martin Sunal [Fri, 31 Jan 2014 21:07:24 +0000 (22:07 +0100)]
Added ietf-restconf yang module

Change-Id: Ifd8012f2ba2b436b68d590caaed512900733fe17
Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years ago- fix of getConfigurationDatastore returning null 04/5304/3
Martin Bobak [Wed, 12 Feb 2014 11:54:42 +0000 (12:54 +0100)]
- fix of getConfigurationDatastore returning null
- basic tests added

Change-Id: Id4b3c97fa3c438b1daf822d223066fa4e427a299
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoFixed concurency bug when multiple threads tried to compute package name. 33/5233/5
Tony Tkacik [Mon, 10 Feb 2014 19:11:15 +0000 (20:11 +0100)]
Fixed concurency bug when multiple threads tried to compute package name.

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