[CONTROLLER-859] config.yang not compiling in pyang Created: 18/Sep/14  Updated: 25/Jul/23  Resolved: 20/Oct/14

Status: Resolved
Project: controller
Component/s: config
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Kiran Koushik Assignee: Maros Marsalek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 1958

 Comments   
Comment by Kiran Koushik [ 18/Sep/14 ]

When I try to compile config.yang in pyang, it fails with the following errors:

h$ pyang -W none -p experimental:experimental/odp:experimental/ietf:experimental/ietf/ACL-MODEL:experimental/ietf/SYSLOG-MODEL:experimental/ietf/SERVICES-FUNCTION-CHAINING:experimental/ietf/RVTM:experimental/ietf/ODL-PATHS:standard:standard/odp:standard/ietf:standard/ietf/DRAFT:standard/ietf/RFC:vendor:vendor/netconfcentral:vendor/yumaworks:vendor/brocade experimental/odp/*.yang

experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/netty-timer.yang:50 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/odl-sal-dom-rpc-remote-cfg.yang:37 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/odl-sal-netconf-connector-cfg.yang:62 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/odl-sal-netconf-connector-cfg.yang:74 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/odl-sal-netconf-connector-cfg.yang:86 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/odl-sal-netconf-connector-cfg.yang:95 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/odl-sal-netconf-connector-cfg.yang:104 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-binding-broker-impl.yang:80 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-binding-broker-impl.yang:89 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-binding-broker-impl.yang:103 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-binding-broker-impl.yang:112 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-binding-broker-impl.yang:127 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-binding-broker-impl.yang:136 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-dom-broker-impl.yang:46 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-dom-broker-impl.yang:55 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/opendaylight-dom-broker-impl.yang:71 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/threadpool-impl-fixed.yang:45 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/threadpool-impl-flexible.yang:50 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/threadpool-impl-scheduled.yang:44 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/threadpool-impl.yang:68 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/toaster-consumer-impl.yang:35 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/toaster-consumer-impl.yang:44 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/toaster-provider-impl.yang:35 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/toaster-provider-impl.yang:44 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref
experimental/odp/config.yang:131: error: config:type in the path's predicate for name at experimental/odp/toaster-provider-impl.yang:53 (at experimental/odp/config.yang:128) is compared with a leaf that is not a correct leafref

Comment by Maros Marsalek [ 26/Sep/14 ]

https://git.opendaylight.org/gerrit/#/c/11588/

Please review my fix

Generated at Wed Feb 07 19:54:03 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.