yangtools.git
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 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>
10 years agoAdded utility functions which allows for resolving InstanceIdentifier against concret... 19/5319/2
Tony Tkacik [Fri, 14 Feb 2014 05:02:12 +0000 (06:02 +0100)]
Added utility functions which allows for resolving InstanceIdentifier against concrete DataObject

Change-Id: I12c90a8f75782b9be524d33763ec012e8b0a31f3
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed incorrect path construction in JUnit tests. 09/5309/3
Tony Tkacik [Thu, 13 Feb 2014 17:37:06 +0000 (18:37 +0100)]
Fixed incorrect path construction in JUnit tests.

Change-Id: I8d10bd6aa6cc84e3435a438f7d4b2aa94a463259
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug in code generator when handling case defined in grouping as augment target. 80/5280/2
Martin Vitez [Wed, 12 Feb 2014 08:34:58 +0000 (09:34 +0100)]
Fixed bug in code generator when handling case defined in grouping as augment target.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added Export-Packages for propper bundle startup in osgi container"
Martin Vitez [Wed, 12 Feb 2014 10:08:24 +0000 (10:08 +0000)]
Merge "Added Export-Packages for propper bundle startup in osgi container"

10 years agoBug fixes for codecs. 21/5221/4
Lukas Sedlak [Mon, 10 Feb 2014 06:51:33 +0000 (22:51 -0800)]
Bug fixes for codecs.

Added proper serialization of Empty Type Definitions into TransformerGenerator.xtend.
Added overload method "toDocument" which creates XML Document without schema definition for particular Data DOM tree.
This fix is primary needed for md-sal NetconfMapping. If this fix is NOT applied the toRpcMessage in NetconfMapping.xtend will NOT work properly.
Added javadocs for both toDocument methods.

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
Change-Id: Ia1af32d3a9f11d81da8abf4274b84ca3b5d610d5

10 years agoAdded Export-Packages for propper bundle startup in osgi container 59/5259/1
Martin Bobak [Tue, 11 Feb 2014 15:03:41 +0000 (16:03 +0100)]
Added Export-Packages for propper bundle startup in osgi container

Change-Id: I5f03ed56b1bd6cff36597bdf667b6042e1e9c046
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years ago- restconf client implementation using RuntimeGeneratedMappingService 96/5096/30
Martin Bobak [Sat, 8 Feb 2014 04:11:24 +0000 (05:11 +0100)]
- restconf client implementation using RuntimeGeneratedMappingService
- added YangtoolsMappingHelper for resolving notification methods
- Added implementation of AbstractDataStore which provides base support for remote reading
  - started sample JUnit tests which shows initialization with client
  - DataStore is now just wrapper on top of RestconfClientImpl
  - Fixed creation of Restconf Paths from InstanceIdentifiers

Change-Id: I95682b05cbbeb4f484557fc7cbd39a646e7a5e5b
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded SchemaContextHolder interface to RuntimeGeneratedMappingServiceImpl to provide... 53/5153/2
Tony Tkacik [Sat, 8 Feb 2014 04:11:07 +0000 (05:11 +0100)]
Added SchemaContextHolder interface to RuntimeGeneratedMappingServiceImpl to provide its schemaContext

Change-Id: Iceb5af637ba36ec23c8874a830b7d804ea7f345d
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoPerformance improvements to yang.data.api.InstanceIdentifier 84/5184/2
Tony Tkacik [Fri, 7 Feb 2014 21:04:16 +0000 (22:04 +0100)]
Performance improvements to yang.data.api.InstanceIdentifier

- Changed Collections.unmodifiableMap() to ImmutableMap,
  which is faster and safer, since the InstanceIdentifier
  contract requires immutability
- Added hashCode cache, which is safe, since all state
  captured by instance is immutable, from the moment of
  the object allocation.

Change-Id: I4d52af24f58c63ff5870e098b2b5fc9bbb34aec4
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed performance bug when Augmentation codecs we're not cached properly for fast... 82/5182/2
Tony Tkacik [Fri, 7 Feb 2014 19:52:13 +0000 (20:52 +0100)]
Fixed performance bug when Augmentation codecs we're not cached properly for fast access.

Change-Id: I33e41bc778c4b11abded46650a2e4b0fcabb6519
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded test for OSGi metadata. 78/1678/5
Martin Vitez [Fri, 4 Oct 2013 14:26:12 +0000 (16:26 +0200)]
Added test for OSGi metadata.

Change-Id: I225ffa4b5b85fda03e31b238f51151fd89bb6b17
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded support for discovering YangModuleInfo via ServiceLoader. 57/5157/5
Tony Tkacik [Tue, 28 Jan 2014 16:43:08 +0000 (17:43 +0100)]
Added support for discovering YangModuleInfo via ServiceLoader.

  - Added ModuleInfoBackedContext which provides
     -  GeneratedClassLoadingStrategy which supports proactive search
     -  Creation of SchemaContext based on registered YangModuleInfo

Change-Id: I890c275031151b874b42b4e46bee4edcfce595ec
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed situation when xmlClass property was not serialized. 61/5161/1
Tony Tkacik [Fri, 7 Feb 2014 01:55:16 +0000 (02:55 +0100)]
Fixed situation when xmlClass property was not serialized.

Change-Id: I8a226441bc1370bcf3e7e87b15caec1f17c06e5f
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMake sure class loading strategy is initialized 31/5131/1
Robert Varga [Wed, 5 Feb 2014 14:05:23 +0000 (15:05 +0100)]
Make sure class loading strategy is initialized

Fixes a failure to verify in the controller

Change-Id: I90a516c5a8d88e17b419db2bf02c02ee36eb6cd6
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoExtended BindingReflections to support detecting notification callbacks. 22/5122/2
Tony Tkacik [Tue, 4 Feb 2014 19:16:31 +0000 (20:16 +0100)]
Extended BindingReflections to support detecting notification callbacks.

Change-Id: I406d92678b6784242d469d364053a588b76d1135
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded getServiceType and support for classloading strategies. 62/5062/4
Tony Tkacik [Fri, 31 Jan 2014 13:09:51 +0000 (14:09 +0100)]
Added getServiceType and support for classloading strategies.

Change-Id: I8e43f66fd7d22f34aa0dbc4f89df07c3c0962cd2
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Renamed getLength() method to length() in classes generated from typedefs."
Robert Varga [Tue, 4 Feb 2014 18:53:25 +0000 (18:53 +0000)]
Merge "Renamed getLength() method to length() in classes generated from typedefs."

10 years agoMerge "Deleted unused YangNode from yang-model-api."
Robert Varga [Tue, 4 Feb 2014 18:52:48 +0000 (18:52 +0000)]
Merge "Deleted unused YangNode from yang-model-api."

10 years agoMerge "Make sure builder-generated object do not emit null values"
Robert Varga [Tue, 4 Feb 2014 18:44:16 +0000 (18:44 +0000)]
Merge "Make sure builder-generated object do not emit null values"

10 years agoDeleted unused YangNode from yang-model-api. 98/5098/5
Martin Vitez [Mon, 3 Feb 2014 12:06:58 +0000 (13:06 +0100)]
Deleted unused YangNode from yang-model-api.

Change-Id: I475f692b35ba27569b51e669965a095e59c7eab0
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMinor code style improvements to eliminate eclipse warnings. 33/5033/5
Martin Vitez [Thu, 30 Jan 2014 15:42:42 +0000 (16:42 +0100)]
Minor code style improvements to eliminate eclipse warnings.

Made inner node implementations private static final in builders.
Removed unused imports.
Removed unused variable declarations.

Change-Id: I33c4840cf56473264c06df63326594af97a23089
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoRenamed getLength() method to length() in classes generated from typedefs. 77/4977/2
Martin Vitez [Tue, 28 Jan 2014 10:09:41 +0000 (11:09 +0100)]
Renamed getLength() method to length() in classes generated from typedefs.

Updated tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Deprecate yang-model-util InstanceIdentifier"
Tony Tkacik [Tue, 4 Feb 2014 17:52:03 +0000 (17:52 +0000)]
Merge "Deprecate yang-model-util InstanceIdentifier"

10 years agoMake sure builder-generated object do not emit null values 80/5080/3
Robert Varga [Fri, 31 Jan 2014 13:38:53 +0000 (14:38 +0100)]
Make sure builder-generated object do not emit null values

Change-Id: Ifff51ab174ca03df129943c67155082c363554b8
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdd more meaningful message 11/5111/1
Robert Varga [Mon, 3 Feb 2014 23:29:19 +0000 (00:29 +0100)]
Add more meaningful message

It turns out that this error is thrown for various reasons, we need to
improve logging in order to be able to track down offenders.

Change-Id: I2e90822d6cadb336f8e633dc9e76bdca077b8103
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Add default output base directory for generated sources as compile root folder...
Robert Varga [Mon, 3 Feb 2014 13:08:09 +0000 (13:08 +0000)]
Merge "Add default output base directory for generated sources as compile root folder for maven project in sal code generator."

10 years agoAdd default output base directory for generated sources as compile root folder for... 57/5057/3
Maros Marsalek [Fri, 31 Jan 2014 10:42:11 +0000 (11:42 +0100)]
Add default output base directory for generated sources as compile root folder for maven project
in sal code generator.

Fixes: maven compilation fails with default outputBaseDir option.
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Change-Id: Ia6d84079dbb76eac5fcfbd29d93b451c0f7e14f9

10 years agoRemove CRLFs 79/5079/3
Robert Varga [Fri, 31 Jan 2014 09:48:20 +0000 (10:48 +0100)]
Remove CRLFs

Change-Id: I3110b88c70a90797cf699709761c04ab05b7124f
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFixed resolving of NotificationDefinition. 07/4907/2
Tony Tkacik [Mon, 27 Jan 2014 16:39:21 +0000 (17:39 +0100)]
Fixed resolving of NotificationDefinition.

  - Deduplicated same code in TransformerGenerator

Change-Id: I1a422aa18d43b86a3132884e539cd65b90a64dfe
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fixed bug in generation of return type for list key properties."
Robert Varga [Fri, 31 Jan 2014 19:25:40 +0000 (19:25 +0000)]
Merge "Fixed bug in generation of return type for list key properties."

10 years agoMerge "Fixed missing slash in generated YangModuleInfo implementations"
Robert Varga [Fri, 31 Jan 2014 14:19:03 +0000 (14:19 +0000)]
Merge "Fixed missing slash in generated YangModuleInfo implementations"

10 years agoMerge "BUG 339: corrected instance-identifier translation"
Robert Varga [Fri, 31 Jan 2014 14:17:22 +0000 (14:17 +0000)]
Merge "BUG 339: corrected instance-identifier translation"

10 years agoFixed missing slash in generated YangModuleInfo implementations 81/4981/2
Tony Tkacik [Fri, 31 Jan 2014 13:09:34 +0000 (14:09 +0100)]
Fixed missing slash in generated YangModuleInfo implementations

Change-Id: I2d667fe8c7ddb9c18d521a314f9b00c133141b6a
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoDeprecate yang-model-util InstanceIdentifier 37/5037/1
Robert Varga [Thu, 30 Jan 2014 17:30:46 +0000 (18:30 +0100)]
Deprecate yang-model-util InstanceIdentifier

Users should use its yang-data-api counterpart instead.

Change-Id: I733b4536270c066059f74c775ae6a1a19094127b
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Do not return null when no RPC is registered"
Tony Tkacik [Thu, 30 Jan 2014 16:15:35 +0000 (16:15 +0000)]
Merge "Do not return null when no RPC is registered"

10 years agoDo not return null when no RPC is registered 30/5030/2
Robert Varga [Thu, 30 Jan 2014 14:23:37 +0000 (15:23 +0100)]
Do not return null when no RPC is registered

Change-Id: I6f416440d6a497d17050a1971e9a1eb111483e7a
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBUG 339: corrected instance-identifier translation 76/4976/4
Jozef Gloncak [Tue, 28 Jan 2014 09:55:59 +0000 (10:55 +0100)]
BUG 339: corrected instance-identifier translation

XML output with instance-identifier for leaf list

Change-Id: I36feadfb55dc20c802669443b45d0cea416db3a6
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoMerge "BUG-374: cleanup error messages present in controller startup"
Robert Varga [Thu, 30 Jan 2014 10:43:55 +0000 (10:43 +0000)]
Merge "BUG-374: cleanup error messages present in controller startup"

10 years agoBUG-374: cleanup error messages present in controller startup 74/4874/2
SahilShah [Mon, 27 Jan 2014 13:04:47 +0000 (18:34 +0530)]
BUG-374: cleanup error messages present in controller startup

This tones down the "BUG" word which may alarm a casual user. These
still indicate run-time problems which should not occur in a
deterministic run-time environment.

Change-Id: I80871ea1999d2a92d6b343d83ddfc784e7e29ecc
Signed-off-by: SahilShah <sahil4.s@tcs.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years ago[maven-release-plugin] prepare for next development iteration
Jenkins yangtools silo [Mon, 27 Jan 2014 18:15:07 +0000 (18:15 +0000)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release yangtools-0.6.1 yangtools-0.6.1
Jenkins yangtools silo [Mon, 27 Jan 2014 18:09:48 +0000 (18:09 +0000)]
[maven-release-plugin] prepare release yangtools-0.6.1

10 years agoRevert "Fixed resolving of NotificationDefinition." 94/4894/1
Robert Varga [Mon, 27 Jan 2014 16:00:05 +0000 (17:00 +0100)]
Revert "Fixed resolving of NotificationDefinition."

This reverts commit 753056cd7ff59b415e6f916030b5ed38f9585e49.

Change-Id: Ife22a16ef87cfb2828b4209266d3d753c7bfd9f7
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years ago[maven-release-plugin] prepare for next development iteration
Jenkins yangtools silo [Mon, 27 Jan 2014 15:51:17 +0000 (15:51 +0000)]
[maven-release-plugin] prepare for next development iteration

10 years ago[maven-release-plugin] prepare release yangtools-0.6.0 yangtools-0.6.0
Jenkins yangtools silo [Mon, 27 Jan 2014 15:46:13 +0000 (15:46 +0000)]
[maven-release-plugin] prepare release yangtools-0.6.0

10 years agoFixed bug in generation of return type for list key properties. 85/4885/1
Martin Vitez [Mon, 27 Jan 2014 14:25:11 +0000 (15:25 +0100)]
Fixed bug in generation of return type for list key properties.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed resolving of NotificationDefinition. 84/4884/1
Lukas Sedlak [Mon, 27 Jan 2014 14:20:00 +0000 (15:20 +0100)]
Fixed resolving of NotificationDefinition.

Added dipsatch methods for handling of generating body for NotificationDefinition.

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
10 years agoResolved problem - schema node was not found for XML translation 61/4861/2
Martin Sunal [Mon, 27 Jan 2014 12:03:39 +0000 (13:03 +0100)]
Resolved problem - schema node was not found for XML translation

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoFix for bug #233 27/4627/2
SahilShah [Thu, 23 Jan 2014 09:19:22 +0000 (14:49 +0530)]
Fix for bug #233
Have made changes in augment-monitoring.xml
Signed-off-by: SahilShah <sahil4.s@tcs.com>
Change-Id: Id1d031e4ce56c32a3b51d0eebc0ae6de9b56e6a2
Signed-off-by: SahilShah <sahil4.s@tcs.com>
10 years agoMerge "Fix YangModuleInfoImpl generation on windows"
Robert Varga [Mon, 27 Jan 2014 11:08:27 +0000 (11:08 +0000)]
Merge "Fix YangModuleInfoImpl generation on windows"

10 years agoFix YangModuleInfoImpl generation on windows 53/4853/1
Robert Varga [Mon, 27 Jan 2014 10:51:50 +0000 (11:51 +0100)]
Fix YangModuleInfoImpl generation on windows

Turns out the generated module name contains backslashes on Windows.
Convert them to slashes before emitting the string.

Change-Id: I0e09bdcec769a82b3c72ccf6fcc4910c615f736f
Signed-off-by: Prasanna Huddar <prasanna.huddar@ericsson.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFixed uncaught exception when trying to resolve extension argument 52/4852/1
Tony Tkacik [Mon, 27 Jan 2014 09:59:54 +0000 (10:59 +0100)]
Fixed uncaught exception when trying to resolve extension argument
as QName.

Change-Id: I39aabe5a3648e90308b3d29d8dd8de2ff08aa17c
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoYang module source should be always available 48/4848/1
Robert Varga [Mon, 27 Jan 2014 08:20:50 +0000 (09:20 +0100)]
Yang module source should be always available

Change-Id: Ifed7b030beccae2371c398186550b874d84eff7e
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoUpdate YangModuleInfo and its implementations 42/4842/4
Robert Varga [Mon, 27 Jan 2014 06:57:29 +0000 (07:57 +0100)]
Update YangModuleInfo and its implementations

- Use Set, not ImmutableSet in return
- getModuleSourceStream() throws IOException when it fails to find the
  resource
- Force instantiation of imported modules on class load
- Force a call to getModuleSourceStream() on class load

Change-Id: I4f5454d92c049cecc834b37ef14784d70b036a8c
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoWrapped WeakHashMaps into Collections.synchronizedMap 27/4827/2
Tony Tkacik [Sun, 26 Jan 2014 21:51:42 +0000 (22:51 +0100)]
Wrapped WeakHashMaps into Collections.synchronizedMap

Change-Id: Ib5dac831065b8d0efacbc2cca417cb8d14f02a56
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoImplemented support for generating YangModuleInfo implementation. 02/4602/6
Martin Vitez [Tue, 14 Jan 2014 13:50:47 +0000 (14:50 +0100)]
Implemented support for generating YangModuleInfo implementation.

Change-Id: I6f1bc55b15490100522349e1121c758a6dc18976
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMinor fix in XmlDocumentUtils. 17/4817/2
Lukas Sedlak [Sun, 26 Jan 2014 18:26:39 +0000 (19:26 +0100)]
Minor fix in XmlDocumentUtils.

Fixed notificationToDomNodes - root node now constructs from NotificationDefinition in SchemaContext and has correct QName with revision.

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
10 years agoFix parser not picking up latest revision 20/4820/1
Robert Varga [Sun, 26 Jan 2014 19:24:32 +0000 (20:24 +0100)]
Fix parser not picking up latest revision

The parser picked the oldest, not the newest revision.

Change-Id: I014090bac0984176409c59e60184e1b1697864d1
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Improve logging"
Robert Varga [Sun, 26 Jan 2014 19:26:29 +0000 (19:26 +0000)]
Merge "Improve logging"

10 years agoMerge "Fixed duplicate xml elements when decoding XML."
Tony Tkacik [Sun, 26 Jan 2014 19:04:04 +0000 (19:04 +0000)]
Merge "Fixed duplicate xml elements when decoding XML."

10 years agoImprove logging 18/4818/1
Robert Varga [Sun, 26 Jan 2014 18:40:27 +0000 (19:40 +0100)]
Improve logging

Change-Id: Ic9e0844e530d50b0fef1f543e892274002e9d3c9
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFixed duplicate xml elements when decoding XML. 15/4815/1
Tony Tkacik [Sun, 26 Jan 2014 18:23:37 +0000 (19:23 +0100)]
Fixed duplicate xml elements when decoding XML.

Change-Id: I5e139fb61a3e1d883642db06434f7347292264d0
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdd more explicit messages about the fact that a thread is blocked 14/4814/1
Robert Varga [Sun, 26 Jan 2014 18:01:48 +0000 (19:01 +0100)]
Add more explicit messages about the fact that a thread is blocked

When a thread is hijacked we need to know why. Announce it loudly.

Change-Id: Ie06fe283c467233bf421a274bc521becc6a9db47
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBug 376: Added explicit wait for schema when generating augmentation codec. 09/4809/2
Tony Tkacik [Sun, 26 Jan 2014 16:55:03 +0000 (17:55 +0100)]
Bug 376: Added explicit wait for schema when generating augmentation codec.

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