netconf.git
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 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>
8 years agoMerge "Fix NormalizedNodeStreamWriter implementation"
Tony Tkacik [Mon, 7 Dec 2015 18:13:32 +0000 (18:13 +0000)]
Merge "Fix NormalizedNodeStreamWriter implementation"

8 years agoFix NormalizedNodeStreamWriter implementation 12/30912/1
Tomas Cere [Mon, 7 Dec 2015 15:41:06 +0000 (16:41 +0100)]
Fix NormalizedNodeStreamWriter implementation

Add startYangModeledAnyXmlNode() implementation to DelegatingNormalizedNodeStreamWriter

Change-Id: I1f189eff88dd9c2365760f21ac61826bac9c4666
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Bug 4713: Handle "missing-element" in RESTCONF."
Tony Tkacik [Mon, 7 Dec 2015 10:49:15 +0000 (10:49 +0000)]
Merge "Bug 4713: Handle "missing-element" in RESTCONF."

8 years agoMerge "Add payload along with the log.trace message for REST call"
Tony Tkacik [Mon, 7 Dec 2015 09:50:35 +0000 (09:50 +0000)]
Merge "Add payload along with the log.trace message for REST call"

8 years agoMerge "Add netconf test to verify key ordering in output"
Tony Tkacik [Mon, 7 Dec 2015 09:36:48 +0000 (09:36 +0000)]
Merge "Add netconf test to verify key ordering in output"

8 years agoAdd payload along with the log.trace message for REST call 37/30737/1
adetalhouet [Fri, 4 Dec 2015 20:47:24 +0000 (15:47 -0500)]
Add payload along with the log.trace message for REST call

Also add the log.trace for the POST request

Change-Id: I2aec41e37f4a70849fa2e71d8b53b6feecb6ef15
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoCleanup features 02/30302/6
Tomas Cere [Fri, 27 Nov 2015 17:46:30 +0000 (18:46 +0100)]
Cleanup features

Migrate to features-parent
Use {{VERSION}} where appropriate

Change-Id: I74d36d75a44bd646127bc3ef339cd57ccf05ea87
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 4713: Handle "missing-element" in RESTCONF. 63/30563/1
Shigeru Yasuda [Thu, 3 Dec 2015 16:02:56 +0000 (01:02 +0900)]
Bug 4713: Handle "missing-element" in RESTCONF.

RESTCONF should return HTTP status 400 (Bad Request) if "missing-element"
is found in RPC error tag.

Change-Id: Iaca7d219b656e86f43f1a7f297ea3c10d24ed410
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
8 years agoClustered topology module 97/30297/3
Tomas Cere [Fri, 27 Nov 2015 13:32:51 +0000 (14:32 +0100)]
Clustered topology module

Extract common code from both topology implementations.
Add Netconf specific topology callback implementations.
Change the clustered pipeline slightly as needed for clustering
implementation.

Change-Id: I6f9e424083423cf7491569ada35f4729e3af63f7
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Bug4698 netconf features.xml has dated documentation about a dependency loop...
Tony Tkacik [Tue, 1 Dec 2015 15:17:02 +0000 (15:17 +0000)]
Merge "Bug4698 netconf features.xml has dated documentation about a dependency loop with AAA"

8 years agoMerge "Bug 4355 - Data Tree: Enforce case uniqueness and 'mandatory true' leaf presence"
Tony Tkacik [Tue, 1 Dec 2015 14:33:21 +0000 (14:33 +0000)]
Merge "Bug 4355 - Data Tree: Enforce case uniqueness and 'mandatory true' leaf presence"

8 years agoBug4698 netconf features.xml has dated documentation about a dependency loop with AAA 37/30437/1
Ryan Goulding [Tue, 1 Dec 2015 13:49:52 +0000 (08:49 -0500)]
Bug4698 netconf features.xml has dated documentation about a dependency loop with AAA

Just removes the documentation to help readers avoid confusion.

Change-Id: I622e6ca47aa6c79966e73223669d5d8949966c88
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMerge changes from topic 'netconf-clustering'
Tony Tkacik [Mon, 30 Nov 2015 16:54:20 +0000 (16:54 +0000)]
Merge changes from topic 'netconf-clustering'

* changes:
  Abstract topology base implementation
  Abstract topology framework apis

8 years agoBug 4355 - Data Tree: Enforce case uniqueness and 'mandatory true' leaf presence 92/30292/3
Peter Kajsa [Fri, 27 Nov 2015 12:26:57 +0000 (13:26 +0100)]
Bug 4355 - Data Tree: Enforce case uniqueness and 'mandatory true' leaf presence

- quickfix of netconf unit tests after yangtools changes

Change-Id: I325d52eb984c49a7640094faee82b7a474dbeb5e
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
8 years agoUse odlparent-lite as artifacts parent 45/30345/1
Thanh Ha [Sun, 29 Nov 2015 22:16:57 +0000 (17:16 -0500)]
Use odlparent-lite as artifacts parent

We created odlparent-lite to provide a minimal pom which allows projects
to publish to the correct server. Without this ${project}-artifacts may
fail to deploy to Nexus.

Change-Id: Iede1f0d105e29b7a8659b1331b3e81ee8d5c1da2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoMerge "Generate configs for beryllium path."
Maros Marsalek [Fri, 27 Nov 2015 15:45:14 +0000 (15:45 +0000)]
Merge "Generate configs for beryllium path."

8 years agoAbstract topology base implementation 51/28451/9
Tomas Cere [Fri, 27 Nov 2015 13:31:13 +0000 (14:31 +0100)]
Abstract topology base implementation

Change-Id: I52b5d2f309789402dc72319d59fb75a3ac4c8df1
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAbstract topology framework apis 50/28450/7
Tomas Cere [Thu, 15 Oct 2015 13:52:03 +0000 (15:52 +0200)]
Abstract topology framework apis

Change-Id: Ib3d8b9fab7132a25313094fe31c9a77028bb4ea0
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd netconf test to verify key ordering in output 57/30257/1
Maros Marsalek [Thu, 26 Nov 2015 16:00:08 +0000 (17:00 +0100)]
Add netconf test to verify key ordering in output

Change-Id: Ife737433c720ea5da4ff35e849644d7df8237c70
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoMerge "Fix get and get-config ordering for netconf-mdsal"
Tony Tkacik [Thu, 26 Nov 2015 11:11:22 +0000 (11:11 +0000)]
Merge "Fix get and get-config ordering for netconf-mdsal"

8 years agoGenerate configs for beryllium path. 11/30211/1
Tomas Cere [Wed, 25 Nov 2015 17:45:26 +0000 (18:45 +0100)]
Generate configs for beryllium path.

Make testtool generate configs for beryllium paths with lithium fallback.
Also add keepalive executor to prevent warnings.

Change-Id: I63f5530e89fd024a0a1bb025ae9ba20bc8ee81ed
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 3897 - Arguments can be made final patch 33/30133/2
pande.gaurav [Tue, 24 Nov 2015 11:50:43 +0000 (17:20 +0530)]
Bug 3897 - Arguments can be made final patch

Change-Id: I4c82829758b7b6509c9bd7331ceea4e31ffe0393
Signed-off-by: pande.gaurav <pande.gaurav@tcs.com>
8 years agoFix get and get-config ordering for netconf-mdsal 45/30145/1
Maros Marsalek [Tue, 24 Nov 2015 15:24:50 +0000 (16:24 +0100)]
Fix get and get-config ordering for netconf-mdsal

Change-Id: Ia0975226e62bdcf56dc30c0182fd8528653c80f9
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoFix javadocs and remove jdk8+ profile 44/30044/1
Robert Varga [Sat, 21 Nov 2015 21:06:03 +0000 (22:06 +0100)]
Fix javadocs and remove jdk8+ profile

Fixup the few errors from javadoc and remove the JDK8 profile which
turns off validation. Flushes out deficiencies in javadocs.

Change-Id: Iea1af1778179eb1da1650847de30a07d4a753547
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoBUG-4638: handle StringTypeDefinition properly 78/29878/2
Robert Varga [Wed, 18 Nov 2015 18:10:05 +0000 (19:10 +0100)]
BUG-4638: handle StringTypeDefinition properly

This patch adds the path for StringTypeDefinition, so we do not lose the
length restrictions. I do not believe their mapping is accurate, though.

Change-Id: If400f97f9440dab5e5f77cdc2c1eaddcdb2979f8
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBUG-4638: use interface instead of concrete types 77/29877/1
Robert Varga [Wed, 18 Nov 2015 17:47:18 +0000 (18:47 +0100)]
BUG-4638: use interface instead of concrete types

The parser is bound to switch its implementation of TypeDefinitions. As
a first step, look at the implemented type interface instead of looking
for a concrete implementation class.

Change-Id: I86b3b03d30e9098cbbd99bc61c23bc859ef02302
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoMerge "Add the ability to edit running in stress-client"
Maros Marsalek [Wed, 18 Nov 2015 09:38:04 +0000 (09:38 +0000)]
Merge "Add the ability to edit running in stress-client"

8 years agoBUG-3884: add exception cause 83/29683/2
Robert Varga [Fri, 13 Nov 2015 19:51:05 +0000 (20:51 +0100)]
BUG-3884: add exception cause

Add the exception which cause the documented exception.

Change-Id: Iedf5ec8f6f914d7a701cdbf257d8a2d7b33b14c5
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoBUG-4351: remove commons-lang3 from features 78/29678/3
Robert Varga [Fri, 13 Nov 2015 19:13:47 +0000 (20:13 +0100)]
BUG-4351: remove commons-lang3 from features

RESTCONF no longer needs it, remove it.

Change-Id: I0f7bdbb210566ab687edbb85cb269a87853b47e0
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoBUG-4351: remove use of commons-lang3 in tests 77/29677/3
Robert Varga [Fri, 13 Nov 2015 19:12:16 +0000 (20:12 +0100)]
BUG-4351: remove use of commons-lang3 in tests

the use in assert is easily removed.

Change-Id: Ic734f28583217e491ecdb8ec901e91c50649f1b2
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoBUG-4351: remove use of commons-lang from sal-rest-connector 76/29676/3
Robert Varga [Fri, 13 Nov 2015 18:59:49 +0000 (19:59 +0100)]
BUG-4351: remove use of commons-lang from sal-rest-connector

Use CharMatcher instead. Also make private methods static.

Change-Id: I4e06a79ee84387472b71abce9e7b7e344c51cfda
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoBUG-4351: remove use of commons-lang from sal-rest-docgen 75/29675/3
Robert Varga [Fri, 13 Nov 2015 18:54:30 +0000 (19:54 +0100)]
BUG-4351: remove use of commons-lang from sal-rest-docgen

Simple internal use of null-for-true. Fixup methods and also make
potentially-static methods static.

Change-Id: I1d3d3e48332e24b0b667a7ac189e72e213f95d81
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoRemove use of commons-io in tests 80/29680/2
Robert Varga [Fri, 13 Nov 2015 19:24:43 +0000 (20:24 +0100)]
Remove use of commons-io in tests

Guava provides equivalent utilities, so use those.

Change-Id: Ieb8a86d4a9081413e6b75e7e84c323c6e8e36f51
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoFix BindingRuntimeContext stubbing 04/29704/1
Robert Varga [Sat, 14 Nov 2015 13:45:38 +0000 (14:45 +0100)]
Fix BindingRuntimeContext stubbing

This test was broken by a refactor in controller, fix it up. Also make
methods static while we're in the area.

Change-Id: I06e5ca31ab05303ea45ac06e981dc7abd0c47f68
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
8 years agoMerge "Remove explicit version"
Maros Marsalek [Tue, 10 Nov 2015 13:58:12 +0000 (13:58 +0000)]
Merge "Remove explicit version"

8 years agoMerge "BUG-4521 Support milliseconds in event-time notification format"
Tony Tkacik [Thu, 5 Nov 2015 14:51:06 +0000 (14:51 +0000)]
Merge "BUG-4521 Support milliseconds in event-time notification format"

8 years agoMerge "Make topology listen for configuration in config datastore"
Tony Tkacik [Thu, 5 Nov 2015 12:22:06 +0000 (12:22 +0000)]
Merge "Make topology listen for configuration in config datastore"

8 years agoRemove explicit version 00/29200/2
Robert Varga [Tue, 3 Nov 2015 16:14:15 +0000 (17:14 +0100)]
Remove explicit version

https://git.opendaylight.org/gerrit/29198 exposes the version in
artifacts, rendering this declaration unnecessary.

Change-Id: I0144fc74b7fb6178f178817290f2c85be6822305
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoMake topology listen for configuration in config datastore 90/29190/3
Tomas Cere [Tue, 3 Nov 2015 14:36:14 +0000 (15:36 +0100)]
Make topology listen for configuration in config datastore

Adds the ability to configure topology to listen for netconf connector configuration in
config datastore - makes it possible to bypass config subsystem for netconf connector configuration.

Change-Id: Ie88b8caf4d038bff53adc7f5ec4ba49801021766
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBUG-4521 Support milliseconds in event-time notification format 53/28753/4
Maros Marsalek [Fri, 23 Oct 2015 19:24:21 +0000 (21:24 +0200)]
BUG-4521 Support milliseconds in event-time notification format

Current format does not support milliseconds right now and netconf
notification RFC clearly says the milliseconds should be supported

Change-Id: Ic5a001b5b9e798b83dc718538b26718e5ed95e19
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoMerge "Fix for bug 4266 (unnecessary concurent map and set in java file)."
Maros Marsalek [Mon, 2 Nov 2015 15:18:41 +0000 (15:18 +0000)]
Merge "Fix for bug 4266 (unnecessary concurent map and set in java file)."

8 years agoMerge "Revert "Bug 2515 - Jersey to support JAX-RS 2.0""
Tony Tkacik [Thu, 29 Oct 2015 20:21:42 +0000 (20:21 +0000)]
Merge "Revert "Bug 2515 - Jersey to support JAX-RS 2.0""

8 years agoRevert "Bug 2515 - Jersey to support JAX-RS 2.0" 69/28969/1
Ryan Goulding [Thu, 29 Oct 2015 17:59:59 +0000 (17:59 +0000)]
Revert "Bug 2515 - Jersey to support JAX-RS 2.0"

This reverts commit a0a9ab4967dd52bd28813961ee14e3cb363017b2.

Change-Id: Ia4d0fc43ac63f1f7ec551aa47fbdd181e99dfac8
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMerge "Bug 2515 - Jersey to support JAX-RS 2.0"
Tony Tkacik [Thu, 29 Oct 2015 14:34:00 +0000 (14:34 +0000)]
Merge "Bug 2515 - Jersey to support JAX-RS 2.0"

8 years agoDelete yang-generated files in mvn clean phase 13/28513/2
Tom Pantelis [Thu, 15 Oct 2015 19:45:04 +0000 (15:45 -0400)]
Delete yang-generated files in mvn clean phase

Change-Id: I988f2cc8f05108568859419fec0c43019c8f9bd7
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoBug 2515 - Jersey to support JAX-RS 2.0 97/27397/21
Ryan Goulding [Wed, 26 Aug 2015 10:59:52 +0000 (12:59 +0200)]
Bug 2515 - Jersey to support JAX-RS 2.0

* migrate Jersey to version 2.8
* remove the singleton implementations
* join life cycle for Servlet and OSGi bundle to dep.
    only for OSGi Bundle lifecycle.
* ignore tests that fail

This was derived from https://git.opendaylight.org/gerrit/#/c/24500.

Change-Id: I7807b07c6614f023fa2bad9894e6a756a6ac06d3
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMissing white-space character between module name 39/28639/1
Martin Ciglan [Wed, 21 Oct 2015 08:39:13 +0000 (10:39 +0200)]
Missing white-space character between module name
and rest of the error message text.

Change-Id: Ib6cbfce03ae660ae82a3ad3a947d37cc8aff6d78
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
8 years agoFix non-initialized keepalive executor when configured. 00/28500/1
Tomas Cere [Fri, 16 Oct 2015 11:27:25 +0000 (13:27 +0200)]
Fix non-initialized keepalive executor when configured.

Change-Id: Ia7803777e90c93adfbc11f2945a7c8617c931b94
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge changes from topic 'netconf-clustering'
Tony Tkacik [Thu, 15 Oct 2015 17:25:17 +0000 (17:25 +0000)]
Merge changes from topic 'netconf-clustering'

* changes:
  BUG 2920: Extend and simplify netconf connector topology model.
  Add clustered node status to netconf-node model

8 years agoAdd missing required-capability 54/28454/1
Tomas Cere [Thu, 15 Oct 2015 15:08:32 +0000 (17:08 +0200)]
Add missing required-capability

Restconf service config was missing this capability.

Change-Id: I9eb68825ec31ea30a9ea8e4abf542494fb7d4f3d
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix for bug 4266 (unnecessary concurent map and set in java file). 35/28435/1
rashmitomer [Thu, 15 Oct 2015 11:54:30 +0000 (17:24 +0530)]
Fix for bug 4266 (unnecessary concurent map and set in java file).

Change-Id: I1471547fb9fdcee964c84ded142d344022f6f33a
Signed-off-by: rashmitomer <rashmi.tomer@tcs.com>
8 years agoBUG 2920: Extend and simplify netconf connector topology model. 16/25416/26
Tomas Cere [Mon, 17 Aug 2015 13:14:29 +0000 (15:14 +0200)]
BUG 2920: Extend and simplify netconf connector topology model.

Add shared schema repository and netconf topology binding.
Create a default schema repository instance.
Add topology config.
Simplifiy netconf connector model to use new netconf
topology with backwards compatibility.
Bump netconf connector schema revision.

Change-Id: I3978a0a7e6e3c08dba52e65912bfe33ad46b4cf8
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd clustered node status to netconf-node model 33/28433/1
Tomas Cere [Thu, 15 Oct 2015 09:20:29 +0000 (11:20 +0200)]
Add clustered node status to netconf-node model

Change-Id: Ib057066a6449b72a11f6723b327b8f8a55145eea
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge changes from topic 'netconf-clustering'
Tony Tkacik [Wed, 14 Oct 2015 10:52:21 +0000 (10:52 +0000)]
Merge changes from topic 'netconf-clustering'

* changes:
  Add completeable future to NetconfDeviceCommunicator
  Extend netconf-node model

8 years agoBug 4425 - netconf-testtool NullPointerException 00/28200/1
Jakub Morvay [Fri, 9 Oct 2015 08:57:01 +0000 (10:57 +0200)]
Bug 4425 - netconf-testtool NullPointerException

Use SchemaContext to parse schema sources to capabilities instead of
YangParserListenerImpl. YangParserListenerImpl is not used in migrated
YANG parser.

Change-Id: I95925b5888417dcb814d2cf8681200b747108b45
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoMerge "Stop failing discard-changes operation when tx wasn't initialized"
Maros Marsalek [Thu, 8 Oct 2015 11:12:39 +0000 (11:12 +0000)]
Merge "Stop failing discard-changes operation when tx wasn't initialized"

8 years agoStop failing discard-changes operation when tx wasn't initialized 50/28050/2
Tomas Cere [Thu, 8 Oct 2015 10:05:26 +0000 (12:05 +0200)]
Stop failing discard-changes operation when tx wasn't initialized

Change-Id: Icea5b5830caf4fffd034108eb4e524c3aa5d4397
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBetter FIXME comment in ietf-netconf-notifications model 62/27962/1
Jakub Morvay [Tue, 6 Oct 2015 12:35:56 +0000 (14:35 +0200)]
Better FIXME comment in ietf-netconf-notifications model

Add bug number of related yangtools bug to FIXME comment

Change-Id: I0b82f9913886a5cb154862c806458cf9b9d3ffa9
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoFix shorthand case statement in netconf notifications model 17/27917/3
Jakub Morvay [Tue, 6 Oct 2015 09:06:46 +0000 (11:06 +0200)]
Fix shorthand case statement in netconf notifications model

Use normal version of server case statement in server-or-user choice statement
in ietf-netconf-notifications model. Short version is currently not supported
by yangtools.

Change-Id: I043babfc8e70654aed1c8dfdd7486795e49aa2bf
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
8 years agoAdd completeable future to NetconfDeviceCommunicator 45/27045/13
Tomas Cere [Wed, 16 Sep 2015 12:16:42 +0000 (14:16 +0200)]
Add completeable future to NetconfDeviceCommunicator

Add a future that completes when first connection attemp succeeds.

Change-Id: I68c31bb75ed0576a79257a0c6ddb9eef0cd64c74
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoExtend netconf-node model 14/27114/8
Tomas Cere [Thu, 17 Sep 2015 11:01:12 +0000 (13:01 +0200)]
Extend netconf-node model

Add configuration data that is required for establishing a connection.

Change-Id: Ie0cc38537c2e67778f060f16786c25e8c6996dbf
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBUG-4367 Do not transform modules to capabilities 56/27656/5
Maros Marsalek [Wed, 30 Sep 2015 13:31:17 +0000 (15:31 +0200)]
BUG-4367 Do not transform modules to capabilities

Pre-built capabilities already contain the source retrieved from a
SchemaSourceProvider

Change-Id: If5bb358e411c2ca020092a7ea2b6dbd1faa3a88f
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoAdd mdsal-netconf-notification dependency to features-netconf 98/27798/2
JMorvay [Fri, 2 Oct 2015 09:43:46 +0000 (11:43 +0200)]
Add mdsal-netconf-notification dependency to features-netconf

Add missing dependency on mdsal-nteconf-notification to netconf-features project

Change-Id: I323765720e935162e8e65355f141edc1e5d26da3
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoFix javax.annotation missing package from rest 12/27812/3
Maros Marsalek [Fri, 2 Oct 2015 12:47:11 +0000 (14:47 +0200)]
Fix javax.annotation missing package from rest

Change-Id: I56d43c158c14dcb925eafa18b997465f9baa2fe0
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoMerge "Bug 3999: Create internal service to access restconf"
Tony Tkacik [Fri, 2 Oct 2015 07:49:46 +0000 (07:49 +0000)]
Merge "Bug 3999: Create internal service to access restconf"

8 years agoMerge "Bug 3863 - Milestone: Add support for netconf notifications in MD-SAL netconf...
Maros Marsalek [Tue, 29 Sep 2015 14:25:04 +0000 (14:25 +0000)]
Merge "Bug 3863 - Milestone: Add support for netconf notifications in MD-SAL netconf northbound"

8 years agoMerge "YangInstanceIdentifier::toInstance() -> build()"
Maros Marsalek [Tue, 29 Sep 2015 07:28:38 +0000 (07:28 +0000)]
Merge "YangInstanceIdentifier::toInstance() -> build()"

8 years agoBug 3863 - Milestone: Add support for netconf notifications in MD-SAL netconf northbound 46/26146/11
JMorvay [Tue, 25 Aug 2015 14:05:32 +0000 (16:05 +0200)]
Bug 3863 - Milestone: Add support for netconf notifications in MD-SAL netconf northbound

Add support for netconf-capability-change notification.

Change-Id: Ib05f0d57c744275dbf569e3b26821274671f6787
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoRemoved use of toInstance in NETCONF. 68/27568/2
Tony Tkacik [Tue, 29 Sep 2015 06:46:41 +0000 (08:46 +0200)]
Removed use of toInstance in NETCONF.

Change-Id: Ibbea950159f32a9ed6d053be7f015489f2a82acd
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
8 years agoYangInstanceIdentifier::toInstance() -> build() 32/27532/1
Stephen Kitt [Mon, 28 Sep 2015 12:51:05 +0000 (14:51 +0200)]
YangInstanceIdentifier::toInstance() -> build()

::toInstance() is gone, which breaks the build.

Change-Id: Ic81def83cc7ac371e4d4fcc7db4382c1a0702739
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Set proper keepalive delay for netconf testtool"
Tony Tkacik [Thu, 24 Sep 2015 10:31:56 +0000 (10:31 +0000)]
Merge "Set proper keepalive delay for netconf testtool"

8 years agoMerge "Add a missing commons-lang3 dependcy to features-restconf"
Maros Marsalek [Thu, 24 Sep 2015 09:30:42 +0000 (09:30 +0000)]
Merge "Add a missing commons-lang3 dependcy to features-restconf"

8 years agoIntroduced additional commandline option --initial-config-xml-file retrievable 79/27379/3
jameshall03885 [Wed, 23 Sep 2015 22:28:52 +0000 (18:28 -0400)]
Introduced additional commandline option --initial-config-xml-file retrievable
via the Simulated get-config rpc.  This supports testing a client with any
specific config without first "pushing" a config via edit-config.  This is useful
for some test scenarios such as testing with malformed configs.

Change-Id: If0da1ba310177687b76ff417ba246182e5e99b77
Signed-off-by: jameshall03885 <ghall@brocade.com>
8 years agoMark config substystem NotificationManager 45/26145/6
JMorvay [Wed, 26 Aug 2015 10:59:52 +0000 (12:59 +0200)]
Mark config substystem NotificationManager

Mark NotificationManager, that is auto wired netconf endpoint for config
subsystem

Change-Id: I51ec53ba122aa0a3dd79e4d71e07422fac1b8ffc
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoAdd a missing commons-lang3 dependcy to features-restconf 95/27295/1
Tomas Cere [Tue, 22 Sep 2015 15:24:12 +0000 (17:24 +0200)]
Add a missing commons-lang3 dependcy to features-restconf

Change-Id: I891d755ef530ec9e257acdf451ccfc68cf6f3adf
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 3999: Create internal service to access restconf 86/27286/1
Tom Pantelis [Tue, 22 Sep 2015 14:27:56 +0000 (10:27 -0400)]
Bug 3999: Create internal service to access restconf

There are use cases for invoking restconf from internal code. However
issuing an HTTP request is problematic as one would need to know the
credentials and scheme (http or https).

So I added a JSONRestconfService interface and implementation with CRUD
methods that call the JSON readers/writers and RestconfImpl internally.
The implementation is advertised as an OSGi service via the config
system for consumption by clients.

I only added a service for JSON - an XML service could be added as well
later.

Change-Id: Ia3753846756ace29bc28aa0a1fe9d474a60f80ce
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoSet proper keepalive delay for netconf testtool 56/27256/1
Maros Marsalek [Tue, 22 Sep 2015 07:25:41 +0000 (09:25 +0200)]
Set proper keepalive delay for netconf testtool

The keepalive was set to -1 in generated configs for simulated devices. However
the type for keepalive delay is an unsigned integer. So it should be 0.

Change-Id: I8ab53097bce484837b8721a954a749a87090642a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoRemove duplicate dependency declaration 98/27198/3
Robert Varga [Mon, 21 Sep 2015 09:35:05 +0000 (11:35 +0200)]
Remove duplicate dependency declaration

This emits a maven warning, so remove the duplicate.

Change-Id: I7cfdee854a5e8a67a17eed5acb5d7692e7b85c0c
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoFix features not pulling all its dependencies 92/27192/5
Robert Varga [Mon, 21 Sep 2015 09:06:22 +0000 (11:06 +0200)]
Fix features not pulling all its dependencies

odl-message-bus requires messagebus-netconf, but does not pull it in.

Change-Id: I85da9727c89dd14dfb52b411ca6ce5f109f3ba4b
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoUpdate aaa-authn-odl-plugin to use updated aaa bindings 19/27119/3
Tomas Cere [Thu, 17 Sep 2015 13:48:06 +0000 (15:48 +0200)]
Update aaa-authn-odl-plugin to use updated aaa bindings

Change-Id: I9db1888763dbf4d052367a248b07ea03e8039ea0
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBug 3822: Improve error reporting for restconf PUT 50/27050/2
Tom Pantelis [Sat, 20 Jun 2015 08:09:47 +0000 (04:09 -0400)]
Bug 3822: Improve error reporting for restconf PUT

A runtime exception can be emitted by the netconf mount point which
should be reported to the user, otherwise you get a 500 response with
no error info which isn't very helpful.

Also the fucntionality to output the error-info field was ommitted with
the conversion from CompositeNode to NormalizedNode so I re-implemeneted
it. It was originally ommitted with a TODO b/c the
NormalizedNodeStreamWriters validate against the schema and error-info
is defined as an empty container in the restconf yang. So there's no way
to create a ContainerNode to represent the error-info data that conforms
to the schema. To work around this, I created a leaf node and special-cased
error-info in the stream writer to elide schema validation.

I also added a regression unit test for the case where the URL contains
an identityref.

Change-Id: I93b4aea25c829af1232d539180f02dd61e252d50
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMerge changes Iad68eda5,Ie962aa4b
Tony Tkacik [Wed, 16 Sep 2015 11:07:15 +0000 (11:07 +0000)]
Merge changes Iad68eda5,Ie962aa4b

* changes:
  BUG-865: use new JSONNormalizedNodeStreamWriter methods
  BUG-865: remove use of yang.model.util.repo

8 years agoAdd the ability to edit running in stress-client 65/25565/6
Tomas Cere [Fri, 21 Aug 2015 10:47:41 +0000 (12:47 +0200)]
Add the ability to edit running in stress-client

Change-Id: I1aa1c3bbcae86af328ffc85815ceb48748ab9201
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFixed features-netconf to use feature test and correct versions 67/26967/2
Tony Tkacik [Tue, 15 Sep 2015 09:41:50 +0000 (11:41 +0200)]
Fixed features-netconf to use feature test and correct versions

Previous patches were assuming that single feature test was working
for features-netconf, which is was not - test was commented out
due to controller - aaa - netconf cycle dance.

- Reenabled single feature test
- fixed version of odl-netconf-mdsal

Change-Id: I47f5a52b96b07f94e8823968b90934b435aa5a2b
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
8 years agoBUG-865: use new JSONNormalizedNodeStreamWriter methods 68/26968/2
Robert Varga [Mon, 14 Sep 2015 19:12:10 +0000 (21:12 +0200)]
BUG-865: use new JSONNormalizedNodeStreamWriter methods

JSONNormalizedNodeStreamWriter.create() family of methods is deprecated,
do not use it.

Change-Id: Iad68eda5efcd191e7cba03785b7ef9e2e550dd9a
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBUG-865: remove use of yang.model.util.repo 63/26963/1
Robert Varga [Mon, 14 Sep 2015 17:45:13 +0000 (19:45 +0200)]
BUG-865: remove use of yang.model.util.repo

This package is deprecated and about to be removed. Remove all
references to it.

Change-Id: Ie962aa4bdc6400b70def7f2486356b123ff19eb4
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBug 4306: Refer to the correct version of features-netconf-connector 20/26920/2
Stephen Kitt [Mon, 14 Sep 2015 16:44:55 +0000 (18:44 +0200)]
Bug 4306: Refer to the correct version of features-netconf-connector

features-netconf-connector's POM inherits netconf-features-parent's
version, 1.0.0-SNAPSHOT; but netconf-artifact's POM uses
${mdsal.version} for features-netconf-connector (1.3.0-SNAPSHOT).

This patch uses ${project.version} instead, which is 1.0.0-SNAPSHOT.

Without this sfc fails to build in a clean environment.

Change-Id: Icad267d3e502233243eb10b4a7274b23feff0c31
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMigration to use MD-SAL Project 45/26345/9
Tony Tkacik [Wed, 2 Sep 2015 14:13:29 +0000 (16:13 +0200)]
Migration to use MD-SAL Project

Change-Id: Iafdfbcf553978717be7ec80b488f94b64f688eea
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
8 years agoIgnore failing tests 11/26911/1
Tomas Cere [Mon, 14 Sep 2015 14:12:51 +0000 (16:12 +0200)]
Ignore failing tests

These tests are relying on ordering of hash-based objects,
ignoring for now to prevent job failures.

Change-Id: Ie467c1f06924a6699e20ace71baa5825cbb48198
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Add .gitreview"
Maros Marsalek [Fri, 11 Sep 2015 06:58:22 +0000 (06:58 +0000)]
Merge "Add .gitreview"

8 years agoMerge "MD-SAL netconf northbound now relies on AAA for authentication"
Maros Marsalek [Fri, 11 Sep 2015 06:54:58 +0000 (06:54 +0000)]
Merge "MD-SAL netconf northbound now relies on AAA for authentication"

8 years agoMerge "Rename netconf-ssh test packages"
Maros Marsalek [Fri, 11 Sep 2015 06:54:51 +0000 (06:54 +0000)]
Merge "Rename netconf-ssh test packages"

8 years agoMD-SAL netconf northbound now relies on AAA for authentication 36/26736/3
Tomas Cere [Wed, 9 Sep 2015 14:43:48 +0000 (16:43 +0200)]
MD-SAL netconf northbound now relies on AAA for authentication

Change-Id: I58ff18fbcc230c7391617c435897673169052aa9
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-ssh test packages 35/26735/3
Tomas Cere [Wed, 9 Sep 2015 14:30:51 +0000 (16:30 +0200)]
Rename netconf-ssh test packages

Change-Id: I0a19631cdb4ce567f6d8a2f222b49b38641751a9
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoBUG 4010:Reintroduce inventory code into sal-netconf-connector 10/26710/3
Tomas Cere [Wed, 9 Sep 2015 08:32:47 +0000 (10:32 +0200)]
BUG 4010:Reintroduce inventory code into sal-netconf-connector

Change-Id: I946907d9ef835d3e5ffdd198d1ec39158ff91feb
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix integration tests imports and checkstyle violations 09/26709/3
Tomas Cere [Wed, 9 Sep 2015 08:59:15 +0000 (10:59 +0200)]
Fix integration tests imports and checkstyle violations

Change-Id: Id016e581f0018c2aa47f6fc371fb85f6ad341950
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoMerge "Enable authn on odl-restconf feature"
Maros Marsalek [Tue, 8 Sep 2015 13:06:59 +0000 (13:06 +0000)]
Merge "Enable authn on odl-restconf feature"

8 years agoMerge "Make test-tool advertise candidate capability"
Maros Marsalek [Tue, 8 Sep 2015 13:06:21 +0000 (13:06 +0000)]
Merge "Make test-tool advertise candidate capability"