netconf.git
8 years agoMove NetconfHelloMessage to netconf-api 77/34477/2
Andrej Mak [Mon, 25 Jan 2016 14:11:30 +0000 (15:11 +0100)]
Move NetconfHelloMessage to netconf-api

Make sessionPreferences return NetconfHelloMessage.
Move NetconfHelloMessage and NetconfHelloMessageAdditionalHeader test to netconf-api.

Change-Id: I8f619954b2ae1428791d1161cba2b4c238083b42
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoBUG 5089: Fix incorrect slave schema repo behaviour 21/34321/1
Tomas Cere [Mon, 8 Feb 2016 12:49:11 +0000 (13:49 +0100)]
BUG 5089: Fix incorrect slave schema repo behaviour

Need to use the correct schema repo in slave schema providers.
Introduced by the patch for BUG 4577.

Change-Id: Iba64841ba0f2f875f4da455cb3025266cf7b6c5e
Signed-off-by: Tomas Cere <tcere@cisco.com>
(cherry picked from commit 0dbc2a1f8597733e72086b0e9dfa191089e3eeab)

8 years agoMerge changes Ib7024e5e,I1b1003c1 into stable/beryllium
Maros Marsalek [Tue, 9 Feb 2016 12:51:45 +0000 (12:51 +0000)]
Merge changes Ib7024e5e,I1b1003c1 into stable/beryllium

* changes:
  Ignore netconf tools from sonar report
  Topology node writer UnitTests

8 years agoBUG-5269 Enable device capabilities override 55/33455/5
Maros Marsalek [Wed, 6 Jan 2016 14:49:19 +0000 (15:49 +0100)]
BUG-5269 Enable device capabilities override

So far, merge was the dafult strategy. From now on, override
is also possible.

Useful when it's necessary to completely replace device models
with user/app models.

Change-Id: I4b1bb68b8257e4a6889f54f7be0e6baee5d7617d
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoBug 5175: RPC called on mount point not being correctly handled when multiple revisio... 82/33982/1
adetalhouet [Wed, 3 Feb 2016 14:04:40 +0000 (09:04 -0500)]
Bug 5175: RPC called on mount point not being correctly handled when multiple revision-date coexist

 The ControllerContext#toQname was just looking for module using the module name. In scenarios where you have multiple revision for the same module, the method was returning the latest schema. This fix is to retreive the schema based on the revision date

Change-Id: Ie1f3ae1b6c4e6fd7133f64f3f5e7c8899c42db5a
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoBug 4948: Catch RuntimeException from ensureParentByMerge 59/33659/6
Balaji Varadaraju [Wed, 27 Jan 2016 20:17:49 +0000 (14:17 -0600)]
Bug 4948: Catch RuntimeException from ensureParentByMerge

Made the calls to PUT and POST more robust. Caught the RuntimeException from
 the merge call in the EnsureParentsByMerge. If this fails then started
a new transaction and continue with the original PUT. This ensures when a device
is unable to handle the empty list/container merge it will still succeed with the
original request. Similar change has been made for POST.
This bug was fixed in stable Lithium. I am pushing the same fix on Beryllium.

Added FIXME statements to figure out and catch specific Runtime exceptions
thrown by Netconf instead of RuntimeException.

Change-Id: Id18a97857e46f44014dbd61cbfa86285457a2905
Signed-off-by: Balaji Varadaraju <bvaradar@brocade.com>
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoBUG 5125: Fix NPE on module's with unknown namespace 08/33908/1
Tomas Cere [Tue, 2 Feb 2016 14:11:26 +0000 (15:11 +0100)]
BUG 5125: Fix NPE on module's with unknown namespace

Change-Id: I9e7db1f3aa36bf6def6318442bb2559cc698dd2c
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 3934: Websockets: Scope ONE doesn't work correctly 61/33761/4
Martin Ciglan [Fri, 29 Jan 2016 11:08:36 +0000 (12:08 +0100)]
Bug 3934: Websockets: Scope ONE doesn't work correctly

Bug fix for vcmts system manager.

Change-Id: I4b7d934ace1ba60afd166dd62aacdc855cd7a9df
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
8 years agoBUG-5019: adjust to changed NormalizedNodeStreamWriter API 50/33650/3
Robert Varga [Thu, 21 Jan 2016 17:32:32 +0000 (18:32 +0100)]
BUG-5019: adjust to changed NormalizedNodeStreamWriter API

This patch just provides the information which is readily available.

Change-Id: Ie56c880c6480d6be750d4efdeeceea6036509bb8
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 0ddfd274ee0274d2a3e5e5a883fa3cbdc3df1916)

8 years agoBug 3934: Websockets: Scope ONE doesn't work correctly 22/33622/1
Martin Ciglan [Wed, 27 Jan 2016 10:26:37 +0000 (11:26 +0100)]
Bug 3934: Websockets: Scope ONE doesn't work correctly

Make sure data in data-change-event is wrapped in data element
per sal-remote.yang specification

Change-Id: Iaac2005a249f53664824ebe99bcfff02fbdd3097
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
8 years agoBug 3934: Websockets: Scope ONE doesn't work correctly 07/33607/1
Martin Ciglan [Tue, 19 Jan 2016 22:42:06 +0000 (23:42 +0100)]
Bug 3934: Websockets: Scope ONE doesn't work correctly

When processing an event which contains a capture of changes in a data subtree,
path and operation are captured to DOM Element, but data itself is ignored.

Change-Id: I11e6a5be5f5f4a025cf3edeb181140c573227a94
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 898916bcccbae02956efa6175118c7521080a2d2)

8 years agoAdd more context when data parsing fails 60/33460/2
Robert Varga [Fri, 22 Jan 2016 18:15:51 +0000 (19:15 +0100)]
Add more context when data parsing fails

This adds information about the XML element which failed to parse. Also
cleans up some eclipse warnings.

Change-Id: I8accc396bc166de26a9a1efe3678e648ac17b28e
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoMerge "BUG 5014 - init topology for config datastore" into stable/beryllium
Tony Tkacik [Fri, 22 Jan 2016 12:36:23 +0000 (12:36 +0000)]
Merge "BUG 5014 - init topology for config datastore" into stable/beryllium

8 years agoIgnore netconf tools from sonar report 49/33349/1
Tomas Cere [Fri, 22 Jan 2016 12:17:08 +0000 (13:17 +0100)]
Ignore netconf tools from sonar report

No need to include these.

Change-Id: Ib7024e5e80bd2c307fdd3e9fed7a06883ca21db6
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoTopology node writer UnitTests 48/33348/2
Tomas Cere [Fri, 22 Jan 2016 10:16:52 +0000 (11:16 +0100)]
Topology node writer UnitTests

Change-Id: I1b1003c15a7595cbe32f7a6fa0f2cafb0812d826
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Bug 4577 Allow specification of a distinct schema cache directory per netconf...
Tony Tkacik [Fri, 22 Jan 2016 08:34:22 +0000 (08:34 +0000)]
Merge "Bug 4577 Allow specification of a distinct schema cache directory per netconf device" into stable/beryllium

8 years agoBug 4940 - correctly implement default-request-timeout-millis 09/33209/1
adetalhouet [Thu, 21 Jan 2016 13:30:19 +0000 (08:30 -0500)]
Bug 4940 - correctly implement default-request-timeout-millis

Change-Id: I5eadfdaff9f67ef79b4fae47135012865f40a9eb
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoBUG 5014 - init topology for config datastore 96/33196/2
Tomas Cere [Thu, 21 Jan 2016 09:16:07 +0000 (10:16 +0100)]
BUG 5014 - init topology for config datastore

this adds initialization for both clustered and non-clustered version
of the feature.

Change-Id: Ia0bd0226853bdcaf9b1510a9a7ff3281209e2c33
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 4577 Allow specification of a distinct schema cache directory per netconf device 13/33013/5
Ryan Goulding [Mon, 11 Jan 2016 20:02:18 +0000 (15:02 -0500)]
Bug 4577 Allow specification of a distinct schema cache directory per netconf device

A leaf is added to odl-sal-netconf-connector-cfg.yang to allow specification of
a schema cache directory relative to the "cache" directory.  The leaf defaults to
"schema", so the default directory for loaded yang files is "cache/schema".  It
is useful to specify a distinct cache directory per netconf mount to avoid potential
model conflicts caused by revisionless import statements.

Change-Id: Id930932aa4ff17a7338ddf96e87557b3949b4204
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoStop failing netconf connection on revision mismatch 54/32954/3
Tomas Cere [Mon, 18 Jan 2016 17:08:02 +0000 (18:08 +0100)]
Stop failing netconf connection on revision mismatch

When there's a mismatch between model revision and what the device
reports we should omit this model and not fail the whole connection.

Change-Id: I642406a4a9d10c00da947825b0f9b7933dda72c6
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBump scala version to match version bump in controller. 37/32937/2
Tomas Cere [Mon, 18 Jan 2016 10:19:56 +0000 (11:19 +0100)]
Bump scala version to match version bump in controller.

Should only be merged after the version bump in controller.

Change-Id: I8df0c07b5373ec6506d445b1c061be0cdc169416
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "BUG 4968: Clear transaction after proxy tx is submitted." into stable/beryllium
Tony Tkacik [Tue, 19 Jan 2016 08:41:02 +0000 (08:41 +0000)]
Merge "BUG 4968: Clear transaction after proxy tx is submitted." into stable/beryllium

8 years agoMerge "Fix netconf-config-connector NetconfMappingTest" into stable/beryllium
Tony Tkacik [Tue, 19 Jan 2016 08:39:19 +0000 (08:39 +0000)]
Merge "Fix netconf-config-connector NetconfMappingTest" into stable/beryllium

8 years agoMerge "Init topology-netconf when clustered topology starts" into stable/beryllium
Tony Tkacik [Mon, 18 Jan 2016 17:04:12 +0000 (17:04 +0000)]
Merge "Init topology-netconf when clustered topology starts" into stable/beryllium

8 years agoFix netconf-config-connector NetconfMappingTest 39/32939/1
Jakub Morvay [Thu, 14 Jan 2016 16:19:49 +0000 (17:19 +0100)]
Fix netconf-config-connector NetconfMappingTest

Since commit operation does not fail when no transaction is
present, remove test expecting exception in such case.

Change-Id: Ib6b94570979b7821fede39a23240463c6524e04e
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoBug 4455 - Inconsistent COMMIT operation handling when no transactions are present 38/32938/1
Jakub Morvay [Thu, 14 Jan 2016 12:39:01 +0000 (13:39 +0100)]
Bug 4455 - Inconsistent COMMIT operation handling when no transactions are present

Return positive response for commit operation in netconf mdsal
northbound even if no candidate transaction is open for session.

Change-Id: I2483a1e4da533566ce318bab0858af2a4fb3c6d3
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
(cherry picked from commit 5a7a791d64aa5de004dd526c2cb6331fc0d58522)

8 years agoBUG 4968: Clear transaction after proxy tx is submitted. 35/32935/2
Tomas Cere [Mon, 18 Jan 2016 13:48:42 +0000 (14:48 +0100)]
BUG 4968: Clear transaction after proxy tx is submitted.

Change-Id: I2038a25cdd0ae17e6517a1f0ac375850a3c17479
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoInit topology-netconf when clustered topology starts 36/32936/1
Tomas Cere [Mon, 18 Jan 2016 12:23:58 +0000 (13:23 +0100)]
Init topology-netconf when clustered topology starts

Change-Id: I527de936aeb88d58de5efa7dbd8463c38034dd2e
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBUG 4930: Make keepalive executor definition actually non-mandatory 66/32766/1
Tomas Cere [Tue, 12 Jan 2016 16:14:03 +0000 (17:14 +0100)]
BUG 4930: Make keepalive executor definition actually non-mandatory

Yangtools started enforcing mandatory statements and keepalive
executor was not actually non-mandatory since name still inherited
mandatory true from the config model.

While we're here cleanup netconf connector module from leftovers
of the old topology-netconf connector design.

Change-Id: Ia2872f557f3cbc61df3130c7e55135148d29fde3
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoUpdate .gitreview for stable/beryllium 48/32648/1
Thanh Ha [Thu, 14 Jan 2016 21:47:01 +0000 (16:47 -0500)]
Update .gitreview for stable/beryllium

Change-Id: Ifc8f47f76f33348c54c73686982f1719827cdf98
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix setting connection timeout milliseconds parameter 07/32507/2
Jakub Morvay [Wed, 13 Jan 2016 14:09:29 +0000 (15:09 +0100)]
Fix setting connection timeout milliseconds parameter

Populate connection timeout milliseconds parameter in netconf topology with
corresponding value from netconf node.

Change-Id: Ib742a2d905228656e0236268269cb2548413e649
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoBug 4129 - available capabilities are not updated after sideload 68/32068/4
Jakub Morvay [Wed, 23 Dec 2015 08:30:50 +0000 (09:30 +0100)]
Bug 4129 - available capabilities are not updated after sideload

Change-Id: I44559f6cb60b9312352a1aa10c30bbb471b33548
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoMerge "BUG 4547: Make sure all channel writes are from a netty thread."
Maros Marsalek [Wed, 13 Jan 2016 10:13:55 +0000 (10:13 +0000)]
Merge "BUG 4547: Make sure all channel writes are from a netty thread."

8 years agoBUG-2062: use newly-introduced ordered leaf-list methods 68/32268/3
Robert Varga [Fri, 8 Jan 2016 10:47:47 +0000 (11:47 +0100)]
BUG-2062: use newly-introduced ordered leaf-list methods

This adds explicit handling of ordered nodes, so that the ordering is
really retained.

Change-Id: I292fa81c5e8a44755e13a1da75bc083a9138a6a0
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoMerge "Fix yang source provisioning from MD-SAL netconf northbound"
Tony Tkacik [Mon, 11 Jan 2016 14:11:56 +0000 (14:11 +0000)]
Merge "Fix yang source provisioning from MD-SAL netconf northbound"

8 years agoBUG 4547: Make sure all channel writes are from a netty thread. 72/32272/5
Tomas Cere [Fri, 8 Jan 2016 12:09:02 +0000 (13:09 +0100)]
BUG 4547: Make sure all channel writes are from a netty thread.

When we were in restconf thread some writes were executed from jetty thread,
we need to make sure all channel writes are coming from netty thread to
preserve message ordering.

Change-Id: I6ca8dda82c11338b1ff590c808f12fa0def9ca33
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Add logging for RPC calls."
Maros Marsalek [Sat, 9 Jan 2016 11:33:11 +0000 (11:33 +0000)]
Merge "Add logging for RPC calls."

8 years agoMerge "Cleanup features a bit"
Maros Marsalek [Sat, 9 Jan 2016 10:17:54 +0000 (10:17 +0000)]
Merge "Cleanup features a bit"

8 years agoAdd logging for RPC calls. 02/32202/4
adetalhouet [Wed, 6 Jan 2016 19:43:22 +0000 (14:43 -0500)]
Add logging for RPC calls.

Change-Id: I97503fc2e098e3c048e10041d8f3de4b65a1e4f6
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoFix yang source provisioning from MD-SAL netconf northbound 26/32226/3
Maros Marsalek [Thu, 7 Jan 2016 13:10:22 +0000 (14:10 +0100)]
Fix yang source provisioning from MD-SAL netconf northbound

Change-Id: Iab11d3780379e681d2d6228868e8b96cd894cb56
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoMerge "Revert "BUG 2594 - PUT method returns wrong status on create""
Tony Tkacik [Fri, 8 Jan 2016 09:12:08 +0000 (09:12 +0000)]
Merge "Revert "BUG 2594 - PUT method returns wrong status on create""

8 years agoRevert "BUG 2594 - PUT method returns wrong status on create" 15/32215/1
Tomas Cere [Thu, 7 Jan 2016 09:03:00 +0000 (09:03 +0000)]
Revert "BUG 2594 - PUT method returns wrong status on create"

This reverts commit 93816f7aeacd89785f083a82036bf6a7d90c316a.

Change-Id: I741add04db100359087d89537744d027a2c4fb6f
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Make mdsal datastore persist through different sessions"
Maros Marsalek [Tue, 5 Jan 2016 14:32:43 +0000 (14:32 +0000)]
Merge "Make mdsal datastore persist through different sessions"

8 years agoMake mdsal datastore persist through different sessions 08/31708/5
Tomas Cere [Mon, 21 Dec 2015 15:36:52 +0000 (16:36 +0100)]
Make mdsal datastore persist through different sessions

Each device needs cached set of datastore operations.

Change-Id: Ib0d846d6e3b118c55890f4e76e19174849b68115
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBUG-4709 Fix first keepalive execution 33/32133/2
adetalhouet [Tue, 5 Jan 2016 13:40:25 +0000 (08:40 -0500)]
BUG-4709 Fix first keepalive execution

Change-Id: I6afcf70ec6b0b46cad861755e13ad33a2a692d19
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoCleanup features a bit 07/32107/2
Robert Varga [Mon, 4 Jan 2016 21:33:29 +0000 (22:33 +0100)]
Cleanup features a bit

Use artifacts imports in pom.xmls (partial conversion) and use odl-netty
feature.

Change-Id: Id50719e7e1b84fcd7b9048d3fb7d6476793b12ce
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoMerge "BUG 3015 - restconf: Un-helpful error message presented when no service provid...
Maros Marsalek [Tue, 5 Jan 2016 10:22:00 +0000 (10:22 +0000)]
Merge "BUG 3015 - restconf: Un-helpful error message presented when no service provider is there to handle the RPC call."

8 years agoMerge "BUG 2594 - PUT method returns wrong status on create"
Maros Marsalek [Tue, 5 Jan 2016 10:21:08 +0000 (10:21 +0000)]
Merge "BUG 2594 - PUT method returns wrong status on create"

8 years agoMerge "BUG 3274 - Generate multiple configs for same port"
Maros Marsalek [Mon, 4 Jan 2016 14:09:27 +0000 (14:09 +0000)]
Merge "BUG 3274 - Generate multiple configs for same port"

8 years agoMerge "Bug 4709 - Add keepalive response timeout to KeepaliveSalFacade of netconf...
Maros Marsalek [Mon, 4 Jan 2016 13:37:42 +0000 (13:37 +0000)]
Merge "Bug 4709 - Add keepalive response timeout to KeepaliveSalFacade of netconf connector."

8 years agoMerge changes from topic 'netconf-clustering'
Tony Tkacik [Mon, 4 Jan 2016 13:25:10 +0000 (13:25 +0000)]
Merge changes from topic 'netconf-clustering'

* changes:
  Move mount point registration after schema resolution
  Cluster schema resolution pipeline
  Clustered sources resolution
  Change onNodeUpdated to first cleanup previous state
  Use normal identify messages first
  Use lock in topology node writer
  Prevent NPE's on failures
  RemoteDeviceDataBroker proxy

8 years agoMerge "Fix empty revision handling in NETCONF capability"
Tony Tkacik [Mon, 4 Jan 2016 10:44:35 +0000 (10:44 +0000)]
Merge "Fix empty revision handling in NETCONF capability"

8 years agoMerge "Bug 4846 odl-mdsal-apidocs swagger UI uses deprecated TokenAuthFilter"
Tony Tkacik [Mon, 4 Jan 2016 08:41:29 +0000 (08:41 +0000)]
Merge "Bug 4846 odl-mdsal-apidocs swagger UI uses deprecated TokenAuthFilter"

8 years agoRemove unused jersey properties 16/31916/1
Ryan Goulding [Mon, 28 Dec 2015 17:43:55 +0000 (12:43 -0500)]
Remove unused jersey properties

Jersey dependencies are inherited from odlparent.  This
removes some now unused jersey properties.

Change-Id: I2b64dc279e8070554e5a4f0f2ad9ece0dc16bff3
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoBug 4846 odl-mdsal-apidocs swagger UI uses deprecated TokenAuthFilter 15/31915/1
Ryan Goulding [Mon, 28 Dec 2015 17:37:41 +0000 (12:37 -0500)]
Bug 4846 odl-mdsal-apidocs swagger UI uses deprecated TokenAuthFilter

Switches from TokenAuthFilter, a ContainerRequestFilter, to AAAFilter, a
javax.servlet.Filter.  This allows use of Shiro Realms including LDAP.

Change-Id: I4956d773da4128b5bbae92b3438154eff3e76367
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoBug 4709 - Add keepalive response timeout to KeepaliveSalFacade of netconf connector. 24/31524/3
adetalhouet [Thu, 17 Dec 2015 16:31:07 +0000 (11:31 -0500)]
Bug 4709 - Add keepalive response timeout to KeepaliveSalFacade of netconf connector.

Change-Id: Ie6c7593eebd62c85430b2b219921fa7d28e63024
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoBUG 3274 - Generate multiple configs for same port 16/31716/2
Tomas Cere [Tue, 22 Dec 2015 14:39:22 +0000 (15:39 +0100)]
BUG 3274 - Generate multiple configs for same port

Change-Id: I1fdf43efa6b0abf3df9e8844b06d30ace2425b50
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Formatted code for Bug-3890"
Maros Marsalek [Tue, 22 Dec 2015 12:38:44 +0000 (12:38 +0000)]
Merge "Formatted code for Bug-3890"

8 years agoBUG 3015 - restconf: Un-helpful error message presented when no service 95/31695/1
Tomas Cere [Mon, 21 Dec 2015 12:51:37 +0000 (13:51 +0100)]
BUG 3015 - restconf: Un-helpful error message presented when no service
provider is there to handle the RPC call.

* added catch in checkRpcResponse when cause of error is unimplemented
rpc service

port of :
https://git.opendaylight.org/gerrit/#/c/23277/2

Change-Id: I12a457bf948bf13040c41e393284e0748b1bcaed
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBUG 2594 - PUT method returns wrong status on create 93/31693/1
Tomas Cere [Mon, 21 Dec 2015 12:36:43 +0000 (13:36 +0100)]
BUG 2594 - PUT method returns wrong status on create

Port of:
https://git.opendaylight.org/gerrit/#/c/19009/

Change-Id: Ic225f9290c49fde29be3fbf7c51ef4cc36d8e532
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMove mount point registration after schema resolution 72/31472/4
Tomas Cere [Wed, 16 Dec 2015 18:28:40 +0000 (19:28 +0100)]
Move mount point registration after schema resolution

Also a couple other minor bugfixes.

Change-Id: Id1e412a748225f4194f0b9c5e39d45f6bf58db4c
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoCluster schema resolution pipeline 15/31415/13
Jakub Morvay [Wed, 16 Dec 2015 10:22:07 +0000 (11:22 +0100)]
Cluster schema resolution pipeline

Change-Id: Ia469fedd25d1511308e52328be925845827968c0
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoClustered sources resolution 26/31326/12
Jakub Morvay [Thu, 10 Dec 2015 14:40:05 +0000 (15:40 +0100)]
Clustered sources resolution

Change-Id: I9fe167ab4185a8ac959b5e1aa6737d1eaff1d90c
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoPull in com.typesafe:config from odlparent 85/31685/1
Stephen Kitt [Mon, 21 Dec 2015 10:29:38 +0000 (11:29 +0100)]
Pull in com.typesafe:config from odlparent

Change-Id: I42b74d58b3e522c141ede246911b35e59f6ce734
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoChange onNodeUpdated to first cleanup previous state 32/31432/3
Tomas Cere [Wed, 16 Dec 2015 14:37:29 +0000 (15:37 +0100)]
Change onNodeUpdated to first cleanup previous state

Change-Id: Ied3a631466753663601905d0b1d7f138e6fc6542
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix empty revision handling in NETCONF capability 00/31500/1
Maros Marsalek [Thu, 17 Dec 2015 12:20:18 +0000 (13:20 +0100)]
Fix empty revision handling in NETCONF capability

If a capability exposed by a netconf server contains revision parameter
but has no value there e.g.
<capability>some-namespace=some-module&amp;revision=</capability>

connection would fail with NPE in netconf connector.

Change-Id: I74a2548dffc524b06c2bcca04e9bd267ed8c7201
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoMerge "Fix non ietf-netconf* mounted RPC invocation from Restconf"
Tony Tkacik [Wed, 16 Dec 2015 15:59:37 +0000 (15:59 +0000)]
Merge "Fix non ietf-netconf* mounted RPC invocation from Restconf"

8 years agoUse normal identify messages first 30/31430/2
Tomas Cere [Tue, 15 Dec 2015 09:33:11 +0000 (10:33 +0100)]
Use normal identify messages first

Prevents crashing akka if bundles containing our messages
weren't loaded on remote node yet.
Add resyncs on remote node's coming up.

Change-Id: I2c6076c1c09ad4a839f4e5e60e172805bdb45ad6
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Make test tool work with schemas with no revision"
Maros Marsalek [Wed, 16 Dec 2015 14:33:23 +0000 (14:33 +0000)]
Merge "Make test tool work with schemas with no revision"

8 years agoMerge "Make test tool expose submodule sources"
Maros Marsalek [Wed, 16 Dec 2015 14:33:01 +0000 (14:33 +0000)]
Merge "Make test tool expose submodule sources"

8 years agoFix non ietf-netconf* mounted RPC invocation from Restconf 28/31428/2
Maros Marsalek [Wed, 16 Dec 2015 13:28:54 +0000 (14:28 +0100)]
Fix non ietf-netconf* mounted RPC invocation from Restconf

Invoked RPCs from modules other than iet-netconf* were executed on ODL itself
instead of a mountpoint regardless of whether they were aimed at a mountpoint
or not.

Change-Id: I2586ad77ec17c7542ba3ffd931684fb6f7c12685
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoAdd copyright headers to sal-rest-connector 73/31373/2
Thanh Ha [Tue, 15 Dec 2015 22:15:17 +0000 (17:15 -0500)]
Add copyright headers to sal-rest-connector

Change-Id: Icba51049b68d23093dca4f315b26016baa3861e8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFormatted code for Bug-3890 87/30187/4
shivanip [Tue, 15 Dec 2015 11:09:56 +0000 (16:39 +0530)]
Formatted code for Bug-3890

Change-Id: I7b6c481104ec4445c034cc5a9e560a641e7df93c
Signed-off-by: Shivani Pathak <shivani.pathak@tcs.com>
8 years agoUse lock in topology node writer 05/31205/2
Tomas Cere [Fri, 11 Dec 2015 16:44:20 +0000 (17:44 +0100)]
Use lock in topology node writer

Prevents race conditions from akka callbacks.
Prevent NPE's when deleting node that's not connected.

Change-Id: I0e46083fe98c88cae7dc836c98f9eb4e22026579
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoPrevent NPE's on failures 04/31204/2
Tomas Cere [Fri, 11 Dec 2015 12:23:25 +0000 (13:23 +0100)]
Prevent NPE's on failures

Change-Id: I7f69aa4f9a695c7d03cd7db6cd5c539bfd255cdd
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRemoteDeviceDataBroker proxy 18/30718/4
Tomas Cere [Mon, 30 Nov 2015 16:15:42 +0000 (17:15 +0100)]
RemoteDeviceDataBroker proxy

Change-Id: Ifdb7b905f95dc2af5e31003e59405ebc446d85d3
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 4773 Package uses conflict between authn and restconf 94/31294/2
Ryan Goulding [Mon, 14 Dec 2015 17:39:46 +0000 (12:39 -0500)]
Bug 4773 Package uses conflict between authn and restconf

Add in the javax.annotation dependencies, and make the bundles private
so there is no package uses conflict.

Change-Id: Ic6b3cc7906179ae63524035eff4e8d9faa33c61b
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMerge "Bug 3896 - direct usage of == instead of .equals"
Maros Marsalek [Mon, 14 Dec 2015 15:51:47 +0000 (15:51 +0000)]
Merge "Bug 3896 - direct usage of == instead of .equals"

8 years agoBug 3896 - direct usage of == instead of .equals 69/30869/4
adetalhouet [Sun, 6 Dec 2015 17:43:36 +0000 (12:43 -0500)]
Bug 3896 - direct usage of == instead of .equals

Change-Id: If0b7ba7c8cecc9dffc036b4cadfd2654034674a6
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoMerge "Formatted code Bug-3894."
Maros Marsalek [Mon, 14 Dec 2015 11:19:32 +0000 (11:19 +0000)]
Merge "Formatted code Bug-3894."

8 years agoMerge "Remove DelegatingNormalizedNodeStreamWriter"
Tony Tkacik [Fri, 11 Dec 2015 13:23:18 +0000 (13:23 +0000)]
Merge "Remove DelegatingNormalizedNodeStreamWriter"

8 years agoMerge changes I24adce35,Ia5947ae6
Tony Tkacik [Fri, 11 Dec 2015 13:22:17 +0000 (13:22 +0000)]
Merge changes I24adce35,Ia5947ae6

* changes:
  Revert "Fix shorthand case statement in netconf notifications model"
  Revert "Better FIXME comment in ietf-netconf-notifications model"

8 years agoMerge "Bug 4700 - RestPerfClient spits NumberFormatException and hangs"
Tony Tkacik [Fri, 11 Dec 2015 13:20:13 +0000 (13:20 +0000)]
Merge "Bug 4700 - RestPerfClient spits NumberFormatException and hangs"

8 years agoMerge "Remove unnecessary uses of odlparent properties"
Tony Tkacik [Fri, 11 Dec 2015 13:19:03 +0000 (13:19 +0000)]
Merge "Remove unnecessary uses of odlparent properties"

8 years agoMerge "Bug 4719 Shiro integration into restconf"
Tony Tkacik [Fri, 11 Dec 2015 13:18:31 +0000 (13:18 +0000)]
Merge "Bug 4719 Shiro integration into restconf"

8 years agoFormatted code Bug-3894. 91/30191/4
shivanip [Fri, 11 Dec 2015 09:06:11 +0000 (14:36 +0530)]
Formatted code Bug-3894.

Change-Id: I9cc580133250c12592e8eb2d64629c54fc3d78f0
Signed-off-by: Shivani Pathak <shivani.pathak@tcs.com>
8 years agoBug 4719 Shiro integration into restconf 72/26472/29
Ryan Goulding [Thu, 3 Sep 2015 16:00:29 +0000 (12:00 -0400)]
Bug 4719 Shiro integration into restconf

Switches from TokenAuthFilter, a ContainerRequestFilter, to AAAFilter, a
javax.servlet.Filter.  This allows use of Shiro Realms including LDAP.  In
order to run restconf without AAA, you can can still utilize the
odl-restconf-noauth feature.  AAAFilter is disabled by default, and only
enabled when the odl-shiro-act bundle is activated.

Change-Id: I628967886c8b999761a71a632dc34294b45292df
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMerge "Bug 4712 - Fix Keepalive task to check the response of a keepalive request"
Maros Marsalek [Thu, 10 Dec 2015 17:00:10 +0000 (17:00 +0000)]
Merge "Bug 4712 - Fix Keepalive task to check the response of a keepalive request"

8 years agoMerge "Fix missing NetconfNotificationCollector service"
Maros Marsalek [Thu, 10 Dec 2015 16:19:08 +0000 (16:19 +0000)]
Merge "Fix missing NetconfNotificationCollector service"

8 years agoFix missing NetconfNotificationCollector service 38/31138/1
Tomas Cere [Thu, 10 Dec 2015 13:09:47 +0000 (14:09 +0100)]
Fix missing NetconfNotificationCollector service

Change-Id: Icac4957a2e68499cc2a438e4ea3b516d725a4854
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRemove unnecessary uses of odlparent properties 35/31135/1
Stephen Kitt [Thu, 10 Dec 2015 12:43:39 +0000 (13:43 +0100)]
Remove unnecessary uses of odlparent properties

${bouncycastle.version} and ${jersey.version} are no longer
necessary.

This depends on Ifb388ce08e1870b50ce720061550e72137bce798 in
oldparent.

Change-Id: If8581e2299bfe9984e71bcfca5560580f65f5c12
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBug 4725 - RestPerfClient: Add support for authentication. 80/31080/3
Jakub Morvay [Wed, 9 Dec 2015 15:47:37 +0000 (16:47 +0100)]
Bug 4725 - RestPerfClient: Add support for authentication.

Add HTTP basic authentication support to RestPerfClient.

Change-Id: Idc9537b1e4018abe672bec38a3291a40251d53e8
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoBug 4700 - RestPerfClient spits NumberFormatException and hangs 83/31083/1
Jakub Morvay [Wed, 9 Dec 2015 16:15:06 +0000 (17:15 +0100)]
Bug 4700 - RestPerfClient spits NumberFormatException and hangs

Validate destination argument and exit if destination does not start with '/'.

Change-Id: Ic2dcfb9876cffebfae02c0756eda93416b19a284
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoBug 4712 - Fix Keepalive task to check the response of a keepalive request 93/30993/3
adetalhouet [Tue, 8 Dec 2015 16:54:25 +0000 (11:54 -0500)]
Bug 4712 - Fix Keepalive task to check the response of a keepalive request

If response is null, tear down the session.

Change-Id: I11bda91a346e833eff4003eaec7c677a1f1733d3
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoMake test tool work with schemas with no revision 94/30994/1
Jakub Morvay [Tue, 8 Dec 2015 16:56:33 +0000 (17:56 +0100)]
Make test tool work with schemas with no revision

Change-Id: I9be0c3397288a55a422ef631d1a73378236382a9
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoMake test tool expose submodule sources 07/30907/2
Jakub Morvay [Mon, 7 Dec 2015 12:38:55 +0000 (13:38 +0100)]
Make test tool expose submodule sources

Change-Id: If614ee052175f6f1ce60609aa0696788c216c247
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoRevert "Fix shorthand case statement in netconf notifications model" 22/30722/3
Jakub Morvay [Fri, 4 Dec 2015 15:23:32 +0000 (16:23 +0100)]
Revert "Fix shorthand case statement in netconf notifications model"

This reverts commit da1abe40ffbc95f53149797f7aff46a4510b5db3.

Since BUG 4414 is fixed, use shorthand version of case statement

Change-Id: I24adce3584caada676b91ddc9865e69bfc6eb67e
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoRevert "Better FIXME comment in ietf-netconf-notifications model" 21/30721/3
Jakub Morvay [Fri, 4 Dec 2015 15:23:24 +0000 (16:23 +0100)]
Revert "Better FIXME comment in ietf-netconf-notifications model"

This reverts commit 9940f0ef33ebc84294f278423d33b031c3da1c72.

Since BUG 4414 is fixed, use shorthand version of case statement

Change-Id: Ia5947ae6b133f691d65034c0607898c270d427c7
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoRemove DelegatingNormalizedNodeStreamWriter 16/30916/2
Tomas Cere [Mon, 7 Dec 2015 16:09:04 +0000 (17:09 +0100)]
Remove DelegatingNormalizedNodeStreamWriter

We already have ForwardingNormalizedNodeStreamWriter
in yangtools.

Needs to be merged after:
https://git.opendaylight.org/gerrit/#/c/30914/

Change-Id: I4eb17f41dd086976045da2981397008f2cd75f93
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix changed version 99/30899/2
Tomas Cere [Mon, 7 Dec 2015 10:18:54 +0000 (11:18 +0100)]
Fix changed version

Inadvertently changed version while cleaning up features.
This reverts it.

Change-Id: Id273a7feaf82d08a6be105b591b195e2fef7cbd6
Signed-off-by: Tomas Cere <tcere@cisco.com>