Closed csrm7 closed 3 years ago
I am afraid that device is sending wrong response, which should not use prefixes instead of full module names. Suggest to talk to device engineering department and request to correct the issue.
NOTE: The YANG RFC-6020 defines the following constraints for the prefix statement:
All prefixes, including the prefix for the module itself MUST be unique within the module or submodule.
and lower for the import statement:
The mandatory "prefix" substatement assigns a prefix for the imported module that is scoped to the importing module or submodule. Multiple "import" statements may be specified to import from different modules.
That means the prefix cannot uniquely identify the module. The same module imported to other modules can have different prefixes defined in corresponding import statements. Therefore there is no way to provide mapping, which could uniquely identify module from given prefix.
@ygorelik Thank you for your time and clarification. I had it fixed from the device engineering.
Issue Description
YDK throws "YModelError" if identityref uses module prefix instead of module name. Please refer to the logs below where "oc-alarm-types" is prefix for "openconfig-alarm-types"
Creating this enhancement request as suggested in YDK community.
reading-system-alarms-libyang-error-failed-to-resolve/m-p/4194967
Script
Logs (gNMI)
Logs (Netconf)
System Information