[NETCONF-1068] YangLib: missing mandatory descendant "namespace" Created: 29/Jun/23  Updated: 29/Jun/23

Status: Open
Project: netconf
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Ivan Hrasko Assignee: Ivan Hrasko
Resolution: Unresolved Votes: 0
Labels: pick-next, pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File karaf.log    
Issue Links:
Relates
relates to NETCONF-1065 Wrong Map Node type causes Yanglib da... Resolved

 Description   

Currently, we do not set namespace field for models we are writing into ietf-yang-library's modules state. Thus we are getting exception during runtime:

java.lang.IllegalArgumentException: Node (urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)module[{(urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)name=ietf-inet-types, (urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)revision=2010-09-24}] is missing mandatory descendant /(urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)namespace

See karaf.log for details.

The production logic is in org.opendaylight.yanglib.impl.YangLibProviderClass.

Steps to reproduce:

  • start karaf
  • feature:install odl-yanglib
  • copy any yang file to karaf_home/cache/schema
  • restart karaf

Generated at Wed Feb 07 20:16:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.