Open william-tremblay1 opened 4 months ago
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 https://github.com/freeconf/yang/issues/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 https://github.com/freeconf/yang/issues/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 "../../../locations/location/location-id";
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 https://github.com/freeconf/yang/tree/master/parser/testdata
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).