Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-1103

Openflow-Action list needs a key?

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
      • CentOS 7
      • pyang 2.3.2

       

    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
      openflow-instruction@2013-07-31.yang:21: error: the list at "openflow-instruction@2013-07-31.yang:21 (at openflow-action@2015-02-03.yang:32)" needs at least one key because it is used as config

       

      When looking at the source code for openflow-action I see:

       grouping actions-grouping {
         list action {
            uses action-grouping;
            leaf experimenter-id {
              type oft:experimenter-id;
           }
      }

      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?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              dheenab dheenadayalan b
              esender Eric Sender
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: