Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-257

generated builder java file for a leaf containing a union needs documentation for why it's stored in src/main/java

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Mac OS
      Platform: PC

    • 1512

    Description

      This is a shortened example from the TTP repo.

      If you have YANG like this:

      ...
      list parameters {
      ...
      leaf default {
      type union

      { type string; type uint32; }

      }
      ...
      }
      ...

      The DefaultBuilder.java winds up being stored in src/main/java instead of the configured directory.

      The same thing happens with PortNumberBuilder.java in controller. Which is generated to opendaylight/md-sal/model/model-flow-base/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/flow/types/port/rev130925/PortNumberBuilder.java

      While it's counterparts are generated to opendaylight/md-sal/model/model-flow-base/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/urn/opendaylight/...

      Attachments

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

        Activity

          People

            lborak@cisco.com Ladislav Borak
            colindixon Colin Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: