openconfig / public

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

openconfig-telemetry --Question #194

Open dhruv2180 opened 5 years ago

dhruv2180 commented 5 years ago

In openconfig-telemetry the leafref in some groupings are using relative paths due to which the models are not compiling under ODL environment, and are failing with the following error

[ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl generator
java.lang.IllegalArgumentException: Failed to find leafref target: ../../../../../../../sensor-groups/sensor-group/config/sensor-group-id in module openconfig-telemetry (QNameModule{ns=http://openconfig.net/yang/telemetry, rev=2017-08-24})
                at com.google.common.base.Preconditions.checkArgument(Preconditions.java:455)

though pyang does not complain, have you seen this error too ? if yes do you have a fix.

s-accart commented 4 years ago

I have the same error trying to compile openconfig-telemetry in ODL. Any solution ?

github-actions[bot] commented 2 weeks 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.