[CONTROLLER-1391] Create an internal service to access restconf Created: 15/Jul/15  Updated: 24/Jul/15  Resolved: 24/Jul/15

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: Lithium
Fix Version/s: None

Type: Improvement
Reporter: Tom Pantelis Assignee: Tom Pantelis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

We have a use case where we want to access restconf internally to take advantage of the URL path and JSON parsing and the mount point invocation functionality. Rather than duplicating all that code internally, we want to reuse the restconf code.

We could access restconf via HTTP, as others have done in the past, but that's problematic because we'd have to know which protocol is configured (http/https) and which port plus authentication etc.

Instead I've prototyped a JSONRestconfService interface and implementation that is advertised via the config system and can be consumed by apps. It contains the standard CRUD methods. The implementation accesses the front-end parsing code and RestconfImpl the same as external HTTP requests do. The service accepts and returns JSON but a similar service for XML could also be added.



 Comments   
Comment by Tom Pantelis [ 15/Jul/15 ]

Submitted https://git.opendaylight.org/gerrit/#/c/23856/

Generated at Wed Feb 07 19:55:26 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.