-
Notifications
You must be signed in to change notification settings - Fork 15
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
leafpath cannot be resolved for IETF model ietf-l3vpn-svc #115
Comments
I'd have to look at it. I'd there anything unusual about Yang?
…On Fri, Jul 19, 2024, 1:58 PM William Tremblay ***@***.***> wrote:
I'm trying to use freeconf with the ietf-l3vpn-svc model
<https://github.com/YangModels/yang/blob/main/standard/ietf/RFC/ietf-l3vpn-svc%402018-01-19.yang>.
I followed the Getting started guide (Python) to start a RESTCONF server
with the model. After patching the models to fix #114
<#114>, I get the following error:
ietf-l3vpn-svc/l3vpn-svc/sites/site/site-network-accesses/site-network-access/location-flavor/location/location-reference
- leafref path cannot be resolved
The leafref in question is this line
<https://github.com/YangModels/yang/blob/cfeb3f942e61d2f8470528cbf7a2c5b84b1da41b/standard/ietf/RFC/ietf-l3vpn-svc%402018-01-19.yang#L2709>
of the model. Pyang doesn't raise any errors when validating it, so I'm not
sure if this is an issue with freeconf or the model itself.
Note that my YANG search path includes all the IETF RFC model collection (
https://github.com/YangModels/yang/tree/main/standard/ietf/RFC).
—
Reply to this email directly, view it on GitHub
<#115>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACA7SXYR7KKMYKMVJ6DBDZNFHS5AVCNFSM6AAAAABLFAE2GSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTSNJSGQYDOOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I investigated the YANG, this is in a choice/case with a when inside a grouping and a path of This will take some investigation. Often I try to isolate the issue into a new, minimal yang file that still exhibits the error. Past test files here Would be able to tease out the error in a very simple test yang file? |
I'm trying to use freeconf with the ietf-l3vpn-svc model. I followed the Getting started guide (Python) to start a RESTCONF server with the model. After patching the models to fix #114, I get the following error:
ietf-l3vpn-svc/l3vpn-svc/sites/site/site-network-accesses/site-network-access/location-flavor/location/location-reference - leafref path cannot be resolved
The leafref in question is this line of the model. Pyang doesn't raise any errors when validating it, so I'm not sure if this is an issue with freeconf or the model itself.
Note that my YANG search path includes all the IETF RFC model collection (https://github.com/YangModels/yang/tree/main/standard/ietf/RFC).
The text was updated successfully, but these errors were encountered: