[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 |
||
| Issue Links: |
|
||||||||
| 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 |
| 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. |