[CONTROLLER-318] GET to restconf/modules returns 500 with exception Created: 14/Apr/14  Updated: 24/May/14  Resolved: 24/May/14

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

Type: Bug
Reporter: Devin Avery Assignee: Devin Avery
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


Issue Links:
Duplicate
is duplicated by CONTROLLER-329 Error 500 when trying to list all md-... Resolved
External issue ID: 735

 Description   

A GET call to restconf/modules is suppose to tell you what the supported modules are in the system, however in ODL it is returing a 500, indicating an internal problem.

The issue is that the ietf-restconf.yang is not shipped with the project, but is a hardcoded lookup. Thus when the lookup happens it fails to find the file and thus fails.

Solution ship the ietf-restconf.yang file from yangtools.



 Comments   
Comment by Devin Avery [ 14/Apr/14 ]

Related to CONTROLLER-225 but even with the proposed fix below, CONTROLLER-225 has other blocking issues, so separating the two issues.

Comment by Devin Avery [ 23/Apr/14 ]

Pushed gerrit patch - https://git.opendaylight.org/gerrit/#/c/6182

Comment by Devin Avery [ 23/Apr/14 ]

It looks like we are going to have to update the dependent yangs to get this change fully committed. The 00 version of the restconf doesn't support 'streams'.

Comment by Tony Tkacik [ 23/Apr/14 ]

You need to bring in newest ietf-inet-types and ietf-yang-types. This could be separate bundle with seperate version and you need restconf-02 model.

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