openconfig / public

Repository for publishing OpenConfig models, documentation, and other material for the community.
Apache License 2.0
894 stars 652 forks source link

Possible incorrect path in openconfig-qos-elements.yang #263

Closed marcusyuri closed 2 months ago

marcusyuri commented 5 years ago

535c559 < when "config/queue-type = 'oc-qos-types:RED'" {

      when "../config/queue-type = 'oc-qos-types:RED'" {

542c566 < when "config/queue-type = 'oc-qos-types:WRED'" {

      when "../config/queue-type = 'oc-qos-types:WRED'" {
aashaikh commented 5 years ago

Can you please explain this a bit more -- is there an error you are seeing when validating the modules?

marcusyuri commented 5 years ago

Hello, Annes. Thank you for the question. I am using an evaluation version of Cisco NSO, that is free for download for non production utilization. The tooling is called Cisco netsim, that allows to import an yang device model, and simulate the corresponding auto-generated command line.

When I import this particular yang files, it complies about a typo in xpath expression:

/home/marcus/nso-4.7.5/bin/ncsc --ncs-compile-bundle yang \ --ncs-device-dir ncsc-out \ --ncs-device-type netconf \ && \ cp ncsc-out/modules/fxs/*.fxs ../load-dir; yang/openconfig-qos-elements.yang:535: error: the node 'config' from module 'openconfig-qos' (in node 'queues' from 'openconfig-qos') is not found

    If I remove the "../" from the path, it compiles ok, so it apears to be a typo on the xpath expression.
github-actions[bot] commented 4 months ago

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.