netconf.git
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 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"

8 years agoMerge "Bug 4276 - restconf-artifacts is missing restconf-features xml"
Maros Marsalek [Tue, 8 Sep 2015 08:49:04 +0000 (08:49 +0000)]
Merge "Bug 4276 - restconf-artifacts is missing restconf-features xml"

8 years agoBug 4276 - restconf-artifacts is missing restconf-features xml 38/26638/1
JMorvay [Tue, 8 Sep 2015 08:30:30 +0000 (10:30 +0200)]
Bug 4276 - restconf-artifacts is missing restconf-features xml

Add features classifier, xml type and runtime scope to features-restconf
artifact in restconf-artifacts

Change-Id: If264169f0c584aace07b925aecaae219f91dff77
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoUse NodeIdentifier.create() 04/26604/1
Robert Varga [Mon, 7 Sep 2015 12:04:10 +0000 (14:04 +0200)]
Use NodeIdentifier.create()

For pre-computed constants it is beneficial to have them shared across
the system, such that when they meet we end up sharing them.

Change-Id: Ic81a350c94010450540868a9281d2994f4e08f2a
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoEnable authn on odl-restconf feature 02/26602/3
Tomas Cere [Mon, 7 Sep 2015 11:11:55 +0000 (13:11 +0200)]
Enable authn on odl-restconf feature

Uncommented odl-aaa-authn that was left commented out,
probably due to version bump.

Change-Id: Iae8b83b13c5d2593923ad54c10dfc0efb285b0df
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd .gitreview 39/26539/1
Thanh Ha [Fri, 4 Sep 2015 20:31:51 +0000 (16:31 -0400)]
Add .gitreview

Change-Id: I0853775fd893085abde3a0aa3601b65794ef04d8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBUG-4259: fix config artifact references 38/26538/2
Robert Varga [Fri, 4 Sep 2015 19:43:50 +0000 (21:43 +0200)]
BUG-4259: fix config artifact references

This got broken in the migration where netconf moved from
org.opendaylight.controller namespace.

Also fixes netconf-it module being configured to build twice. The root
pom as well as the netconf parent both had a profile to build netconf-it
only one is needed.

Change-Id: I5dce4e9802f08efdcc866c9992b3bae9f49190ac
Also-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoMake test-tool advertise candidate capability 95/26095/2
JMorvay [Fri, 24 Jul 2015 10:29:44 +0000 (12:29 +0200)]
Make test-tool advertise candidate capability

Change-Id: I97a627147434c5417043e589039097cf03c1c4b9
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMerge "Use migrated restconf artifacts in restconf features project dependencies"
Maros Marsalek [Fri, 4 Sep 2015 07:51:18 +0000 (07:51 +0000)]
Merge "Use migrated restconf artifacts in restconf features project dependencies"

8 years agoUse migrated restconf artifacts in restconf features project dependencies 59/26459/2
JMorvay [Thu, 3 Sep 2015 12:58:49 +0000 (14:58 +0200)]
Use migrated restconf artifacts in restconf features project dependencies

Change-Id: Ia68483053c4f77c89c450f69df6022b9c98de38b
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMerge "Implement md-sal datastore into netconf test-tool"
Maros Marsalek [Thu, 3 Sep 2015 09:30:45 +0000 (09:30 +0000)]
Merge "Implement md-sal datastore into netconf test-tool"

8 years agoMerge "Add aaa-authn-odl-plugin"
Maros Marsalek [Thu, 3 Sep 2015 08:38:41 +0000 (08:38 +0000)]
Merge "Add aaa-authn-odl-plugin"

8 years agoAdd aaa-authn-odl-plugin 35/26335/2
Tomas Cere [Wed, 2 Sep 2015 09:39:22 +0000 (11:39 +0200)]
Add aaa-authn-odl-plugin

Move in aaa-authn-odl-plugin to prevent cyclic dependency between
aaa and netconf.

Change-Id: Ibb89231b229664bbc9ae6d97c098f637de764448
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoImplement md-sal datastore into netconf test-tool 94/26094/2
JMorvay [Wed, 22 Jul 2015 12:45:38 +0000 (14:45 +0200)]
Implement md-sal datastore into netconf test-tool

Change-Id: I2dd627b57ddac33a77878a7c07f5565e4eb5b841
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMerge "Make sal-netconf-connector fail, if connecting to device, that does not advert...
Maros Marsalek [Wed, 2 Sep 2015 14:16:38 +0000 (14:16 +0000)]
Merge "Make sal-netconf-connector fail, if connecting to device, that does not advertise :candidate or :writtable-running capability"

8 years agoMerge "Add features-restconf to restconf-artifacts"
Maros Marsalek [Wed, 2 Sep 2015 14:05:29 +0000 (14:05 +0000)]
Merge "Add features-restconf to restconf-artifacts"

8 years agoAdd features-restconf to restconf-artifacts 40/26140/1
Tomas Cere [Fri, 28 Aug 2015 08:01:30 +0000 (10:01 +0200)]
Add features-restconf to restconf-artifacts

Change-Id: Iac9c0600a3be644abf9e6021f109612494f5b765
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix exchanged added and deleted capabilities in capabilities notification 44/26144/1
JMorvay [Wed, 26 Aug 2015 10:47:25 +0000 (12:47 +0200)]
Fix exchanged added and deleted capabilities in capabilities notification

Change-Id: I56286f6973dae3a8d0b35f8abbf6a77c02deacd2
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMake sal-netconf-connector fail, if connecting to 96/26096/1
JMorvay [Wed, 29 Jul 2015 09:06:12 +0000 (11:06 +0200)]
Make sal-netconf-connector fail, if connecting to
device, that does not advertise :candidate or
:writtable-running capability

Change-Id: Ieabbc8f2833df914db9b10b65b7b9f8ca04e1e95
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMerge "Rename restconf packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:30:01 +0000 (14:30 +0000)]
Merge "Rename restconf packages to org.opendaylight.netconf"

8 years agoMerge "Rename tools packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:29:51 +0000 (14:29 +0000)]
Merge "Rename tools packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-util packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:29:46 +0000 (14:29 +0000)]
Merge "Rename netconf-util packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-ssh/tcp packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:29:42 +0000 (14:29 +0000)]
Merge "Rename netconf-ssh/tcp packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-notifications packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:29:39 +0000 (14:29 +0000)]
Merge "Rename netconf-notifications packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-netty-util packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:29:35 +0000 (14:29 +0000)]
Merge "Rename netconf-netty-util packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-monitoring packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:29:30 +0000 (14:29 +0000)]
Merge "Rename netconf-monitoring packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-mapping-api packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:26:26 +0000 (14:26 +0000)]
Merge "Rename netconf-mapping-api packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-impl packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:26:15 +0000 (14:26 +0000)]
Merge "Rename netconf-impl packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-client packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:26:08 +0000 (14:26 +0000)]
Merge "Rename netconf-client packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-auth packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:26:03 +0000 (14:26 +0000)]
Merge "Rename netconf-auth packages to org.opendaylight.netconf"

8 years agoMerge "Rename netconf-api packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:25:52 +0000 (14:25 +0000)]
Merge "Rename netconf-api packages to org.opendaylight.netconf"

8 years agoMerge changes I98276170,I77b1d470
Maros Marsalek [Tue, 25 Aug 2015 14:25:07 +0000 (14:25 +0000)]
Merge changes I98276170,I77b1d470

* changes:
  Rename messagebus-netconf packages to org.opendaylight.netconf
  Rename mdsal-netconf-monitoring packages to org.opendaylight.netconf

8 years agoMerge "Rename mdsal-netconf-connector packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:25:01 +0000 (14:25 +0000)]
Merge "Rename mdsal-netconf-connector packages to org.opendaylight.netconf"

8 years agoMerge "Rename config-netconf-connector packages to org.opendaylight.netconf"
Maros Marsalek [Tue, 25 Aug 2015 14:24:31 +0000 (14:24 +0000)]
Merge "Rename config-netconf-connector packages to org.opendaylight.netconf"

8 years agoMerge "Fix sal-netconf-connector feature version"
Maros Marsalek [Tue, 25 Aug 2015 14:24:01 +0000 (14:24 +0000)]
Merge "Fix sal-netconf-connector feature version"

8 years agoRename restconf packages to org.opendaylight.netconf 54/25954/1
Tomas Cere [Mon, 24 Aug 2015 12:41:35 +0000 (14:41 +0200)]
Rename restconf packages to org.opendaylight.netconf

Change-Id: I4d6ffc2e164a251e2b1878dcf77809f8c50b7b5a
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename tools packages to org.opendaylight.netconf 53/25953/1
Tomas Cere [Tue, 25 Aug 2015 10:54:43 +0000 (12:54 +0200)]
Rename tools packages to org.opendaylight.netconf

Change-Id: I1f9bae490ce4770a733185a0f540ded774c8dff3
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-util packages to org.opendaylight.netconf 52/25952/1
Tomas Cere [Tue, 25 Aug 2015 10:40:12 +0000 (12:40 +0200)]
Rename netconf-util packages to org.opendaylight.netconf

Change-Id: Icf89e7f6da84722faff34b86bf5b7ac6e0cb61ee
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-ssh/tcp packages to org.opendaylight.netconf 51/25951/1
Tomas Cere [Tue, 25 Aug 2015 09:47:41 +0000 (11:47 +0200)]
Rename netconf-ssh/tcp packages to org.opendaylight.netconf

Change-Id: Ie76bac58fa32c7acb4b580eeb697c9402d87f147
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-notifications packages to org.opendaylight.netconf 50/25950/1
Tomas Cere [Tue, 25 Aug 2015 09:40:37 +0000 (11:40 +0200)]
Rename netconf-notifications packages to org.opendaylight.netconf

Change-Id: Idca977c5e4355f26679600f75d6de42f2035f324
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-netty-util packages to org.opendaylight.netconf 49/25949/1
Tomas Cere [Tue, 25 Aug 2015 09:31:27 +0000 (11:31 +0200)]
Rename netconf-netty-util packages to org.opendaylight.netconf

Change-Id: I4ccbba062080f0e677b7054ee2026fb1d61c69dc
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-monitoring packages to org.opendaylight.netconf 48/25948/1
Tomas Cere [Tue, 25 Aug 2015 09:01:54 +0000 (11:01 +0200)]
Rename netconf-monitoring packages to org.opendaylight.netconf

Change-Id: Idf9c0f3d807384089aa719890437c8b9ef602c72
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-mapping-api packages to org.opendaylight.netconf 47/25947/1
Tomas Cere [Tue, 25 Aug 2015 08:53:06 +0000 (10:53 +0200)]
Rename netconf-mapping-api packages to org.opendaylight.netconf

Change-Id: I0abed7fd91d1f8fd0b1d99899440127aac086beb
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-impl packages to org.opendaylight.netconf 46/25946/1
Tomas Cere [Tue, 25 Aug 2015 08:39:09 +0000 (10:39 +0200)]
Rename netconf-impl packages to org.opendaylight.netconf

Change-Id: I8dad162c0f519420a80fc58099b6f6f4a92f819b
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-client packages to org.opendaylight.netconf 45/25945/1
Tomas Cere [Tue, 25 Aug 2015 08:32:11 +0000 (10:32 +0200)]
Rename netconf-client packages to org.opendaylight.netconf

Change-Id: I6c7a99491200c1c41098a83cd1aed02f33d3840d
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-auth packages to org.opendaylight.netconf 44/25944/1
Tomas Cere [Tue, 25 Aug 2015 08:19:11 +0000 (10:19 +0200)]
Rename netconf-auth packages to org.opendaylight.netconf

Change-Id: Ibd646282c633dbed92ec003cf7b1b0f0517e283b
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename netconf-api packages to org.opendaylight.netconf 25/25925/1
Tomas Cere [Mon, 24 Aug 2015 14:40:05 +0000 (16:40 +0200)]
Rename netconf-api packages to org.opendaylight.netconf

Change-Id: I396100af615b71f3f1cae49fc9a418d27dac5a7f
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename messagebus-netconf packages to org.opendaylight.netconf 24/25924/1
Tomas Cere [Mon, 24 Aug 2015 14:38:13 +0000 (16:38 +0200)]
Rename messagebus-netconf packages to org.opendaylight.netconf

Change-Id: I9827617094c847cb5206eaa65d70d9f47c37c591
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename mdsal-netconf-monitoring packages to org.opendaylight.netconf 23/25923/1
Tomas Cere [Mon, 24 Aug 2015 14:36:09 +0000 (16:36 +0200)]
Rename mdsal-netconf-monitoring packages to org.opendaylight.netconf

Change-Id: I77b1d4704d19650091ae25c44b60b5814cda91c6
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename mdsal-netconf-connector packages to org.opendaylight.netconf 22/25922/1
Tomas Cere [Mon, 24 Aug 2015 14:29:43 +0000 (16:29 +0200)]
Rename mdsal-netconf-connector packages to org.opendaylight.netconf

Change-Id: Ib5b3dace1dc9bb568b36e5d895966fdc2eb0b35a
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRename config-netconf-connector packages to org.opendaylight.netconf 21/25921/1
Tomas Cere [Mon, 24 Aug 2015 14:27:29 +0000 (16:27 +0200)]
Rename config-netconf-connector packages to org.opendaylight.netconf

Change-Id: I960ca48cd1942a2e101c12238630a06a39ff0f82
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix sal-netconf-connector feature version 20/25920/1
Tomas Cere [Mon, 24 Aug 2015 13:39:52 +0000 (15:39 +0200)]
Fix sal-netconf-connector feature version

Make sal-netconf-connector preserve md-sal version.
Make features-netconf-connector inherit netconf project version

Change-Id: Iae701ee92912eb3229c586a0293ac15467b33fa6
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoChange karaf groupId and version 59/25859/1
Tomas Cere [Mon, 24 Aug 2015 09:05:21 +0000 (11:05 +0200)]
Change karaf groupId and version

Change-Id: I0f3840267c8374cc8bce1b5c9858d1801222395d
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd missing odl-config-netty feature into odl-netconf-mdsal 56/25556/4
Tomas Cere [Fri, 21 Aug 2015 07:09:41 +0000 (09:09 +0200)]
Add missing odl-config-netty feature into odl-netconf-mdsal

Change-Id: Ifd077a881311517471cb0f39b24db4a6d11ea08c
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd karaf distribution 55/25555/4
Tomas Cere [Fri, 21 Aug 2015 07:07:49 +0000 (09:07 +0200)]
Add karaf distribution

Change-Id: I8e451d76741ab60f05082ab1e3d7d71285b0a11a
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoCreate restconf-artifacts 29/25529/7
Tomas Cere [Thu, 20 Aug 2015 08:36:00 +0000 (10:36 +0200)]
Create restconf-artifacts

Change-Id: I7aa99cd8ab914e4c9a96822b7b893dbda5a3fc1b
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoFix license header violation 54/25854/2
Tomas Cere [Mon, 24 Aug 2015 06:42:28 +0000 (08:42 +0200)]
Fix license header violation

Change-Id: I1606a869c0e10cdc8f289492a83668421df50831
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd rest connector config 28/25528/3
Tomas Cere [Thu, 20 Aug 2015 08:20:55 +0000 (10:20 +0200)]
Add rest connector config

sal-rest-connector-config was forgotten in controller

Change-Id: Id4004d02325ea306b29b4b51e7f85cf1217ce0e2
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoChange groupId and versions of netconf artifacts 27/25527/2
Tomas Cere [Wed, 19 Aug 2015 14:44:26 +0000 (16:44 +0200)]
Change groupId and versions of netconf artifacts

Change-Id: Id961c524aa338d0c1d553b6c3937b0e0a8c7d0f4
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd restconf features 68/25468/1
Tomas Cere [Wed, 19 Aug 2015 11:45:44 +0000 (13:45 +0200)]
Add restconf features

Unify netconf/restconf features into single directory

Change-Id: Ia92659b3de2af9df0764181f309f32a0c96f2456
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoCleanup project structure and dependencies 15/25415/6
Tomas Cere [Mon, 17 Aug 2015 11:07:02 +0000 (13:07 +0200)]
Cleanup project structure and dependencies

Add restconf-parent pom
Add parent dependencies/build plugins and properties to restconf/netconf parent poms
Rename md-sal dir to restconf since restconf is no longer part of md-sal

Change-Id: I3874d514ec969c1710b2fe173db4c53781387d4f
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd .gitignore 51/25351/2
Tomas Cere [Tue, 7 Jul 2015 13:32:11 +0000 (15:32 +0200)]
Add .gitignore

Change-Id: I9a1435c847ea3a563afa9f29f743bb91a7c419e9
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd base netconf pom 99/25399/1
Tomas Cere [Tue, 18 Aug 2015 08:47:34 +0000 (10:47 +0200)]
Add base netconf pom

Cleanup bad imports that were failing checkstyle

Change-Id: I5026d2075426ccea415e31a7ef913668a7a4a10e
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoDecouple message bus from netconf connector
Tomas Cere [Thu, 13 Aug 2015 09:06:22 +0000 (11:06 +0200)]
Decouple message bus from netconf connector

Change-Id: I6a143e868adc1e5c7a9b114798e7009bb6ef8675
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoDecouple config and netconf subsystems.
Tomas Cere [Thu, 13 Aug 2015 09:06:54 +0000 (11:06 +0200)]
Decouple config and netconf subsystems.

Extract a common mapping for config pusher and config subsystem netconf
Add a ConfigPersisterFacade for XML that allows reads/writes from/to config
subsystem using XML format
Push notifications from YangStoreService to NetconfNotificationManager instead
of using custom listeners
Migrate netconf features from controller features, untangle features

Change-Id: I71e4ca6e0258e0b1f0d6c19119f93eb9d68b7bca
Signed-off-by: Tomas Cere <tcere@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
8 years agoFix license header violations in sal-rest-docgen
Thanh Ha [Sun, 9 Aug 2015 01:22:15 +0000 (21:22 -0400)]
Fix license header violations in sal-rest-docgen

Change-Id: I03c4b7ef9397224d649e9387ed895bca74672ec9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in sal-rest-connector
Thanh Ha [Sun, 9 Aug 2015 01:09:32 +0000 (21:09 -0400)]
Fix license header violations in sal-rest-connector

Change-Id: I2dfda9fe6b3185d20386cc9f6078c0b53f7be40b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in netconf
Thanh Ha [Sat, 8 Aug 2015 06:12:29 +0000 (02:12 -0400)]
Fix license header violations in netconf

Change-Id: Ie5c541b03a342bec33257b13b985b89e9ca835a0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoClean up pom.xml file
Thanh Ha [Thu, 6 Aug 2015 05:23:10 +0000 (01:23 -0400)]
Clean up pom.xml file

- Remove unnecessary commented code

Change-Id: Id4ceca0174ba5883059c52cbcee11aafb67c74ea
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoAdd config subsystem binding to netconf-auth API
Maros Marsalek [Wed, 15 Jul 2015 13:20:08 +0000 (15:20 +0200)]
Add config subsystem binding to netconf-auth API

Change-Id: Ie04d9a7cb72bfcbeae6c7ca7dc0dbb2bdeadef0d
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoBug 2358 - Remove tests cnsn to json and add tests nn to json
Jakub Toth [Wed, 27 May 2015 09:41:45 +0000 (11:41 +0200)]
Bug 2358 - Remove tests cnsn to json and add tests nn to json

Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but
we test codec on input data and also with presentation of Rest path.

* remove CnSnToJsonNotExistingLeafTypeTest.java test
* add NnToJsonNotExistingLeafTypeTest.java to nn/to/json/test/
  * test with not existing leaf type

Change-Id: Id7a1256b42a3a754e13343613dcad7059a2316c4
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 1fa839d51563b9588bf7502e86a5e9c2425fab2f)

8 years agoBug 2358 - Remove tests cnsn to json and add tests nn to json
Jakub Toth [Wed, 27 May 2015 10:44:31 +0000 (12:44 +0200)]
Bug 2358 - Remove tests cnsn to json and add tests nn to json

Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but
we test codec on input data and also with presentation of Rest path.

* remove CnSnToJsonWithAugmentTest test
* add NnToJsonWithAugmentTest to nn/to/json/test/
  * positive test for test augmented elements

Change-Id: I4c8b92e828ade1d43a5af5384ec7938854fda9ce
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 6b97753fc17bb2d9d73047038105754fcebe029d)

8 years agoBug 2358 - Remove tests json to cnsn and add tests json to nn
ary [Wed, 29 Apr 2015 10:09:41 +0000 (12:09 +0200)]
Bug 2358 - Remove tests json to cnsn and add tests json to nn

Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but
we test codec on input data and also with presentation of Rest path.

* remove all tests json to composite node and simple node
* rewrite json leafref input tests from comp and simple node to normalized node
  * we're testing REST provider URI path translator with payload
* add test for test data in json with identityref to normalized node
  * positive test
  * test data in builded normalized node with data in json
    * used identityref type to reference an existing identity
* add test for test data in json with leafref to normalized node
  * positive test
  * test data in builded normalized node with data in json
    * used leafref type to reference particular leaf instance in the data tree
* add test for test data in json with more type of nodes and values
  * positive tests
    * test normalized node from json with:
      * simple data in list
      * simple data in container
      * multiple items in leaf-list
      * multiple items in list
      * empty leaf
      * augmented data
  * negative tests
    * test fail on bad top level elements
      * contains 3 situations
    * test fail for null data
      * empty leaf-list
      * leaf without any value
    * test on build normalized node with blank json
    * test fail with different namespaces
    * test fail because of unsupported format of json
    * test on invalid URI character

Change-Id: Icb5ff5d11843123c79859a0c75d7df7bad8a0b44
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit a3fd2b66c8121a8603d684b97c1fb7076d933d99)

8 years agoRemove deprecated constructors from RemoteDeviceId
Maros Marsalek [Tue, 14 Jul 2015 12:26:15 +0000 (14:26 +0200)]
Remove deprecated constructors from RemoteDeviceId

Change-Id: I26d48930a16213d2264de964f60103e67f80b9bd
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoImprove performance of notification emitting in netconf testtool
Maros Marsalek [Mon, 8 Jun 2015 15:22:45 +0000 (17:22 +0200)]
Improve performance of notification emitting in netconf testtool

- pre-parse all notifications beforehand
- remove unwanted outputs

Change-Id: I6dd823786fd0d5f9ab04943633f8aa3b61a540e8
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
(cherry picked from commit 7392728edfe0b150833c7af47c3bc8d4b0ce101a)

8 years agoBug 3887 - Autogenerated API documentation doesn't show application/xml
Jan Hajnar [Wed, 1 Jul 2015 09:03:44 +0000 (11:03 +0200)]
Bug 3887 - Autogenerated API documentation doesn't show application/xml
as an option for RPC operations

* added xml input option for rpcs, put and post methods

Change-Id: I1f73bcb7d1127e4b4324d779aec40907ca627073
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
(cherry picked from commit e57d9461b79dedd8ef9edf8f249b066540fd0e9d)

8 years agoBUG-3963 Remove netconf-usermanager
Maros Marsalek [Tue, 14 Jul 2015 08:56:59 +0000 (10:56 +0200)]
BUG-3963 Remove netconf-usermanager

This way of authentication relied on AD-SAL and thats deprecated/removed now
from ODL.

Change-Id: I0daeee09ff88b1c4677206c1b7216e972d34f01c
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoBug 1500 - Null pointer exception when using mounted resources tab to
Jan Hajnar [Tue, 7 Jul 2015 09:38:33 +0000 (11:38 +0200)]
Bug 1500 - Null pointer exception when using mounted resources tab to
see the operations on mount point

* added check for when revision is null in modules comparator

Change-Id: I3bdc4ed798297d31ea25001d25918e298c8124bb
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
8 years agoAdd netconf-mapping-api test for HandlingPriority
Tomas Cere [Tue, 23 Jun 2015 09:35:50 +0000 (11:35 +0200)]
Add netconf-mapping-api test for HandlingPriority

Change-Id: I29a6fdaab266acd42c5355101769bb82c14135fc
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoAdd discardChanges branch to unit test
Tomas Cere [Mon, 22 Jun 2015 12:57:09 +0000 (14:57 +0200)]
Add discardChanges branch to unit test

Add service instance deletion to NetconfMappingTest

Change-Id: I25d1ebefde86050c42a2d43ec445feaf8d5889de
Signed-off-by: Tomas Cere <tcere@cisco.com>
8 years agoRemove yang-data-operations dependencies
Maros Marsalek [Tue, 14 Jul 2015 08:41:56 +0000 (10:41 +0200)]
Remove yang-data-operations dependencies

Not used anymore

Change-Id: I692bdbc00efb38bb29d7f5c18ca042bc10eeb11f
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
8 years agoBug 868 - Continuous: remove deprecated APIs
Jan Hajnar [Wed, 10 Jun 2015 11:55:42 +0000 (13:55 +0200)]
Bug 868 - Continuous: remove deprecated APIs

* removed deprecated API from Bug3595Test

Change-Id: Ic8f987aeb000cfb150286ad44e478771e8a52384
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
(cherry picked from commit e1b79358817f1202c50f7410b92746b0777d0642)

8 years agoBug 2358 - Remove tests cnsn to json and add tests nn to json
Jakub Toth [Wed, 20 May 2015 21:34:52 +0000 (23:34 +0200)]
Bug 2358 - Remove tests cnsn to json and add tests nn to json

Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but
we test codec on input data and also with presentation of Rest path.

* add test NnToJsonLeafrefType to nn/to/json/test
  * positive tests of leafref
    * absolut path
    * relative path
    * leafref to not leaf
    * from leaflist to leaf
    * from leafref to leafref
  * negative tests of leafref
    * non existing Leaf

Change-Id: I652204071d874d6c7a2a65e100dd68c16a12af8f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 1f4b4062cbdd0cfadcf61e60bce9ee9e951c975c)

8 years agoBug 2358 - Remove tests cnsn to json and add tests nn to json
ary [Fri, 15 May 2015 13:25:08 +0000 (15:25 +0200)]
Bug 2358 - Remove tests cnsn to json and add tests nn to json

Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but
we test codec on input data and also with presentation of Rest path.

* remove CnSnJsonChoiceCaseTest test
* add NnJsonChoiceCaseTest to nn/to/json/test/
  * positive and negative tests for choice statement

Change-Id: I83d351bf0de9bb4a1c649c5851209ae472aaaa24
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 33657892ea175d459184732b0fbc08eb7589e787)