acidjunk / acidjunk/pyang

Pyang parser should not check leafrefs in typedefs

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
The following happens with the "stateless-pf" module form (now expired) draft
draft-huang-netmod-acl-03:

$ pyang stateless-pf@2013-09-03.yang (no output)
$ pyang --features stateless-pf: stateless-pf@2013-09-03.yang
stateless-pf@2013-09-03.yang:236: error: stateless-pf:port-groups in the path
for port-group-ref at stateless-pf@2013-09-03.yang:232 is not found
stateless-pf@2013-09-03.yang:245: error: stateless-pf:ip-address-groups in the
path for ip-address-group-ref at stateless-pf@2013-09-03.yang:241 is not found

Pyang checks the paths of leafrefs also in typedefs, and this fails if some
nodes in the path are conditional.

The parser should check this when the derived type is used for a leaf (which
then has to depend on the same feature).

```

Original issue reported on code.google.com by `lada.lho...@gmail.com` on 29 Mar 2014 at 5:08

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.