[NETCONF-857] Export supported features to ietf-yang-library Created: 03/Feb/22 Updated: 22/Jan/24 |
|
| Status: | Confirmed |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0, 5.0.10, 6.0.7 |
| Type: | Improvement | Priority: | High |
| Reporter: | Robert Varga | Assignee: | Peter Suna |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pick-next, pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Multiple netconf components deal with ietf-yang-library. Audit all of them and update them:
The following need to be updated:
|
| Comments |
| Comment by Oleksandr Zharov [ 04/Apr/22 ] |
|
YangLibraryWriter is done and merged. Only other two left. |
| Comment by Peter Suna [ 25/Oct/22 ] |
|
I found out that LibraryModulesSchemas is not working properly and contains several issues. Wrong initialization of LIBRARY_CONTEXT constant could be fixed with this: Wrong handling response from device could be fixed with this: But the bigger problem is that the wrong RPC request is sent to the device. Instead of get RPC from ietf-netconf should be used get-data from ietf-netconf-nmda in LibraryModulesSchemas#create: YANG Library - https://www.rfc-editor.org/rfc/rfc8525
NETCONF Extensions to Support the NMDA https://www.rfc-editor.org/rfc/rfc8526
So ietf-yang-library should be used with NMDA because data saved in ietf-yang-library model are visible only in operation data store.
Therefore, data from ietf-yang-library could be retrieved only with get-data which can specified target data-store. |
| Comment by Peter Suna [ 08/Nov/22 ] |
|
I have added supported features to YangLibProvider. But these changes are not properly tested due to issues I have found. |