[OPNFLWPLUG-1103] Openflow-Action list needs a key? Created: 04/Sep/20 Updated: 16/Dec/20 Resolved: 16/Dec/20 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | High |
| Reporter: | Eric Sender | Assignee: | dheenadayalan b |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
|
||
| Issue Links: |
|
||||||||
| Description |
|
I am using `pyang` to validate a yang module which I am basing off of openflow. In the process of building it out, I am validating my yang through pyang and I am noticing this error:
$ pyang my.yang
When looking at the source code for openflow-action I see: grouping actions-grouping { So it is missing a `key`. I can't tell if this is a bug with openflow-action or if pyang is running in some ultra strict mode, but does anyone have insight on this? |
| Comments |
| Comment by Eric Sender [ 10/Sep/20 ] |
|
A couple github tickets which I am running in parallel confirm that ODL has syntax errors https://github.com/mbj4668/pyang/issues/674 https://github.com/CESNET/libyang/issues/1192#issuecomment-690026975
Essentially I modified:
And my diff:
diff --git a/box/rmbn-yang/src/main/yang/opendaylight-port-types@2013-09-25.yang b/box/rmbn-yang/src/main/yang/opendaylight-port-types@2013-09-25.yang }}}
|
| Comment by Robert Varga [ 16/Dec/20 ] |
|
can you create a separate issue for this, with the attached patch, please? |
| Comment by Robert Varga [ 16/Dec/20 ] |
|
The pyang error is expected: OpenDaylight's LogicalDatastoreType.CONFIGURATION is more flexible. It comes from pyang's strict reading of RFC6020/7950 when 'config' is involved – it effectively expresses what is a datastore policy for those nodes. RFC8342 fixes this and pyang needs to adapt. |