New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getschema on acm yang module results in invalid version of the model #71
Comments
I see the exact same issue with ietf-network-monitoring.yang |
Hi, this is actually the expected result. What you see is how the libyang prints the module. YANG extensions are not currently supported, but we are already working on it. But all other things should be correct. Remember that YANG allows you to write a statement (especially strings) in a several ways, e.g. the following 3 statements (and there are more) are equivalent:
In which exact part, except the extensions, the modules differs? Also remember, that because of XML encoding, you may see some characters differently in |
the file I get back is missing sections and results in errors - which makes ietf-system not usable. So get schema results in errors in this module as well as the ietf system module which uses it. pyang -f yang ietf-netconf-acm@2012-02-22.yang > tmp.yang |
Is there a way to send you the two files? |
github allows you to attach files. I've already answered regarding the extensions. They will be supported within a few weeks. |
When I do a get schema on ietf-netconf-acm@2012-02-22.yang I get a bad version of the yang model. It is much different from the one I installed and that exists in the /etc/sysrepo/yang directory.
I have no idea where it is coming from.
you can see that the one that is correct and was loaded has prefex "nacm" the one that gets sent has prefix nacm. however this is not the only difference as the are missing extension statements and other things.
I have searched everywhere and have not been able to determine where this invalid version of the acm yang model is. I tried uninstalling and installing the module - and nothing works.
/etc/sysrepo/yang directory contains the following yang model
which is not what gets sent via get schema.
netopeer2
The text was updated successfully, but these errors were encountered: