controller.git
9 years agoBUG 2412 - restconf @POST createConfigurationData(payload) method migration 55/15355/12
Vaclav Demcak [Mon, 16 Feb 2015 01:08:09 +0000 (02:08 +0100)]
BUG 2412 - restconf @POST createConfigurationData(payload) method migration

* migration to new faster Infrastructure API and Codecs for method
@POST createConfigurationData(NormalizedNodeContext) on @Path {/config}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing createConfigurationData(NormalizedNodeContext) from
RestconfService to use NormalizedNodeContext.

* add fix or comment tests - problem with RestconfDocumentedExceptionMapper
- it has to be fixed in future commit in this chain

Change-Id: I4ec69712535c322ba8bb8ba8be7943589c10d69b
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 2412 - restconf @POST createConfigurationData method migration 54/15354/13
Vaclav Demcak [Mon, 2 Mar 2015 14:18:03 +0000 (15:18 +0100)]
BUG 2412 - restconf @POST createConfigurationData method migration

* migration to new faster Infrastructure API and Codecs for method
@POST createConfigurationData(String,NormalizedNodeContext,UriInfo)
on @Path {/config/identifier}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing createConfigurationData method from RestconfService
to use NormalizedNodeContext.

* add additional functionality to find a correct child DataSchemaNode
for @POST input payload in XmlNormalizedNodeBodyReader

* add fix or comment tests - problem with RestconfDocumentedExceptionMapper
      - it has to be fixed in future commit in this chain

Change-Id: I8348002aaa817bc4816a0d132f5811fa84eda389
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 1269 - fill HTTP POST response location attribute 74/11274/16
Vaclav Demcak [Mon, 2 Mar 2015 14:16:10 +0000 (15:16 +0100)]
BUG 1269 - fill HTTP POST response location attribute

HTTP POST response atribute LOCATION is now filled with URI to top level
data which were inserted via POST HTTP operation.

!!!!!
RestCodec call was added. Not all codecs have String as output of serialize method
(InstanceIdentifier, Identityref). Currently serialize output is
transformed to string via toString method.
!!!!!

Change-Id: I7e6abbf100b2458907a1afd3b0dd96a6c54d5652
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 2412 - restconf @PUT updateConfigurationData method migration 53/15353/12
Vaclav Demcak [Wed, 11 Feb 2015 14:41:59 +0000 (15:41 +0100)]
BUG 2412 - restconf @PUT updateConfigurationData method migration

* migration to new faster Infrastructure API and Codecs for method
@PUT updateConfigurationData(String, NormalizedNodeContext)
on @Path {/config/identifier}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing updateConfigurationData method from RestconfService
to use NormalizedNodeContext.

* add fix or comment tests - problem with RestconfDocumentedExceptionMapper
  - it has to be fixed in future commit in this chain

Change-Id: Idc2294daed170c9e7dd5a5a0464a961759b34992
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Remove Neutron dependencies"
Tony Tkacik [Sun, 8 Mar 2015 15:37:14 +0000 (15:37 +0000)]
Merge "Remove Neutron dependencies"

9 years agoMerge "BUG 2412 - restconf RestconfDocumentedExceptionMapper class migration"
Tony Tkacik [Sun, 8 Mar 2015 15:14:37 +0000 (15:14 +0000)]
Merge "BUG 2412 - restconf RestconfDocumentedExceptionMapper class migration"

9 years agoMerge changes If17aefba,I36d0f5ec
Tony Tkacik [Sun, 8 Mar 2015 15:13:27 +0000 (15:13 +0000)]
Merge changes If17aefba,I36d0f5ec

* changes:
  BUG 2412 - restconf getOperations method migration
  BUG 2412 - restconf mountpoint getOperations method migration

9 years agoMerge topic 'cleanup/composite-node'
Tony Tkacik [Sun, 8 Mar 2015 15:12:48 +0000 (15:12 +0000)]
Merge topic 'cleanup/composite-node'

* changes:
  BUG 2412 - restconf @GET getAvailableStreams(uri) method migration
  Add SchemaContext to NormalizedNode parser in RESTCONF

9 years agoBUG 2412 - restconf getOperations method migration 19/15819/6
Vaclav Demcak [Wed, 25 Feb 2015 00:47:50 +0000 (01:47 +0100)]
BUG 2412 - restconf getOperations method migration

* migration to new faster Infrastructure API and Codecs for method
@GET getOperations(UriInfo) on @Path {/operations}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing first method getModule(URI) from RestconfService
to use NormalizedNodeContext.
BUT we are not able follow specification for migration in this case
because, we have to change restconf-netconf yang schema before.

Change-Id: If17aefbaa139ee7f1064b25a8592da76d71c4bc4
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Fixed build-failure because of undeclared transtive dependency."
Tony Tkacik [Sun, 8 Mar 2015 14:15:02 +0000 (14:15 +0000)]
Merge "Fixed build-failure because of undeclared transtive dependency."

9 years agoBUG 2412 - restconf @GET getAvailableStreams(uri) method migration 74/14974/12
Vaclav Demcak [Wed, 11 Feb 2015 12:04:49 +0000 (13:04 +0100)]
BUG 2412 - restconf @GET getAvailableStreams(uri) method migration

* migration to new faster Infrastructure API and Codecs for method
@GET getAvailableStreams(UriInfo) on @Path {/streams}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing getAvaliableStreams(UriInfo) method from RestconfService
to use NormalizedNodeContext.

* fix test suiteRestGetOperationTest

Change-Id: Ibe07c2afa72177a259ed7bb23a47e95369d0c145
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 2412 - restconf mountpoint getOperations method migration 18/15818/5
Vaclav Demcak [Wed, 25 Feb 2015 00:27:20 +0000 (01:27 +0100)]
BUG 2412 - restconf mountpoint getOperations method migration

* migration to new faster Infrastructure API and Codecs for method
@GET getOperations(String,UriInfo) on @Path {/operations/identifier}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing first method getModule(URI) from RestconfService
to use NormalizedNodeContext.
BUT we are not able follow specification for migration in this case
because, we have to change restconf-netconf yang schema before.

Change-Id: I36d0f5ec88af7c4a9d8b7a2d7ed84ccdbabd9c13
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoAdd SchemaContext to NormalizedNode parser in RESTCONF 25/16025/5
Vaclav Demcak [Fri, 6 Mar 2015 13:35:45 +0000 (14:35 +0100)]
Add SchemaContext to NormalizedNode parser in RESTCONF

Correct parsing of identities, instance-identifiers
and others, requires access to full SchemaContext,
not only subset of it.

Migrated to parser factory, which provides that
access in order to correctly deserialize
context-sensitive types.

Change-Id: Ic92b9ce745080076a10d654acaba39e5c59f2b42
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoFixed build-failure because of undeclared transtive dependency. 70/16170/1
Tony Tkacik [Sun, 8 Mar 2015 13:26:20 +0000 (14:26 +0100)]
Fixed build-failure because of undeclared transtive dependency.

Change-Id: I1b11a861180437a2f317ee81d8699deaf3a741ba
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG 2584 : Block Datastore creation till Shards are ready 71/14171/4
Moiz Raja [Thu, 15 Jan 2015 15:27:09 +0000 (07:27 -0800)]
BUG 2584 : Block Datastore creation till Shards are ready

Change-Id: I4bef70ea9e6b0dd2cdb82344749abc5028cf3184
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoMerge "Unit Test for md-sal netconf northbound mapping. Tests mapping of netconf...
Tony Tkacik [Thu, 5 Mar 2015 10:16:40 +0000 (10:16 +0000)]
Merge "Unit Test for md-sal netconf northbound mapping. Tests mapping of netconf operations and write/read into datastore."

9 years agoMerge "Fixed discard-changes for mdsal netconf, mapping code cleanup."
Tony Tkacik [Thu, 5 Mar 2015 09:15:26 +0000 (09:15 +0000)]
Merge "Fixed discard-changes for mdsal netconf, mapping code cleanup."

9 years agoExpose proper revision of yang-types model in testtool 33/15733/4
Maros Marsalek [Wed, 25 Feb 2015 16:13:00 +0000 (17:13 +0100)]
Expose proper revision of yang-types model in testtool

Also provide the yang model based capabilities in hello message

Change-Id: I56e2dfb48c5e1714bb829f39c1b020159aba95de
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Fix to karaf-parent to copy in dependencies."
Moiz Raja [Wed, 4 Mar 2015 22:11:49 +0000 (22:11 +0000)]
Merge "Fix to karaf-parent to copy in dependencies."

9 years agoMerge "Dynamically update DatastoreContext properties"
Moiz Raja [Wed, 4 Mar 2015 18:47:25 +0000 (18:47 +0000)]
Merge "Dynamically update DatastoreContext properties"

9 years agoFix to karaf-parent to copy in dependencies. 35/16035/1
Ed Warnicke [Wed, 4 Mar 2015 18:34:28 +0000 (10:34 -0800)]
Fix to karaf-parent to copy in dependencies.

Change-Id: I43602045be0f88d7f825f95d9e986adba136563f
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge changes Ida315250,I90171a8b
Tony Tkacik [Wed, 4 Mar 2015 09:17:20 +0000 (09:17 +0000)]
Merge changes Ida315250,I90171a8b

* changes:
  BUG-2637: migration final - cleanup
  BUG-2637: migration consequence - fix unit test

9 years agoBUG 2768 : Make election timeout factor 20 by default 13/15813/2
Moiz Raja [Fri, 27 Feb 2015 03:26:20 +0000 (19:26 -0800)]
BUG 2768 : Make election timeout factor 20 by default

We may need a follow up patch to make shards in a single node cluster
Leader by default.

For now this fix will delay Shard startup by 10 seconds in a single node cluster.

Change-Id: I5524c622f6eaeba2739d4cfe574f4ead759b8e10
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoMerge "Introduce a mechanism for a Follower to signal it's sync up status"
Tom Pantelis [Wed, 4 Mar 2015 01:22:39 +0000 (01:22 +0000)]
Merge "Introduce a mechanism for a Follower to signal it's sync up status"

9 years agoIntroduce a mechanism for a Follower to signal it's sync up status 54/15954/2
Moiz Raja [Tue, 3 Mar 2015 03:49:41 +0000 (19:49 -0800)]
Introduce a mechanism for a Follower to signal it's sync up status

This patch introduces a new message FollowerInitialSyncUpStatus. The
purpose of the message is to inform the RaftActor or a sub-class thereof
whether the Follower's commitIndex is now atleast at the same level
as the Leader was when it first sent a heartbeat to the Follower.

This will hopefully be useful in a rolling upgrade scenario where
we may have just brought up a new node and need to wait for it to be
synced with the current leader before we bring down and upgrade another
node in the cluster.

Change-Id: If19e4d98c2be708fc6a35823ca92cfac7ca87394
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoMerge "Switch opendaylight-karaf-empty to using karaf-parent"
Moiz Raja [Tue, 3 Mar 2015 22:04:08 +0000 (22:04 +0000)]
Merge "Switch opendaylight-karaf-empty to using karaf-parent"

9 years agoBUG-2637: migration final - cleanup 69/15969/4
Michal Rehak [Fri, 23 Jan 2015 21:12:26 +0000 (22:12 +0100)]
BUG-2637: migration final - cleanup

 - remove migrated features (feature-flow, odl-adsal-compatibility)
 - remove migrated apps (model-flow*, sal-compatibility, sm, im, tp, frm)
 - remove temporary fix in toaster-it

Change-Id: Ida315250f0035e09aa2e2afd0f8df076d9770861
Signed-off-by: Michal Rehak <mirehak@cisco.com>
9 years agoBUG-2637: migration consequence - fix unit test 68/15968/3
Michal Rehak [Tue, 3 Mar 2015 13:08:01 +0000 (14:08 +0100)]
BUG-2637: migration consequence - fix unit test

 - fixed unit test in sal-binding-broker
 - temporary fix of toaster-it

Change-Id: I90171a8b1d15cde70946a95c8246f34f0e255f35
Signed-off-by: Michal Rehak <mirehak@cisco.com>
9 years agoMerge "Exception when creating new DOMNotificationRouter"
Tony Tkacik [Tue, 3 Mar 2015 09:16:38 +0000 (09:16 +0000)]
Merge "Exception when creating new DOMNotificationRouter"

9 years agoFix Bug #2777 : Unable to deploy controller to a cluster - Adding missing config... 51/15951/1
Vamsi Devaki [Tue, 3 Mar 2015 00:09:09 +0000 (16:09 -0800)]
Fix Bug #2777 : Unable to deploy controller to a cluster - Adding missing config file to features

Change-Id: I400824a4618d00a97e7008f2ff349aa1d57c3a29
Signed-off-by: Vamsi Devaki <vamsi.devaki@hp.com>
9 years agoMerge "Bug 2769: Fix issues with ApplyLogEntries"
Moiz Raja [Mon, 2 Mar 2015 22:16:17 +0000 (22:16 +0000)]
Merge "Bug 2769: Fix issues with ApplyLogEntries"

9 years agoRemove Neutron dependencies 49/15749/4
Lorand Jakab [Wed, 25 Feb 2015 19:27:26 +0000 (21:27 +0200)]
Remove Neutron dependencies

Since Neutron source was removed and it's an independent feature now,
remove Neutron dependencies.

Change-Id: I443347a60f8418b1373ad7cb81f10d2ee063b6b0
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
9 years agoSwitch opendaylight-karaf-empty to using karaf-parent 33/15933/1
Ed Warnicke [Mon, 2 Mar 2015 18:05:49 +0000 (10:05 -0800)]
Switch opendaylight-karaf-empty to using karaf-parent

This is important to make sure the correct piece are in place to
use opendaylight-karaf-empty as a basis for karaf integration tests.

Change-Id: I404b78bb9a46162b0393d495bc5d46977e2140a9
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoUnit Test for md-sal netconf northbound mapping. 90/15890/2
Tomas Cere [Thu, 12 Feb 2015 15:59:49 +0000 (16:59 +0100)]
Unit Test for md-sal netconf northbound mapping.
Tests mapping of netconf operations and write/read into datastore.

Change-Id: I08aa59d8dfddb94eeddf8e37c8c86290f4a44ef1
Signed-off-by: Tomas Cere <tcere@cisco.com>
9 years agoFixed discard-changes for mdsal netconf, mapping code cleanup. 74/15774/3
Tomas Cere [Thu, 26 Feb 2015 12:51:42 +0000 (13:51 +0100)]
Fixed discard-changes for mdsal netconf, mapping code cleanup.

Change-Id: I44a872d8c03b49ed3b6082a97c78c6e94fd77257
Signed-off-by: Tomas Cere <tcere@cisco.com>
9 years agoBug 2763: Fixed JSON serialization of root of mount point 20/15720/3
Tony Tkacik [Wed, 25 Feb 2015 13:13:20 +0000 (14:13 +0100)]
Bug 2763: Fixed JSON serialization of root of mount point

Upgrade of yang-data-codec-gson library to use GSON
for streaming and serialization of JSON broke
one special-case which was reading of mount point
root.

This patch migrates NormalizedNodeJsonCodec to
use proper APIs, which allows more explicit control
of how stream is processed.

Change-Id: I0f57e8ef99114a08b1bceb51c47efbcb0546af73
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug 2769: Fix issues with ApplyLogEntries 01/15901/4
Tom Pantelis [Sun, 1 Mar 2015 13:16:28 +0000 (08:16 -0500)]
Bug 2769: Fix issues with ApplyLogEntries

ApplyLogEntries defines toIndex as an int which is inconsistent with
everything else that stores journal indexes as long. In addition this
would cause an insiduous bug if an index was greater than max-int.

To maintain backwards compatibility, we can't change the type in
ApplyLogEntries so I created a new class, ApplyJournalEntries, that
defines toIndex as a long and deprecated ApplyLogEntries.

Also, the serialVersionUID for ApplyLogEntries was previously added in
Lithium however this would cause de-serialization failures when
recovering a pre-Lithium journal from persistence. So I removed the
serialVersionUID.

Change-Id: I7c5fe3a2ef8de292224a1a278abe53fc774a79d8
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
9 years agoBUG 2412 - restconf RestconfDocumentedExceptionMapper class migration 16/15816/1
Vaclav Demcak [Fri, 27 Feb 2015 09:31:52 +0000 (10:31 +0100)]
BUG 2412 - restconf RestconfDocumentedExceptionMapper class migration

* RestconfDocumentedException represents all describled error responses
  for Restconf reports. So we have to migrate the ExceptionMapper @Provider
  to new faster Infrastructure API which works with NormozilzedNodeContext.

* ignore "error-info" test + FIXME for 2 ignore test for RPC when expect
  APPLICATION

Change-Id: Ia08772bd68bb406d31034376ecefa09ab291d615
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoException when creating new DOMNotificationRouter 77/15777/2
Jan Hajnar [Thu, 26 Feb 2015 13:49:41 +0000 (14:49 +0100)]
Exception when creating new DOMNotificationRouter

* method after(eventHandler) was called on EventHandler that was not started.
* added missing disruptor.handleEventsWith() call before handler chaining
setup

documentation for 'after()' method:
https://lmax-exchange.github.io/disruptor/docs/index.html
class Disruptor, method after()

Change-Id: Icb5390114000d3f1bf1ea4096263ded633d9f123
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
9 years agoBUG-2739 Fixed leftover data when removing NETCONF device from topology 68/15768/2
Tomas Cere [Thu, 26 Feb 2015 09:07:10 +0000 (10:07 +0100)]
BUG-2739 Fixed leftover data when removing NETCONF device from topology

Change-Id: I73c8a5e27b8bf72f2aecf29699ce54ed872ad348
Signed-off-by: Tomas Cere <tcere@cisco.com>
9 years agoBUG 2762 : Fix issues found in previous patch 12/15812/1
Moiz Raja [Fri, 27 Feb 2015 02:51:00 +0000 (18:51 -0800)]
BUG 2762 : Fix issues found in previous patch

Comments from https://git.opendaylight.org/gerrit/#/c/15798

Change-Id: Iba4ec3950dd1726827d4a69bd4d75469d805898d
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoBUG 2762 : Compute rate limit based on a more lenient algorithm 98/15798/3
Moiz Raja [Thu, 26 Feb 2015 20:50:02 +0000 (12:50 -0800)]
BUG 2762 : Compute rate limit based on a more lenient algorithm

Calculate the rate limit by looking at each percentile tenth instead of
a single value. This provides a more accurate limit.

Change-Id: Ic71476613ab966c716c203768f3ff395cb251ed0
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoFixed compilation breakage in Netconf CLI 86/15786/1
Tony Tkacik [Thu, 26 Feb 2015 16:44:15 +0000 (17:44 +0100)]
Fixed compilation breakage in Netconf CLI

Change-Id: I59380b25f50304c18e724ca435a290cba1ddc3c0
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "Remove neutron post project split"
Tony Tkacik [Wed, 25 Feb 2015 15:25:44 +0000 (15:25 +0000)]
Merge "Remove neutron post project split"

9 years agoMerge "Startup arch - add odlparent to root pom."
Tony Tkacik [Wed, 25 Feb 2015 09:56:13 +0000 (09:56 +0000)]
Merge "Startup arch - add odlparent to root pom."

9 years agoRemove neutron post project split 64/15264/5
Ryan Moats [Fri, 13 Feb 2015 16:19:49 +0000 (10:19 -0600)]
Remove neutron post project split

Now that neutron code has been split into own repo, clean up here

Change-Id: I6529bedf160c1e1d0ba2c35a37a9b01284fe03a3
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "BUG 2412 - restconf @GET getModule(identifier,uri) method migration"
Tony Tkacik [Wed, 25 Feb 2015 09:29:54 +0000 (09:29 +0000)]
Merge "BUG 2412 - restconf @GET getModule(identifier,uri) method migration"

9 years agoMerge "BUG 2412 - restconf @GET getModule(identifier,uri) method migration"
Tony Tkacik [Wed, 25 Feb 2015 09:29:26 +0000 (09:29 +0000)]
Merge "BUG 2412 - restconf @GET getModule(identifier,uri) method migration"

9 years agoMerge "BUG 2412 - restconf @GET getModule(uri) method migration"
Tony Tkacik [Wed, 25 Feb 2015 09:28:42 +0000 (09:28 +0000)]
Merge "BUG 2412 - restconf @GET getModule(uri) method migration"

9 years agoMerge "Removing { } from NormalizedNodeJsonBodyWriter"
Tony Tkacik [Wed, 25 Feb 2015 08:04:44 +0000 (08:04 +0000)]
Merge "Removing { } from NormalizedNodeJsonBodyWriter"

9 years agoBUG 2412 - restconf @GET getModule(identifier,uri) method migration 71/14971/7
Vaclav Demcak [Fri, 6 Feb 2015 13:14:09 +0000 (14:14 +0100)]
BUG 2412 - restconf @GET getModule(identifier,uri) method migration

    * migration to new faster Infrastructure API and Codecs for method
    @GET getModules(String,UriInfo) on @Path {/modules/module/identifier}

    New faster Infrastructure API works with NormizedNodeContext and
    we are replacing first method getModule(URI) from RestconfService
    to use NormalizedNodeContext.

Change-Id: I7ae36a13ce4533598bbc3abf73d9090e1922abdb
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 2412 - restconf @GET getModule(identifier,uri) method migration 70/14970/9
Vaclav Demcak [Fri, 6 Feb 2015 13:01:30 +0000 (14:01 +0100)]
BUG 2412 - restconf @GET getModule(identifier,uri) method migration

* migration to new faster Infrastructure API and Codecs for method
@GET getModules(String,UriInfo) on @Path {/modules/identifier}

New faster Infrastructure API works with NormizedNodeContext and
we are replacing first method getModule(URI) from RestconfService
to use NormalizedNodeContext.

* add yang models for fix tests (mountpoint tests - TestUtility
loads modules from local directory only)

Change-Id: I394d6d31f650e086ce302a0ba973f1e4a4599ef8
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 2412 - restconf @GET getModule(uri) method migration 69/14969/11
Vaclav Demcak [Tue, 24 Feb 2015 16:34:02 +0000 (17:34 +0100)]
BUG 2412 - restconf @GET getModule(uri) method migration

    * migration to new faster Infrastructure API and Codecs for method
    @GET getModules(UriInfo) on @Path {/modules}

    New faster Infrastructure API works with NormizedNodeContext and
    we are replacing first method getModule(URI) from RestconfService
    to use NormalizedNodeContext.

Change-Id: I9327badeac38a82c9e50721dc47338fc7ae164a1
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBUG 2412 - Restconf migration - marking deprecated classes 67/15667/1
Vaclav Demcak [Tue, 24 Feb 2015 13:33:44 +0000 (14:33 +0100)]
BUG 2412 - Restconf migration - marking deprecated classes

* mark basic deprecated classes and functionality which has to
be overwirte by this commit chain.

New faster Infrastructure API works with NormizedNodeContext
and it provides read/write REST msg body (JSON & XML) direct
to NormalizedNodeContext. So we have to replace all places
where we use StructuredData, CompositeNode, NodeWrapper and
all relevant REST codecs (e.g. XmlToCompositeNodeProvider...)

Change-Id: I33ff24e5a8de2876dfdb6ea263fc9cb659fc3db8
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoBug 2365: YIN Schema download support for Restconf 26/13126/3
Vaclav Demcak [Tue, 24 Feb 2015 12:27:55 +0000 (13:27 +0100)]
Bug 2365: YIN Schema download support for Restconf

Implementation of Restconf 03 Draft Schema download
functionality with additional support for downloading
runtime-generated YIN schema and mount points.

Introduced new endpoints which are:
  /restconf/modules/module/{module}/{revision}/schema

and
  /restconf/modules/module/{mount}/{module}/{revision}/schema

For downloading supplied YANG module in YIN format (default)
or YANG format if Accept header contains application/yang
mime-type.

depends on:
yangtools -  https://git.opendaylight.org/gerrit/#/c/15258/

patch set 3:
 * SchemaExportContentYniBodyWriter : fix reference YinUtils
to YinExportUtils
 * create RestconfValidationUtils + move validation from
SchemaRetrievalServiceImpl
 * pom.xml - add private package
                org.opendaylight.controller.md.sal.rest.common

Change-Id: Ibd2956472ad35d13cb65e305df377f98518b4738
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoFix a race in PingPong transaction scheduling 36/15636/3
Robert Varga [Mon, 23 Feb 2015 22:56:38 +0000 (23:56 +0100)]
Fix a race in PingPong transaction scheduling

We have failed to re-check inflighTx after taking the lock, which meant
that completion and readiness may have raced resulting in warnings about
transaction being submitted while there are others in-flight.

Fix also the shutdown case, which could trigger an unexpected warnings
if there is an inflight transaction.

Change-Id: Ie3a3845335754860a831070d5a73dbc9a4d67d3c
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Bug 2697: Improvement wrong response handling, missing message"
Tony Tkacik [Tue, 24 Feb 2015 09:39:47 +0000 (09:39 +0000)]
Merge "Bug 2697: Improvement wrong response handling, missing message"

9 years agoMerge "Bug 2731: Discard changes only when transaction exist."
Tony Tkacik [Tue, 24 Feb 2015 09:39:34 +0000 (09:39 +0000)]
Merge "Bug 2731: Discard changes only when transaction exist."

9 years agoMerge "Sharded implementation of DOMDataTreeService"
Tony Tkacik [Tue, 24 Feb 2015 09:36:11 +0000 (09:36 +0000)]
Merge "Sharded implementation of DOMDataTreeService"

9 years agoMerge "Fix race condition in get/get-config netconf rpcs for config subsystem"
Tony Tkacik [Tue, 24 Feb 2015 08:50:15 +0000 (08:50 +0000)]
Merge "Fix race condition in get/get-config netconf rpcs for config subsystem"

9 years agoSharded implementation of DOMDataTreeService 99/15199/13
Robert Varga [Thu, 12 Feb 2015 14:09:54 +0000 (15:09 +0100)]
Sharded implementation of DOMDataTreeService

This patch adds a simplistic implementation of a DOMDataTreeService and
a DOMDataTreeShardingService.

Change-Id: Ibb76c99d0fa842b1034a2b747c4ec57816f99c7d
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Make DOMDataTreeIdentifier implement Comparable"
Tony Tkacik [Tue, 24 Feb 2015 08:27:55 +0000 (08:27 +0000)]
Merge "Make DOMDataTreeIdentifier implement Comparable"

9 years agoMerge "Pass down a collection of cohorts"
Tony Tkacik [Tue, 24 Feb 2015 08:27:33 +0000 (08:27 +0000)]
Merge "Pass down a collection of cohorts"

9 years agoMerge "Startup archetype - move impl under 'impl' namespace to prevent exporting."
Tony Tkacik [Tue, 24 Feb 2015 08:26:34 +0000 (08:26 +0000)]
Merge "Startup archetype - move impl under 'impl' namespace to prevent exporting."

9 years agoMerge "Startup arch - Add scm section to root pom."
Tony Tkacik [Tue, 24 Feb 2015 08:26:20 +0000 (08:26 +0000)]
Merge "Startup arch - Add scm section to root pom."

9 years agoMerge "Startup arch - feature cleanup"
Tony Tkacik [Tue, 24 Feb 2015 08:26:05 +0000 (08:26 +0000)]
Merge "Startup arch - feature cleanup"

9 years agoMerge "Skip install and deploy of karaf artifact."
Tony Tkacik [Tue, 24 Feb 2015 08:25:49 +0000 (08:25 +0000)]
Merge "Skip install and deploy of karaf artifact."

9 years agoMake DOMDataTreeIdentifier implement Comparable 34/15634/3
Robert Varga [Mon, 23 Feb 2015 21:45:52 +0000 (22:45 +0100)]
Make DOMDataTreeIdentifier implement Comparable

We can easily define total ordering on this class, which is useful for
maintaining order so that we can find the longest-prefix match easily by
iterating over the keys in the natural ordering.

Change-Id: Ie2f83ea494fe278df4acc1cb6059dae440ef8f37
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoPass down a collection of cohorts 24/15624/3
Robert Varga [Mon, 23 Feb 2015 17:30:31 +0000 (18:30 +0100)]
Pass down a collection of cohorts

Rather than using an iterable, use a Collection. This saves a bit of
code and makes the size available wherever the collection goes.

Change-Id: I7ab9fa594676c221c8a4a0b3e227625af462c338
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG 2676 : Use notification-dispatcher for DataChangeListener actors"
Tom Pantelis [Tue, 24 Feb 2015 00:47:32 +0000 (00:47 +0000)]
Merge "BUG 2676 : Use notification-dispatcher for DataChangeListener actors"

9 years agoMerge "BUG 2676 : Use transaction-dispatcher for ShardTransaction"
Tom Pantelis [Tue, 24 Feb 2015 00:47:19 +0000 (00:47 +0000)]
Merge "BUG 2676 : Use transaction-dispatcher for ShardTransaction"

9 years agoMerge "BUG 2676 : Use shard-dispatcher for ShardManager and Shard actors"
Tom Pantelis [Tue, 24 Feb 2015 00:47:03 +0000 (00:47 +0000)]
Merge "BUG 2676 : Use shard-dispatcher for ShardManager and Shard actors"

9 years agoMerge "BUG 2676 : Use custom client-dispatcher when configured"
Tom Pantelis [Tue, 24 Feb 2015 00:46:52 +0000 (00:46 +0000)]
Merge "BUG 2676 : Use custom client-dispatcher when configured"

9 years agoMerge "BUG 2676 : Introduce API for accessing akka dispatchers"
Tom Pantelis [Mon, 23 Feb 2015 23:13:35 +0000 (23:13 +0000)]
Merge "BUG 2676 : Introduce API for accessing akka dispatchers"

9 years agoMerge "BUG 2718 : Create a diagnostic utility to track append entries replies"
Tom Pantelis [Mon, 23 Feb 2015 23:11:02 +0000 (23:11 +0000)]
Merge "BUG 2718 : Create a diagnostic utility to track append entries replies"

9 years agoMerge "BUG 2741 : Fix issue with real snapshotting when replicatedToAllIndex=-1"
Tom Pantelis [Mon, 23 Feb 2015 19:20:51 +0000 (19:20 +0000)]
Merge "BUG 2741 : Fix issue with real snapshotting when replicatedToAllIndex=-1"

9 years agoStartup archetype - move impl under 'impl' namespace to prevent exporting. 28/15128/3
Nathan Harmon [Wed, 11 Feb 2015 01:07:50 +0000 (17:07 -0800)]
Startup archetype - move impl under 'impl' namespace to prevent exporting.

Change-Id: I2767080af78569a2af8d0c1114d1471a62cbc302
Signed-off-by: Nathan Harmon <nathan.harmon@hp.com>
9 years agoMerge "Bug 2673: Binding cursor-based data change API"
Ed Warnicke [Mon, 23 Feb 2015 18:42:41 +0000 (18:42 +0000)]
Merge "Bug 2673: Binding cursor-based data change API"

9 years agoStartup arch - add odlparent to root pom. 26/15626/1
Nathan Harmon [Mon, 23 Feb 2015 18:07:43 +0000 (10:07 -0800)]
Startup arch - add odlparent to root pom.

Change-Id: I50b9a58aee797f6821816f19984005e9e347c3d9
Signed-off-by: Nathan Harmon <nathan.harmon@hp.com>
9 years agoStartup arch - Add scm section to root pom. 29/15429/3
Nathan Harmon [Tue, 17 Feb 2015 18:45:42 +0000 (10:45 -0800)]
Startup arch - Add scm section to root pom.

Change-Id: Ie20d9f6f0e2201c0c1f7995e451c583c085e689c
Signed-off-by: Nathan Harmon <nathan.harmon@hp.com>
9 years agoStartup arch - feature cleanup 27/15127/2
Nathan Harmon [Wed, 11 Feb 2015 01:32:02 +0000 (17:32 -0800)]
Startup arch - feature cleanup

Change-Id: I8a6c19cb8bfdb21dfa7bab8b427d8b7922fc9a9c
Signed-off-by: Nathan Harmon <nathan.harmon@hp.com>
9 years agoMerge "Re-enable running of SingleFeaturesTest"
Tony Tkacik [Mon, 23 Feb 2015 16:52:26 +0000 (16:52 +0000)]
Merge "Re-enable running of SingleFeaturesTest"

9 years agoSkip install and deploy of karaf artifact. 64/14864/3
Nathan Harmon [Wed, 4 Feb 2015 22:21:23 +0000 (14:21 -0800)]
Skip install and deploy of karaf artifact.

Change-Id: Ib96201b9408216c58b3d573c593a523ef65eafd0
Signed-off-by: Nathan Harmon <nathan.harmon@hp.com>
9 years agoMerge "Startup archetype: remove 'Impl' from config subsystem Module name."
Tony Tkacik [Mon, 23 Feb 2015 16:14:16 +0000 (16:14 +0000)]
Merge "Startup archetype: remove 'Impl' from config subsystem Module name."

9 years agoMerge "Startup archetype: Add basic unit tests for impl."
Tony Tkacik [Mon, 23 Feb 2015 16:14:06 +0000 (16:14 +0000)]
Merge "Startup archetype: Add basic unit tests for impl."

9 years agoMerge "Startup arch - remove artifactId prefix from dir names."
Tony Tkacik [Mon, 23 Feb 2015 16:12:47 +0000 (16:12 +0000)]
Merge "Startup arch - remove artifactId prefix from dir names."

9 years agoMerge "Cleanup root pom "name"."
Tony Tkacik [Mon, 23 Feb 2015 16:08:58 +0000 (16:08 +0000)]
Merge "Cleanup root pom "name"."

9 years agoMerge "Serialize capabilities for notification properly"
Tony Tkacik [Mon, 23 Feb 2015 11:18:23 +0000 (11:18 +0000)]
Merge "Serialize capabilities for notification properly"

9 years agoMerge "BUG-2600 Proper reset caching of notifications upon disconnect"
Tony Tkacik [Mon, 23 Feb 2015 11:18:02 +0000 (11:18 +0000)]
Merge "BUG-2600 Proper reset caching of notifications upon disconnect"

9 years agoMerge "BUG-2635 Netconf monitoring for md-sal netconf northbound"
Tony Tkacik [Mon, 23 Feb 2015 11:17:50 +0000 (11:17 +0000)]
Merge "BUG-2635 Netconf monitoring for md-sal netconf northbound"

9 years agoMerge "DOMDataTree APIs"
Tony Tkacik [Mon, 23 Feb 2015 11:12:25 +0000 (11:12 +0000)]
Merge "DOMDataTree APIs"

9 years agoMerge "Update JMX generator"
Tony Tkacik [Mon, 23 Feb 2015 10:46:08 +0000 (10:46 +0000)]
Merge "Update JMX generator"

9 years agoMerge "xsql should pull junit directly"
Tony Tkacik [Mon, 23 Feb 2015 10:45:09 +0000 (10:45 +0000)]
Merge "xsql should pull junit directly"

9 years agoSerialize capabilities for notification properly 55/15555/2
Maros Marsalek [Fri, 20 Feb 2015 14:13:03 +0000 (15:13 +0100)]
Serialize capabilities for notification properly

Added and removed capabilities in capabilities change notification were serialized as QName.toString but should be na Uri

Change-Id: Id9783c060ecf45d3a7f506cf605051c779a6d21a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-2600 Proper reset caching of notifications upon disconnect 29/15529/4
Maros Marsalek [Fri, 20 Feb 2015 09:40:12 +0000 (10:40 +0100)]
BUG-2600 Proper reset caching of notifications upon disconnect

Change-Id: I9269aef2fee21138b30552ffb0762d73ba98d4be
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-2635 Netconf monitoring for md-sal netconf northbound 68/15468/5
Maros Marsalek [Wed, 18 Feb 2015 16:31:39 +0000 (17:31 +0100)]
BUG-2635 Netconf monitoring for md-sal netconf northbound

Monitoring for mdsal's netconf stores all available monitoring data in the datastore and provides get-schema operation

Change-Id: I573c5d57e5cf25d7688f3355b602327c7af75c65
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Migrate JMX plugin's use of BindingGeneratorUtil"
Tony Tkacik [Mon, 23 Feb 2015 10:44:52 +0000 (10:44 +0000)]
Merge "Migrate JMX plugin's use of BindingGeneratorUtil"

9 years agoMerge "Migrate deprecated guava methods"
Tony Tkacik [Mon, 23 Feb 2015 10:43:45 +0000 (10:43 +0000)]
Merge "Migrate deprecated guava methods"

9 years agoMerge "Do not override artifact versions"
Tony Tkacik [Mon, 23 Feb 2015 10:43:27 +0000 (10:43 +0000)]
Merge "Do not override artifact versions"

9 years agoMerge "Use Preconditions"
Tony Tkacik [Mon, 23 Feb 2015 10:43:13 +0000 (10:43 +0000)]
Merge "Use Preconditions"