[NETCONF-910] Odl-yanglib fails to register provided sources Created: 08/Nov/22 Updated: 09/Jan/24 Resolved: 09/Oct/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | 4.0.3 |
| Fix Version/s: | 6.0.0 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Peter Suna | Assignee: | Ivan Hrasko |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Registering any models as schemaSource in odl-yanglib will fail at the line: More in provided logs. Steps to reproduce: yanglibConfig = new YanglibConfigBuilder() .setCacheFolder(FOLDER_PATH) .setBindingAddr("localhost") .setBindingAddr("8181") .build(); ) Odl-yanglib feature was installed with command: |
| Comments |
| Comment by Ivan Hrasko [ 02/Feb/23 ] |
|
What are the steps to reproduce? What are models used? For me it looks that you have problem in your models:
Caused by: java.lang.IllegalArgumentException: Require interface org.opendaylight.yangtools.yang.data.api.schema.SystemMapNode, got ImmutableUserMapNode{identifier=(urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)module, body=UnmodifiableCollection{[ImmutableMapEntryNode
|
| Comment by Robert Varga [ 02/Feb/23 ] |
|
Hmm, this needs attaching a debugger and looking at things. From what I understand, the datastore is populated with an OrderedMapNode (somehow?) and we are merging something into it (or perhaps vice versa?) |
| Comment by Peter Suna [ 09/Oct/23 ] |
|
This bug is no longer present in the current master. It was resolved by migrating to OSGi DS. |
| Comment by Ivan Hrasko [ 09/Oct/23 ] |
|
Thanks, I assume fix version is the same as for |