Open gouravgopal opened 4 years ago
Can you report the netconfd command line that fails.
Added testcase that reproduces the bug identityref-submodule
Hi I have a similar error but with the openconfig-aft.yang model. The config file looks like this:
access-control disabled
audit-log /var/log/netconf-audit.log
datapath /data
modpath /yang
home /root
indent 2
log /var/log/netconfd.log
log-level debug4
module openconfig-extensions
module openconfig-policy-types
module openconfig-interfaces
module openconfig-yang-types
module openconfig-inet-types
module openconfig-mpls-types
module openconfig-aft-types
module ietf-interfaces
module openconfig-types
module ietf-yang-types
module openconfig-aft-common
module openconfig-aft-ipv4
module openconfig-aft-ipv6
module openconfig-aft-mpls
module openconfig-aft-pf
module openconfig-aft-ethernet
module openconfig-packet-match-types
superuser root
yuma-home /netconfd
}
The error which I get is the following:
yang_parse: resolve xpath
yang_obj_resolve_xpath for submodule 'openconfig-aft-common'
yang_parse: resolve augments final
yang_parse: resolve XPath final
yang_parse: resolve XPath final
Warning: Module 'openconfig-policy-types' not used
openconfig-aft-common.yang:11.3: warning(415): import not used
Load module 'openconfig-aft-common' failed (NULL pointer)
Error: one or more modules could not be loaded
netconfd: init returned (operation failed)
Shutting down the netconfd server
Server Cleanup Starting...
E0:
../../../netconf/src/ncx/val.c:5810
Error 2: NULL pointer
*** log close at 2022-03-16T09:39:10Z ***
I also found the following in the log file:
yang_obj_resolve: origin-protocol
E0:
../../../netconf/src/ncx/yang.c:2493
Error 2: NULL pointer
Error: identityref '--' has invalid base value (INSTALL_PROTOCOL_TYPE)
openconfig-aft-common.yang:238.7: error(2): NULL pointer
Best regards Remo
Tried to load openconfig modules(e.g. openconfig-network-element) on yuma123(version 2.11) and encountered error :
_yang_obj_resolve_xpath for module 'openconfig-segment-routing-types' agt_cb: got new module 'openconfig-segment-routing-types', rev '2019-09-24' E0: ../../../netconf/src/ncx/yang.c:2493 Error 2: NULL pointer
Error: identityref '--' has invalid base value (TUNNEL_ENCAPSULATION_TYPE) openconfig-rib-bgp-attributes.yang:654.7: error(2): NULL pointer
E0: ../../../netconf/src/ncx/ncxmod.c:2079 Error 4: invalid internal value
Error: include of submodule 'openconfig-rib-bgp-attributes' failed openconfig-rib-bgp-tables.yang:13.3: error(2): NULL pointer
E0: ../../../netconf/src/ncx/ncxmod.c:2079 Error 4: invalid internal value
Error: include of submodule 'openconfig-rib-bgp-tables' failed openconfig-rib-bgp.yang:17.3: error(2): NULL pointer
Error: 'openconfig-bgp.yang' import of module 'openconfig-rib-bgp' failed openconfig-bgp.yang:12.3: error(2): NULL pointer
Stop parsing 'openconfig-bgp' due to linkage errors Error: 'openconfig-network-instance.yang' import of module 'openconfig-bgp' failed openconfig-network-instance.yang:21.3: error(332): imported module has errors
Stop parsing 'openconfig-network-instance' due to linkage errors Load module 'openconfig-network-instance' failed (imported module has errors) Error: one or more modules could not be loaded netconfd: init returned (operation failed) Shutting down the netconfd server
Server Cleanup Starting...
Total Internal Errors: 3 _
Please let me know whether any one has encountered this issue.