[OPNFLWPLUG-1104] Installing Opendaylight-Flow-Types into sysrepo Created: 04/Sep/20  Updated: 27/Sep/21

Status: Open
Project: OpenFlowPlugin
Component/s: openflowplugin
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Eric Sender Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
  • opendaylight-flow-types @ 2013-10-26
  • Opendaylight / Openflowplugin Sodium
  • sysrepo 1.4.70
  • libyang 1.0.184
  • libenetconf2 1.1.26

Issue Links:
Relates
relates to OPNFLWPLUG-1103 Openflow-Action list needs a key? Resolved

 Description   

I am trying to install the opendaylight-flow-types.yang into sysrepo but I am getting the following error:

 

$ sysrepoctl -i opendaylight-flow-types@2013-10-26.yang -a
[ERR]: Missing keyword "key" as a child to "list". (path: /openflow-instruction:instruction-container/instruction-choice/write-actions-case/write-actions/action)
[ERR]: Module "openflow-instruction" parsing failed.
[ERR]: Importing "openflow-instruction" module into "openflow-protocol" failed.
[ERR]: Module "openflow-protocol" parsing failed.
[ERR]: Importing "openflow-protocol" module into "opendaylight-meter-types" failed.
[ERR]: Module "opendaylight-meter-types" parsing failed.
[ERR]: Importing "opendaylight-meter-types" module into "opendaylight-flow-types" failed.
[ERR]: Module "opendaylight-flow-types" parsing failed.
sysrepoctl error: Failed to install module "opendaylight-flow-types@2013-10-26.yang" (libyang error)

 

 

It seems this error is related to a missing key field. I understand this yang processes just fine in Opendaylight (we are using ODL and OpenFlow just fine in that environment), however we are looking to use an auxiliary config datastore in our system and noticed this parsing error.

 

I am also seeing a parsing error in my related OPNFLWPLUG-1103 ticket. 



 Comments   
Comment by Eric Sender [ 16/Dec/20 ]

Anyone get a chance to look at this? 

Comment by Robert Varga [ 16/Dec/20 ]

I am not sure we can do this, really.

The list really does not have a key, it is an ordered list of things which are more complex than a leaf-list, I think.

Anyway, someone more knowledgeable of OpenFlow protocol needs to weigh in.

Comment by Eric Sender [ 16/Dec/20 ]

I assume, just like OPNFLWPLUG-1103 was resolved because a newer RFC wasn't taken into account during parsing, maybe that same issue is happening w/ sysrepo? 

Generated at Wed Feb 07 20:34:12 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.