Uploaded image for project: 'snmp'
  1. snmp
  2. SNMP-5

yang-oid-plugin generates duplicate OIDs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 3976

    Description

      If the yang-oid-plugin is executed multiple times, it writes the same OIDs again, so there are multiple for each method. This isn't legal Java 7 syntax so it causes compile errors:

      target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/ietf/params/xml/ns/yang/smiv2/_if/mib/rev000614/interfaces/group/IfEntryBuilder.java:[428,9] duplicate annotation

      It should just overwrite the OID so there is always one per get method.

      To reproduce this, run "mvn generate-sources" in mibs-model, then examine IfEntryBuilder.java

      It also happens during a normal "clean install", apparently the plugin is executed twice. Errors can be seen in the output though they don't fail the build. Other tools (such as eclipse) do fail though.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jon@ivydesign.com Jon Rosenberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: