[NETCONF-859] Devices with certain BBF yang models cannot be accessed in Swagger. Created: 09/Feb/22 Updated: 24/Oct/22 Resolved: 24/Oct/22 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Magaldi | Assignee: | Robert Varga |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows or Linux machine running ODL Silicon or Phosphorus Netconf testtool simulator running the yang files attached. |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
This problem is seen using lighty.io 14.0 and 15.1, but also seen with OpenDayLight Silicon and Phosphorus SR1 releases as well. Certain Broadband Forum Yang files cause the swagger in ODL to error. Specifically, one creates a device which contains the YANG file bbf-software-management, the device will get connected and mounted. However, the swagger will not allow access to the device, it will display a box with the following error: Fetch errorServer Error http://10.184.144.176:8181/apidoc/openapi3/18/apis/mounts/5
It can be recreated by simply starting ODL and adding a device (netconf testtool) which contains yang file from the Broadband forum called "bbf-software-management@21-09-17.yang" The problem seems to be related to a "leaf" ref. The bbf-software-manager yang is an augmentation to ietf-hardware. Inside the model, it has the following for example:
The leaf "id" here is a leafref. ODL cannot decipher this path - or fails to do so. Directly after this there is also an "alias leaf with the same issue. The paths for these seem to be correct. A work around for this is to change the BBF yang to use the define that the path refers to .. that fixes the issue. For example doing this instead...
|
| Comments |
| Comment by Robert Varga [ 24/Oct/22 ] |
|
|