netconf.git
8 years agoFind the most recent notification 80/35680/8
miroslav.kovac [Thu, 3 Mar 2016 12:32:09 +0000 (13:32 +0100)]
Find the most recent notification

If multiple revisions for same notifications are present
it will pick the most recent one. It will iterate through
all of the notifications and it will pick the one with most
recent revision date. StripNotification function is also moved
to NetconfMessageTransformUtil class together with
EVENT_TIME_FORMAT which is needed for this function.

Change-Id: Ibd9fe800d75f877ead03162b42895b322288b62e
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Fix for Eclipse to not choke on this line of Java Generic (was red) "
Tomas Cere [Mon, 2 May 2016 12:28:35 +0000 (12:28 +0000)]
Merge "Fix for Eclipse to not choke on this line of Java Generic (was red) "

8 years agoFixed 3 tests which were clearly put in wrong directory 62/38262/1
Michael Vorburger [Mon, 2 May 2016 10:20:06 +0000 (12:20 +0200)]
Fixed 3 tests which were clearly put in wrong directory

Physical directory location and Java package declaration must match

Change-Id: Ie13abea34024aca40a0f47625d4ed2f6ad8a42ee
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
8 years agoFix for Eclipse to not choke on this line of Java Generic (was red) 61/38261/1
Michael Vorburger [Mon, 2 May 2016 10:17:31 +0000 (12:17 +0200)]
Fix for Eclipse to not choke on this line of Java Generic (was red)

JDT has subtle differences to undocumented JLS re. generics vs javac

Change-Id: Ifd2f5c5e104d112026092ef9be8428271e2f1d91
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
8 years agoBug 5676 - Mark old restconf draft like depricated 07/38007/6
Jakub Toth [Thu, 21 Apr 2016 14:28:34 +0000 (16:28 +0200)]
Bug 5676 - Mark old restconf draft like depricated

Change-Id: Iba80160b2dec0af4af64d50dfae3ec35276bd70d
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoMerge "Make rest-perf-client modify the {DEVICE_PORT} tag in payloads"
Tony Tkacik [Tue, 26 Apr 2016 08:43:16 +0000 (08:43 +0000)]
Merge "Make rest-perf-client modify the {DEVICE_PORT} tag in payloads"

8 years agoMerge "Fix NetconfDevice schema setup"
Tomas Cere [Mon, 25 Apr 2016 13:11:10 +0000 (13:11 +0000)]
Merge "Fix NetconfDevice schema setup"

8 years agoMerge changes Ia25fc20d,I0b2ff209,I33768fc9
Tomas Cere [Mon, 25 Apr 2016 13:02:42 +0000 (13:02 +0000)]
Merge changes Ia25fc20d,I0b2ff209,I33768fc9

* changes:
  Bug 5526 - Handling schema context for restconf
  Bug 5526 - Restconf services api + RestconfConstants
  Bug 5676 - Base draft util class for media types and modules

8 years agoFix NetconfDevice schema setup 41/38041/3
Alexis de Talhouët [Fri, 22 Apr 2016 23:41:50 +0000 (19:41 -0400)]
Fix NetconfDevice schema setup

I don't know exactly where, but it seems like SchemaResolutionException
can wraps a MissingSchemaSourceException thus breaking the schema setup
mechanism.

Change-Id: I2fb20294e95d877598199b02d6e6474781addc0b
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoMerge "Bug 3863: Add onSessionStart and onSessionEnd notification support"
Tomas Cere [Mon, 25 Apr 2016 11:21:57 +0000 (11:21 +0000)]
Merge "Bug 3863: Add onSessionStart and onSessionEnd notification support"

8 years agoBug 5526 - Handling schema context for restconf 48/35948/27
Jakub Toth [Tue, 8 Mar 2016 15:13:23 +0000 (16:13 +0100)]
Bug 5526 - Handling schema context for restconf

Change-Id: Ia25fc20d73b844960fe5d9a6b845f73690390aac
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5526 - Restconf services api + RestconfConstants 74/35874/25
Jakub Toth [Mon, 7 Mar 2016 10:18:47 +0000 (11:18 +0100)]
Bug 5526 - Restconf services api + RestconfConstants

Change-Id: I0b2ff2099dfaa8e064893525c7ea4a56168bbcdb
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoBug 5676 - Base draft util class for media types and modules 73/35873/21
Jakub Toth [Mon, 7 Mar 2016 10:14:46 +0000 (11:14 +0100)]
Bug 5676 - Base draft util class for media types and modules

Change-Id: I33768fc91cedc55549e7e2ee62c74e58ece738ed
Signed-off-by: Jakub Toth <jatoth@cisco.com>
8 years agoFix test failures in NetconfClientDispatcherModuleTest 42/38042/1
Tom Pantelis [Sun, 24 Apr 2016 05:12:57 +0000 (01:12 -0400)]
Fix test failures in NetconfClientDispatcherModuleTest

The implementations of NettyThreadgroupModule and NettyThreadgroupModule
HashedWheelTimerModule in the controller were recently changed - they
now obtain the service instance via the OSGi service registry therefore
several BundleContext methods must be mocked appropriately.

Change-Id: I83c77b0e5199ba73f4fd9e9d3f5ae93a0222f7a7
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoMerge "caching the same capabilities for devices using Interner."
Tomas Cere [Fri, 22 Apr 2016 10:21:27 +0000 (10:21 +0000)]
Merge "caching the same capabilities for devices using Interner."

8 years agoMerge "Use JAXB instead of DOM in updateFeatureFile"
Tomas Cere [Fri, 22 Apr 2016 10:20:10 +0000 (10:20 +0000)]
Merge "Use JAXB instead of DOM in updateFeatureFile"

8 years agoMerge "builder class for path creating"
Tomas Cere [Fri, 22 Apr 2016 10:19:33 +0000 (10:19 +0000)]
Merge "builder class for path creating"

8 years agoMerge "builder class for NetconfServerSessionNegotiatorFactory"
Tomas Cere [Fri, 22 Apr 2016 10:19:06 +0000 (10:19 +0000)]
Merge "builder class for NetconfServerSessionNegotiatorFactory"

8 years agoBug 3863: Add onSessionStart and onSessionEnd notification support 51/36251/13
Andrej Mak [Tue, 15 Mar 2016 14:49:45 +0000 (15:49 +0100)]
Bug 3863: Add onSessionStart and onSessionEnd notification support

OnSessionStart and onSessionEnd support for md-sal netconf.
MonitoringToMdSalWriter is notified about changes in netconf state,
and writes this changes to datastore netconf-state tree.
CapabilityChangeNotificationProducer listens for changes in
netconf-state/capabilities subtree and publishesnotifications
about changes.
SessionNotificationProducer does the same for
netconf-state/sessions/session subtree.

Change-Id: Id40c62b6725bb745413d52078da4a2f0cad0aae1
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoUse JAXB instead of DOM in updateFeatureFile 05/37605/18
matus.kubica [Thu, 14 Apr 2016 10:55:36 +0000 (12:55 +0200)]
Use JAXB instead of DOM in updateFeatureFile

Make updateFeatureFile parse xml with JAXB and update configfile.
Use JaxbUtil to get rid of namespace version compatibility error.

Change-Id: I780fe17f14dff7a1586b9f7982078cfb593c4d83
Signed-off-by: matus.kubica <Matus.Kubica@pantheon.tech>
8 years agoMerge "configure logback.xml file"
Tomas Cere [Thu, 21 Apr 2016 11:49:19 +0000 (11:49 +0000)]
Merge "configure logback.xml file"

8 years agoMerge "Use mounted device schema context when resolving mounted device rpc path"
Tomas Cere [Thu, 21 Apr 2016 11:48:09 +0000 (11:48 +0000)]
Merge "Use mounted device schema context when resolving mounted device rpc path"

8 years agoUse mounted device schema context when resolving mounted device rpc path 59/37959/1
Andrej Mak [Thu, 21 Apr 2016 09:28:07 +0000 (11:28 +0200)]
Use mounted device schema context when resolving mounted device rpc path

It wasn't possible to invoke rpcs on device, which were not present
also in controller schema context, so only rpcs like get-schema and
create-subscription worked. Now, device schema context is used to
lookup rpc definition during parsing path, so rpcs defined by device works.

Change-Id: I1046bad566260c804ce0f786c56c74afe3d7f723
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoconfigure logback.xml file 27/37327/2
miroslav.kovac [Tue, 29 Mar 2016 10:31:44 +0000 (12:31 +0200)]
configure logback.xml file

log file is created only when scale-util class
generates some logs.

Change-Id: Id3c43bcfed7503e2e611c593c392ec1a11e27d89
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Remove inventory related code from netconf connector"
Tomas Cere [Wed, 20 Apr 2016 09:45:26 +0000 (09:45 +0000)]
Merge "Remove inventory related code from netconf connector"

8 years agoBug 2244: Remove rpc-reply reread when applying subtree filter 86/37486/3
Andrej Mak [Tue, 12 Apr 2016 10:56:06 +0000 (12:56 +0200)]
Bug 2244: Remove rpc-reply reread when applying subtree filter

Change-Id: Idfa62d39e855b36bd41bc8b6753efa98a6b9b15f
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoRemove inventory related code from netconf connector 18/37818/1
matus.kubica [Tue, 19 Apr 2016 14:07:31 +0000 (16:07 +0200)]
Remove inventory related code from netconf connector

also removed tests from MountInstanceTests due to deleted deprecated methods from NetconfDeviceSalProvider

Change-Id: I2f78db4b37447fa9c4808122107759523cb9dd40
Signed-off-by: matus.kubica <Matus.Kubica@pantheon.tech>
8 years agocaching the same capabilities for devices using Interner. 28/37728/6
miroslav.kovac [Fri, 15 Apr 2016 07:07:47 +0000 (09:07 +0200)]
caching the same capabilities for devices using Interner.

Change-Id: I70ad61ad714e679b237ab01778690ab4fd1391f1
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Edit todo comments"
Tomas Cere [Tue, 19 Apr 2016 13:03:16 +0000 (13:03 +0000)]
Merge "Edit todo comments"

8 years agoMerge "Remove blocking checkedGet call"
Tomas Cere [Tue, 19 Apr 2016 13:01:57 +0000 (13:01 +0000)]
Merge "Remove blocking checkedGet call"

8 years agoBug 4577 Allow specification of a distinct schema cache directory per netconf device 88/34188/12
adetalhouet [Mon, 29 Feb 2016 21:58:33 +0000 (13:58 -0800)]
Bug 4577 Allow specification of a distinct schema cache directory per netconf device

First iteration done here https://git.opendaylight.org/gerrit/#/c/30163 introduce a BUG:
sideloaded schemas, manually added in cache/schema, and specified in the netconf connector,
where not being taking in account in the specified cache folder.

Change-Id: I6a5a6b23fc56bcc507734a99e48de88597b7ae2a
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoBug 3708 - APIdoc explorer URLs contain extra 'node' in REST calls 31/37631/1
Ryan Goulding [Thu, 14 Apr 2016 15:30:33 +0000 (11:30 -0400)]
Bug 3708 - APIdoc explorer URLs contain extra 'node' in REST calls

* fixed mount point path builder that added each list qname twice

Manually cherry picked from controller patch to netconf patch:
https://git.opendaylight.org/gerrit/#/c/25531

Change-Id: I631961f3b0d791c6e8ab2921ef6eb163e68e7753
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoEdit todo comments 88/37488/4
Andrej Mak [Tue, 12 Apr 2016 11:34:50 +0000 (13:34 +0200)]
Edit todo comments

AbstractNetconfSessionNegotiator - remove, constructor is used
                                   only once
NetconfEventSource - class is called YangModeledAnyXmlNode
NetconfServerSessionListener - not a fixme but ordinary comment
NetconfDeviceRpc - not needed
NetconfMonitoringServiceImpl - same capabilities are simply replaced
AbstractGet - method in restconf has different behavior
RuntimeRpc - not same as NetconfUtil.writeNormalizedNode()

Change-Id: I6ef69b7045bafaff2baf3cb2ee175ab020fbfb26
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoUse the moved ConcurrentDOMDataBroker 05/37505/1
Tomas Cere [Tue, 12 Apr 2016 16:02:29 +0000 (18:02 +0200)]
Use the moved ConcurrentDOMDataBroker

ConcurrentDOMDataBroker has moved packages in controller
update the test that uses this class.

Change-Id: I083d584afda66db4e0d0bd6ce168a20ab0a6ab46
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Replace mdsal model bundles with feature"
Tony Tkacik [Tue, 12 Apr 2016 14:27:16 +0000 (14:27 +0000)]
Merge "Replace mdsal model bundles with feature"

8 years agoMerge "Add IPv6 to NetconfHelloMessageAdditionalHeader"
Tomas Cere [Tue, 12 Apr 2016 12:26:29 +0000 (12:26 +0000)]
Merge "Add IPv6 to NetconfHelloMessageAdditionalHeader"

8 years agoMerge "Use keyed list as a selection node in filter"
Tomas Cere [Tue, 12 Apr 2016 12:22:16 +0000 (12:22 +0000)]
Merge "Use keyed list as a selection node in filter"

8 years agoMerge "add partial match for non-module capabilities - to enable deviations in base...
Tomas Cere [Tue, 12 Apr 2016 12:13:49 +0000 (12:13 +0000)]
Merge "add partial match for non-module capabilities - to enable deviations in base capabilities"

8 years agoMerge "Bug 3866: Support for Restconf HTTP Patch"
Tomas Cere [Mon, 11 Apr 2016 11:21:02 +0000 (11:21 +0000)]
Merge "Bug 3866: Support for Restconf HTTP Patch"

8 years agoMake rest-perf-client modify the {DEVICE_PORT} tag in payloads 10/36110/2
Tomas Cere [Fri, 11 Mar 2016 12:10:07 +0000 (13:10 +0100)]
Make rest-perf-client modify the {DEVICE_PORT} tag in payloads

Change-Id: I8d5a5c6d0e9262a6c854d2e84dad0e6dd42f1141
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Bug 5580 - RestPerfClient: Invalid requests rate reported when a thread times...
Tomas Cere [Mon, 11 Apr 2016 10:38:56 +0000 (10:38 +0000)]
Merge "Bug 5580 - RestPerfClient: Invalid requests rate reported when a thread times out"

8 years agoReplace mdsal model bundles with feature 99/35999/2
Tomas Cere [Wed, 9 Mar 2016 14:58:37 +0000 (15:58 +0100)]
Replace mdsal model bundles with feature

Change-Id: I118a5adef486ba652f293c4bfbad09de6ab63080
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Call CreateSubscription close method on session end"
Tomas Cere [Fri, 8 Apr 2016 09:26:51 +0000 (09:26 +0000)]
Merge "Call CreateSubscription close method on session end"

8 years agoMerge "Removed embedding on javanet stax-utils"
Tomas Cere [Fri, 8 Apr 2016 09:24:59 +0000 (09:24 +0000)]
Merge "Removed embedding on javanet stax-utils"

8 years agoMerge "Remove deprecated NetconfMessageHeader class"
Tomas Cere [Thu, 7 Apr 2016 11:46:42 +0000 (11:46 +0000)]
Merge "Remove deprecated NetconfMessageHeader class"

8 years agoMerge "Bug 4940 - correctly implement default-request-timeout-millis"
Tomas Cere [Thu, 7 Apr 2016 11:01:17 +0000 (11:01 +0000)]
Merge "Bug 4940 - correctly implement default-request-timeout-millis"

8 years agoadd partial match for non-module capabilities - to enable deviations in base capabilities 39/37239/1
Giles Heron [Thu, 7 Apr 2016 08:49:41 +0000 (09:49 +0100)]
add partial match for non-module capabilities - to enable deviations in base capabilities

Change-Id: I06fbeaeb63cca9ad8b2e7b9aa8c75b3a1ce40334
Signed-off-by: Giles Heron <giheron@cisco.com>
8 years agoCall CreateSubscription close method on session end 91/37191/1
Andrej Mak [Wed, 6 Apr 2016 12:56:06 +0000 (14:56 +0200)]
Call CreateSubscription close method on session end

Change-Id: I5dc9138ef74f2b683bdde800f3aec0a3a291c621
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoAdd IPv6 to NetconfHelloMessageAdditionalHeader 77/37177/1
Andrej Mak [Wed, 6 Apr 2016 09:14:45 +0000 (11:14 +0200)]
Add IPv6 to NetconfHelloMessageAdditionalHeader

Address is no longer validated via regex.
Instead, InetAddresses.isInetAddress(address) is used.

Change-Id: I54438405125c1c4fa411a741eab6b3e2d3d13e22
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoBug 4940 - correctly implement default-request-timeout-millis 10/37110/5
Alexis de Talhouët [Mon, 4 Apr 2016 21:51:41 +0000 (17:51 -0400)]
Bug 4940 - correctly implement default-request-timeout-millis

This is a follow up patch of this one https://git.opendaylight.org/gerrit/#/c/33206/
This revert 09343d18f43b408b830aa563d94e5b203692a02e

The implementation made in previous patch was blocking transaction for a given timeout,
but the blocking wasn't handled at the right place, ending up blocking restconf/user thread.

Change-Id: I0804376256bde3fbfc3fe7ae91c5166cf21ee4d3
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agobuilder class for NetconfServerSessionNegotiatorFactory 52/36252/4
miroslav.kovac [Tue, 15 Mar 2016 14:50:03 +0000 (15:50 +0100)]
builder class for NetconfServerSessionNegotiatorFactory

-Constructor parameters are reduced. It has only one parameter,
 which is builder class NetconfServerSessionNegotiatorFactoryBuilder.
 NetconfServerSessionNegotiatorFactory also validates in constructor
 if every required parameter is present.

Change-Id: I887d58c710808c1299baacf9ebc22345efeff113
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agobuilder class for path creating 53/36053/4
miroslav.kovac [Thu, 10 Mar 2016 14:30:10 +0000 (15:30 +0100)]
builder class for path creating

Paths can be created with new path creator class
instead of using constant strings.

Change-Id: Icae8b65fc43f2a12f044f075279fd3ccb009074e
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoDo not pull yang-jmx-generator in 89/37089/1
Robert Varga [Mon, 4 Apr 2016 17:28:14 +0000 (19:28 +0200)]
Do not pull yang-jmx-generator in

This plugin is used only during compile-time (and is pulled in via
plugin configuration), do not declare it as a dependency.

Change-Id: I3fd666e5f96ed77f89d22f3d4ff70bfe737cfffa
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoRemove deprecated NetconfMessageHeader class 65/37065/1
Andrej Mak [Mon, 4 Apr 2016 12:58:43 +0000 (14:58 +0200)]
Remove deprecated NetconfMessageHeader class

Change-Id: Ia4a99e56f936bf7d52f343a1e38935b4b5eaad51
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoUse keyed list as a selection node in filter 58/37058/2
Andrej Mak [Mon, 4 Apr 2016 10:56:58 +0000 (12:56 +0200)]
Use keyed list as a selection node in filter

Keyed list couldn't be used as selection node in filter
before, because filter node was parsed to normalized nodes
and yang codecs don't allow keyed list without key.
Filter content is not transformed to normalized nodes now,
only validated against schema context.

Change-Id: I5a81b268131e737d67cd3443f4f0ee4f124dd8bb
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoRemoved embedding on javanet stax-utils 45/37045/2
Tom Pantelis [Mon, 4 Apr 2016 00:19:44 +0000 (20:19 -0400)]
Removed embedding on javanet stax-utils

javanet stax-utils is now installed as a bundle via a feature so no
longer needs to be embedded in sal-rest-connector.

Change-Id: I7e787e0484c07eee9940b5d7b7e4470b64d36f22
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoBug 5580 - RestPerfClient: Invalid requests rate reported when a thread times out 94/36994/1
Jakub Morvay [Fri, 1 Apr 2016 08:57:25 +0000 (10:57 +0200)]
Bug 5580 - RestPerfClient: Invalid requests rate reported when a thread times out

If some threads sending requests fail or time out, skip calculation of
requests per second value and do not log it.

Change-Id: Icec9cec729999d82671f47f383a6839aeaef6444
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoMerge "Remove unused aaa dependency from netconf-connector feature pom.xml"
Tomas Cere [Fri, 1 Apr 2016 08:17:59 +0000 (08:17 +0000)]
Merge "Remove unused aaa dependency from netconf-connector feature pom.xml"

8 years agoRemove unused aaa dependency from netconf-connector feature pom.xml 71/36971/1
Ryan Goulding [Thu, 31 Mar 2016 15:16:22 +0000 (11:16 -0400)]
Remove unused aaa dependency from netconf-connector feature pom.xml

Removes the features-aaa dependency as it is not needed.

Change-Id: Ia6892bc8b6ae03ca9d648dfae340cf185b1c9c8a
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoBug 5638 switch netconf to use odl-aaa-shiro isntead of odl-aaa-authn 59/36959/1
Ryan Goulding [Thu, 31 Mar 2016 14:13:09 +0000 (10:13 -0400)]
Bug 5638 switch netconf to use odl-aaa-shiro isntead of odl-aaa-authn

odl-aaa-authn has very limited uses now, since odl-aaa-shiro has
included most of its features by default.  Switch netconf to use
odl-aaa-shiro instead of odl-aaa-authn, to get most up to date
aaa implementation.  odl-aaa-authn should be deprecated in a
separate patch.

Change-Id: I3ca039efb607bef6c657937d0471e0b63a01b35b
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMerge "Optimize NetconfMonitoringServiceImpl getSchemaForCapability"
Tomas Cere [Tue, 29 Mar 2016 14:32:06 +0000 (14:32 +0000)]
Merge "Optimize NetconfMonitoringServiceImpl getSchemaForCapability"

8 years agoMerge "Add support for notification subtree filter"
Tomas Cere [Tue, 29 Mar 2016 13:46:11 +0000 (13:46 +0000)]
Merge "Add support for notification subtree filter"

8 years agoMerge "Add support to RESTCONF to dynamically specify Filters"
Tomas Cere [Tue, 29 Mar 2016 13:22:53 +0000 (13:22 +0000)]
Merge "Add support to RESTCONF to dynamically specify Filters"

8 years agoMerge "Reimplement NetconfDevice schema setup without recursion"
Tomas Cere [Tue, 29 Mar 2016 13:00:37 +0000 (13:00 +0000)]
Merge "Reimplement NetconfDevice schema setup without recursion"

8 years agoMerge "change to static function"
Tomas Cere [Tue, 29 Mar 2016 12:12:33 +0000 (12:12 +0000)]
Merge "change to static function"

8 years agoBug 3866: Support for Restconf HTTP Patch 54/30554/48
Martin Ciglan [Thu, 3 Dec 2015 13:58:17 +0000 (14:58 +0100)]
Bug 3866: Support for Restconf HTTP Patch

- JSON body reader/writer in place
- XML body reader/writer in place
- refactored BrokerFacade and RestconfImpl code to apply HTTP Patch within transaction
        in order to be able to rollback in case of error(s)
- review comments implemented

Change-Id: I974c88fc846dfa6fd9b1672d431c0f246c904877
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
8 years agoMerge "Revert "Add PasswordCredentialAuth interface""
Maros Marsalek [Mon, 21 Mar 2016 11:48:28 +0000 (11:48 +0000)]
Merge "Revert "Add PasswordCredentialAuth interface""

8 years agoMerge "Bug 5475 - File descriptor leak on netconf connector reconnects"
Tomas Cere [Mon, 21 Mar 2016 10:03:04 +0000 (10:03 +0000)]
Merge "Bug 5475 - File descriptor leak on netconf connector reconnects"

8 years agoRevert "Add PasswordCredentialAuth interface" 89/36489/1
Tomas Cere [Mon, 21 Mar 2016 09:57:30 +0000 (09:57 +0000)]
Revert "Add PasswordCredentialAuth interface"

This reverts commit 57bfaf2a0146d33a9a504b5a48c5525916a44b79.

Change-Id: I5516089a829fb9b76586289080f78c7343366f21
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRemove blocking checkedGet call 83/36483/1
Andrej Mak [Mon, 21 Mar 2016 06:20:44 +0000 (07:20 +0100)]
Remove blocking checkedGet call

Change-Id: I3079a3c349afa1123d0b0a3c5b382ce97fdd022b
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoAdd support to RESTCONF to dynamically specify Filters 56/36456/1
Ryan Goulding [Tue, 15 Mar 2016 14:17:36 +0000 (10:17 -0400)]
Add support to RESTCONF to dynamically specify Filters

This change builds of work that the AAA team took on to help add dynamicism to
RESTCONF.  The javax.servlet-api specifies a means to define chains of Filter(s)
in front of a web Servlet.  However, configuration of filters is not supported, and
there is no easy existing mechanism to add Filters to a prebuilt ODL
distribution.  The issue involves the fact that Jersey Servlets define Filter
chains within web.xml, which is static and included inside of the odl-restconf
bundle.  This makes it very hard (if not impossible due to lack of
DynamicImport-Package declarations in restconf's pom) to alter the web.xml file
after compilation.

AAA added a filter called CustomFilterAdapter, which recreates the javax
filter chain-of-responsibility pattern.  The dynamic filter chain functionality
has very little to no overhead if left unused, but could be used to add
Filter implementations that allow for enhanced logging of HTTP/S requests/
replies, as well as other various functions.  This aids in debugging real
world deployments, as well as enables enhanced Accounting and Auditing
of the controller.

This functionality has been raised as vital by members of the AG.

Change-Id: Ib81ebdd0ab7de72d75cbbc90124656a3666cacba
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoBug 5475 - File descriptor leak on netconf connector reconnects 92/36192/5
adetalhouet [Thu, 17 Mar 2016 23:08:15 +0000 (19:08 -0400)]
Bug 5475 - File descriptor leak on netconf connector reconnects

Do not start the SshClient each time the AsyncSshHandler is instantiated.

http://mail-archives.apache.org/mod_mbox/mina-users/201603.mbox/%3CCAA66TprZd754Ry8wMYgS7kOJc8%3DvZNP3MA41VYZyVi_oQSv6yw%40mail.gmail.com%3E

Change-Id: If239f87ea4ff707f564f7f10e4f50481033f77fd
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoMerge "Update fixme comments"
Tomas Cere [Fri, 18 Mar 2016 14:51:45 +0000 (14:51 +0000)]
Merge "Update fixme comments"

8 years agoMerge "Remove unneeded todos and fixmes"
Tomas Cere [Fri, 18 Mar 2016 14:51:10 +0000 (14:51 +0000)]
Merge "Remove unneeded todos and fixmes"

8 years agoMerge "Add description to northbound notification yang files"
Tomas Cere [Fri, 18 Mar 2016 14:50:08 +0000 (14:50 +0000)]
Merge "Add description to northbound notification yang files"

8 years agoUpdate fixme comments 36/36436/1
Andrej Mak [Fri, 18 Mar 2016 12:06:17 +0000 (13:06 +0100)]
Update fixme comments

NetconfBaseOps - remove, source node is and has to be wrapped in a choice
CreateSubscription - update comment
MonitoringToMdsalWriter - issue not present anymore

Change-Id: Ied963c7888dc17c352bd942c4176c1de38fd8c73
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoOptimize NetconfMonitoringServiceImpl getSchemaForCapability 66/35866/5
Andrej Mak [Mon, 7 Mar 2016 10:20:16 +0000 (11:20 +0100)]
Optimize NetconfMonitoringServiceImpl getSchemaForCapability

Update mappedModulesToRevisionToSchema only on capability change,
so getSchemaForCapability doesn't need to compute it every time
it's called.

Change-Id: I059085d45c988b58b1379f87c4a5162014b81624
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoAdd support for notification subtree filter 32/36432/2
Andrej Mak [Fri, 18 Mar 2016 10:31:44 +0000 (11:31 +0100)]
Add support for notification subtree filter

Change-Id: Ieae248057d890071c6ac5b05b22f1a05a0a98b0c
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agonetconf-testtool, autoconfiguration through restconf and topology model 65/35065/9
miroslav.kovac [Fri, 19 Feb 2016 11:36:30 +0000 (12:36 +0100)]
netconf-testtool, autoconfiguration through restconf and topology model

It starts all the devices, creates a restconf request and
sends PUT request to odl which sends us some response.
It also gives us time of how long did it take to configure
all the devices. All this can be done synchronously or
asynchronously.

Change-Id: I3c9bfc23b538d934809ddf3664fe024af65ec6ef
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agochange to static function 54/36254/3
miroslav.kovac [Tue, 15 Mar 2016 15:09:57 +0000 (16:09 +0100)]
change to static function

Function get in TestingNetconfClient is static.

Change-Id: Ic6973b7afdffc1fdde10c20a2bc6a1ebedf8f0fd
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Use java 8 DateTimeFormatter in NetconfServerSession"
Tomas Cere [Thu, 17 Mar 2016 12:49:24 +0000 (12:49 +0000)]
Merge "Use java 8 DateTimeFormatter in NetconfServerSession"

8 years agoMerge "Refactor NetconfEventSource"
Tomas Cere [Thu, 17 Mar 2016 12:33:56 +0000 (12:33 +0000)]
Merge "Refactor NetconfEventSource"

8 years agoAdd PasswordCredentialAuth interface 68/35768/4
miroslav.kovac [Thu, 3 Mar 2016 13:38:55 +0000 (14:38 +0100)]
Add PasswordCredentialAuth interface

Prevents warnings during compilation since CredentialAuth is generic.

Change-Id: I368ecf4d03dca65da331c5fd81f2ac7c94d5972e
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
8 years agoMerge "Avoid relying on the timezone"
Maros Marsalek [Thu, 17 Mar 2016 10:12:19 +0000 (10:12 +0000)]
Merge "Avoid relying on the timezone"

8 years agoRemove unneeded todos and fixmes 58/35258/4
Andrej Mak [Tue, 23 Feb 2016 14:24:07 +0000 (15:24 +0100)]
Remove unneeded todos and fixmes

AbstractNetconfTopology - default values should not be stored
ClusteredNetconfTopology - default values should not be stored
BaseTopologyManager - we want to keep successful connection alive
KeepaliveSalFacade - if anything fails we log the exception and reconnect
NetconfDeviceRpc - no need
NetconfMonitoringServiceTestImpl - test is already implemented in another package
NetconfTopology - no need
TransactionProvider - now, every session is nicely isolated

Change-Id: I019c0697172089add16c114b2aa1b8b19e949b28
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoRefactor NetconfEventSource 84/36184/3
Andrej Mak [Mon, 14 Mar 2016 10:37:48 +0000 (11:37 +0100)]
Refactor NetconfEventSource

Change-Id: I83e2d89c1b06abb757e941df3312108e2c6c2031
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoBUG 5413 - RestPerfClient: Hang on java.util.concurrent.CancellationException. 73/35973/3
Jakub Morvay [Wed, 9 Mar 2016 10:35:51 +0000 (11:35 +0100)]
BUG 5413 -  RestPerfClient: Hang on java.util.concurrent.CancellationException.

Make timeout for executing requests customizable via parameter --timeout.
Check for cancelled tasks.

Change-Id: I73256bb52d8056f3345621b9a57a0dd3b9cbdfb5
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoMerge "Remove outdated todos"
Tomas Cere [Fri, 11 Mar 2016 10:03:25 +0000 (10:03 +0000)]
Merge "Remove outdated todos"

8 years agoMerge "Add javadoc link in LoginPassword"
Tomas Cere [Fri, 11 Mar 2016 10:03:00 +0000 (10:03 +0000)]
Merge "Add javadoc link in LoginPassword"

8 years agoMerge "Code cleanup: unify writeNormalizedNode functionality"
Tomas Cere [Fri, 11 Mar 2016 09:42:35 +0000 (09:42 +0000)]
Merge "Code cleanup: unify writeNormalizedNode functionality"

8 years agoMerge "Use transaction chain in SalNodeWriter"
Tomas Cere [Fri, 11 Mar 2016 09:38:40 +0000 (09:38 +0000)]
Merge "Use transaction chain in SalNodeWriter"

8 years agoMerge "Add netconf message to error info"
Tomas Cere [Fri, 11 Mar 2016 09:37:59 +0000 (09:37 +0000)]
Merge "Add netconf message to error info"

8 years agoMerge "Remove outdated fixme"
Tony Tkacik [Wed, 9 Mar 2016 10:04:11 +0000 (10:04 +0000)]
Merge "Remove outdated fixme"

8 years agoAdd netconf scale-util 87/35887/2
Tomas Cere [Mon, 7 Mar 2016 16:34:56 +0000 (17:34 +0100)]
Add netconf scale-util

Change-Id: I37fd698794d94c48d3c91b4533385c425651d075
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRemove outdated todos 11/35911/1
Andrej Mak [Tue, 8 Mar 2016 07:45:16 +0000 (08:45 +0100)]
Remove outdated todos

Change-Id: I6ea10b4f3d183d0c0479e811c81e8bcc8987540b
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoBug 4964: Akka 2.4.1 version bump 41/35441/2
Tom Pantelis [Fri, 26 Feb 2016 02:52:27 +0000 (21:52 -0500)]
Bug 4964: Akka 2.4.1 version bump

The akka/scala version definitions are now in odlparent so removed the
local definitions.

Change-Id: I62cdf60aa1277e4cebebd614fd64b90661d2b8d3
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoReimplement NetconfDevice schema setup without recursion 61/35861/1
Andrej Mak [Mon, 7 Mar 2016 07:39:40 +0000 (08:39 +0100)]
Reimplement NetconfDevice schema setup without recursion

Change-Id: I2a41f9a46b8d545efa2c854b024f3a8b9707afa9
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoAdd description to northbound notification yang files 82/35782/1
Andrej Mak [Fri, 4 Mar 2016 11:59:33 +0000 (12:59 +0100)]
Add description to northbound notification yang files

Change-Id: Ia781f407d25a320ccb8d8d0ac7dfd005d85b25c2
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoAdd netconf message to error info 76/35776/1
Andrej Mak [Fri, 4 Mar 2016 11:19:23 +0000 (12:19 +0100)]
Add netconf message to error info

Change-Id: I04acab3aaf1203cdbcd4c14ce0919e0796ec1448
Signed-off-by: Andrej Mak <andmak@cisco.com>
8 years agoAdd javadoc link in LoginPassword 66/35766/1
Andrej Mak [Fri, 4 Mar 2016 09:30:26 +0000 (10:30 +0100)]
Add javadoc link in LoginPassword

Change-Id: I0e3e5fc53c9906c84dcdb89c48e92c4d6ffcaa3b
Signed-off-by: Andrej Mak <andmak@cisco.com>