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
- relates to
-
NETCONF-12 Sideload of models for nodes from remote yang sources repository
- Resolved
-
NETCONF-1065 Wrong Map Node type causes Yanglib data merge failure
- Resolved